From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Newsgroups: gmane.emacs.bugs Subject: bug#73500: eglot: diagnostic location not always shown Date: Mon, 30 Sep 2024 10:41:09 +0100 Message-ID: References: <86wmiw58r1.fsf@gnu.org> <6654a127-fb75-4b8b-86d6-267b92567429@fbengineering.ch> <87r093tr3r.fsf@gmail.com> <452a24b1-14e8-40a6-b921-a26522278a82@fbengineering.ch> <1460ead9-025e-4405-b392-c3b9a008b733@fbengineering.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="444"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73500@debbugs.gnu.org, Eli Zaretskii To: Federico Beffa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 30 11:42:50 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1svCvZ-000AWp-QP for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Sep 2024 11:42:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1svCvI-00066U-Fi; Mon, 30 Sep 2024 05:42:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1svCvH-00062w-Il for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 05:42:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1svCvH-0008Nq-7y for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 05:42:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=Tq3CmEOF/2P4V6wCZhRTfUAS9O5dlladEDWMZrJwcfs=; b=Tw2aMw6pEW8qpu70BGiTr6oAD5s3EuCOhTlN4AKB9XL7dfo7cKlrGFvwGEAu7Bo2JUrLNoKz6EyDMubLtJoZNi/KIOuApbdL+UOJprCb2+MsOVFYHZK4fh0hPYHGJx19NNgu7a3N6sLBr4Fy7M8OjG3ilGyI7s66baJEyAtXCuylpLQlIQ7lqSuMgthHeDK7lGjSwK41/40OUGbau2Wf0Wp7Ok2d2c+FRjOvsv1od6ifV5viVM0M3hr9nYF04rSO8/vIfPFHFAgwYSu7ZsVbxQaGNbml0A29u2c0pDN7XQgntsd6byibBCUSPhEfaW1vgAp1JbfUJL+7b12MhUw46A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1svCvn-0000Xq-FR for bug-gnu-emacs@gnu.org; Mon, 30 Sep 2024 05:43:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Sep 2024 09:43:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73500 X-GNU-PR-Package: emacs Original-Received: via spool by 73500-submit@debbugs.gnu.org id=B73500.17276893812065 (code B ref 73500); Mon, 30 Sep 2024 09:43:03 +0000 Original-Received: (at 73500) by debbugs.gnu.org; 30 Sep 2024 09:43:01 +0000 Original-Received: from localhost ([127.0.0.1]:44742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svCvk-0000XD-Nu for submit@debbugs.gnu.org; Mon, 30 Sep 2024 05:43:01 -0400 Original-Received: from mail-oa1-f54.google.com ([209.85.160.54]:58504) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1svCvj-0000Wr-8M for 73500@debbugs.gnu.org; Mon, 30 Sep 2024 05:43:00 -0400 Original-Received: by mail-oa1-f54.google.com with SMTP id 586e51a60fabf-27cdb92376aso2017494fac.0 for <73500@debbugs.gnu.org>; Mon, 30 Sep 2024 02:42:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727689281; x=1728294081; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Tq3CmEOF/2P4V6wCZhRTfUAS9O5dlladEDWMZrJwcfs=; b=DdE1m5Im913U7/KfuK6k7XgEom/YsnXB7YXAXZK4rN/xKhiMDx6nAR00pADgQftjiL N7K7ih260UOk5mpfDTnb8mqPDNpePC3Mnw3KEShRIr6IUg5fLCZAfjeb9Zop1cfXUsgq BeMBrRZFRbEMwcJ7Y4O5Z4ivJI6s7vIb672pL5xesj22AHhnYzOYIYDMgJBTqtrz2swH ePtNnGT58ebExLNUzDNuzgMr50ZaDNYwCvzM0iUvM4IIbD4jZw8Y1RcwAUj0KHT/w5Gz rJZgCIe1fhCL8y3UHZPYw00UAPt/ZAi0cYj/aiBSJNuslZvTitVPW1oI9XQnKufHa6qq e9TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727689281; x=1728294081; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Tq3CmEOF/2P4V6wCZhRTfUAS9O5dlladEDWMZrJwcfs=; b=Fuec80N6h1E3loSMIDxovyl6/5jhzJOfKC6T8FpaWJ8BV1wSE2tmuPmTuPftVlKYG2 GNUEICq3sPkLtK/OHsPdLRFmo0J51zW2ifpxtCpx1T1GyMk65NobzuCpDL2CeCICEQWr /P234FAhg/QAdG/7X1yYGwJv77AlzmZlO7BNC49C95stve3gWWoaY7UZr+DITy04NA4o OVJ4G6i/xcHdXc8vffwQLf8SfcTPZfr8IqPnjgbk73s4qMO5Qac7zDiaSYTp6hWSs2z4 ruGuyMcKHN6GdB5ittWpQFHO82VM6JGxuifq6Pn/C0bsr8oDxFMYarR5RirgXpMGVHpt 8dNQ== X-Forwarded-Encrypted: i=1; AJvYcCVV0BmLWfxp+oXyCwmAwzNO3wRxXy/LvMSis0UFtxarn56Q0F6/wCzf/W1LOCrkAynvqUkovA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyB9M7DNTL6jzk1aJt6jCVSEvB5zhfIeRoXwuhe7HPSuEF8412z PkpvKmPDWUIq2j5rBGC/K+oynG+lhDQ1ajneBvkak2yjJke1dH0BxWSGLaVky8jGDWEBT6Dp0FH GoNGW6UJUFc802wt1bxV0WVeL9drE7w== X-Google-Smtp-Source: AGHT+IG+XRw0XDjSZxaYeFEZdZE7Llkwq3HkgOhFvLnx2KqEB7YoxXr5gwcDpVMM+jusN5fxc1BzGt2m+7S3Ui8R1AI= X-Received: by 2002:a05:6870:1706:b0:277:dc01:75d6 with SMTP id 586e51a60fabf-28710ba6f48mr7134555fac.38.1727689280873; Mon, 30 Sep 2024 02:41:20 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292701 Archived-At: On Mon, Sep 30, 2024 at 10:19=E2=80=AFAM Federico Beffa wrote: > > A few questions: > * have you checked the provided lsp*.log files which show that the diagno= stics is sent? Yes. But I don't get that log, as I already showed. > * have you checked the provided screenshots showing an exclamation mark i= n the fringe but no underlining? These are not from emacs -Q so I ignored them. For all I know you may have = a (imaginary-bugs) in your init file. Or have a different setting of the underlining face to something that can't be rendered. A screenshot of a clean Emacs -Q would have been slightly more useful (well not really useful, but more interesting at least). > * How do you explain the exclamation mark in the fringe which doess not a= ppear if eglot is not enabled? That's an odd question. I don't, of course. Much as I can't "explain" that grainy footage that someone says they took of bigfoot. Maybe bigfoot exists, mayb= e it's just a far away hunchback person. I'll have a better change of "explaining" something once I can investigate it myself, and so far I haven't been able to reproduce your sighting. > * Do you also see the exclamation mark in the fringe on the line in quest= ion? No, when I tried your Emacs -Q recipe I didn't see any diagnostics. I thought I explained that. > * Does "cabal run" works? Do you see the output? If not please provide th= e complete error message. Eglot doesn't interact with cabal, it interacts via LSP with haskell-language-server. I can tell you I managed a successful interaction where the server in quest= ion connected perfectly and analized the Main.hs program you provided. When Tweaking the program, I got some diagnostics. As far as I'm concerned witnessed first hand in an Emacs -Q session, Eglot correctly underlines al= l diagnostics coming from that server, which is not suprising to me, since they look a lot like any other diagnostic coming from any other server and Eglot doesn't care about the provenance of diagnostics. Also, I uninstalled everything haskell, it bloated up my system and I don't= plan on installing it again.. Jo=C3=A3o