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#59824: flymake-show-project-diagnotics not updating (eglot for Java with jdtls) Date: Sun, 4 Dec 2022 20:46:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000957f7305ef06ac7b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6620"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59824@debbugs.gnu.org To: David Ventimiglia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 04 21:48:21 2022 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 1p1vuO-0001We-Qo for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 04 Dec 2022 21:48:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1vuC-00065v-Vc; Sun, 04 Dec 2022 15:48:09 -0500 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 1p1vu7-00064q-2C for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:48:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1vu6-0003h9-Mh for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1vu6-0000DQ-AO for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:48:02 -0500 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: Sun, 04 Dec 2022 20:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59824 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: "simon254--- via Bug reports for GNU Emacs, the Swiss army knife of text editors" Original-Received: via spool by submit@debbugs.gnu.org id=B.1670186839718 (code B ref -1); Sun, 04 Dec 2022 20:48:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 20:47:19 +0000 Original-Received: from localhost ([127.0.0.1]:59642 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1vtP-0000BU-0s for submit@debbugs.gnu.org; Sun, 04 Dec 2022 15:47:19 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:58536) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1vtM-0000BF-AO for submit@debbugs.gnu.org; Sun, 04 Dec 2022 15:47:18 -0500 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 1p1vtL-0005w2-Sj for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:47:15 -0500 Original-Received: from mail-oa1-x2d.google.com ([2001:4860:4864:20::2d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1vtJ-0003dt-Oe for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:47:15 -0500 Original-Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-1443a16b71cso7838567fac.13 for ; Sun, 04 Dec 2022 12:47:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=L+6mgPzhL7NQ95NhrUhV25/VbQJCcgTuhkvGb2rHYMo=; b=GcBBRPfpPBWtf/mCI3LjZngmZZnM97YsKXiO9H21CP9ia5DEd3qiEkCUZI7cpxEJYy S8ARjTfbESR2mFrCOCGEMfphyRJ35Xw+2BUdfBlnVb2Ym5MVfDkzDD0M53Z0HWV0rqV3 DcYV3lXIWLcp27w4Z8u6kr1KFREJRxpRyXTub7LsKuO4PiQw2Rt4VlIsOy4weLq4z5Th bMycEJUNYFZ7dt/26pKMmf8AVkZwCF3LCzTMVbcb8ztzU2WzM53g6X0NfqxqxTCV+Kwn Lqk3DiwVAZrARMdd9Izv3YD2hBEu5v+Tf+m2qoxuirCqK0Zz6POu5T94g5q2OvMK405Y FArA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=L+6mgPzhL7NQ95NhrUhV25/VbQJCcgTuhkvGb2rHYMo=; b=dXBD5Hdit0pNzaoe3W0UcdzQiQMoAWDvdzYbn+OhZONDJHQM6hONNzF7+vF/OsjoLf NchQR04zXdofHOVe4O+aZFMQFdtALAKakJjhGt3N4r3/QRNjXyj6a+ZjErlYLRRIrap2 FNXBCRhM1tVFNdIwq4zqGGUdLOvtDkXwQKmFKjnmz9tNlyoPOIupRL66gH7z5Bcw1yPz wZyU3l4U2V/dGrV5enBdsYVXV/h9kNtHWKqG4uf/HcvQjCXv4+KBp4+dRJzdtnh1wycy uks40+SvOkktbQP1x0WV7yT+c0oe+yFIEj/+Syy6RROEPILNI/LcrjSbBTg7xxHcFbIQ cFBA== X-Gm-Message-State: ANoB5pnEOs1dnPOEZQdKyuUTh73PVAChl0+NgjKz2yr24lCzk0+8Jlmw Rbcn1qUnoKmJ+oGQH9f1labnp7sgN/HcoAkABH4= X-Google-Smtp-Source: AA0mqf4gQSR6MNfEBoc39MGGMtoQ/4BCTTBO+hTqlkKDxfwGHBM0XgSzZf/jB72OhSaBD2hTIKCR+w+rvycuzSJyxIA= X-Received: by 2002:a05:6870:aa0e:b0:144:9e0c:d475 with SMTP id gv14-20020a056870aa0e00b001449e0cd475mr985732oab.215.1670186827872; Sun, 04 Dec 2022 12:47:07 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2001:4860:4864:20::2d; envelope-from=joaotavora@gmail.com; helo=mail-oa1-x2d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:249967 Archived-At: --000000000000957f7305ef06ac7b Content-Type: text/plain; charset="UTF-8" Thanks David. Please also repost here the transcripts of the events buffer that you collected and shared in the original discussion, for convenience. On Sun, Dec 4, 2022, 20:39 David Ventimiglia < davidaventimiglia@neptunestation.com> wrote: > Hello, > > When I run flymake-show-project-diagnostics some warnings are listed for > my Java project. As I jump to those locations and fix the warnings, the > diagnostics buffer doesn't update. One problem I have is that I don't even > know where to begin to look in order to troubleshoot this. It could be a > problem with eglot, jdtls, flymake, or some combination thereof. I started > a GitHub discussion for the eglot project here: > > https://github.com/joaotavora/eglot/discussions/1131#discussion-4626934 > > In summary, for Java if I add say an unused import to a file, jdtls > publishes a diagnostic event for this and the flymake buffer shows a > warning for the unused import. If I correct the issue by deleting the > unused import, jdtls again publishes a correct diagnostic report for the > file, but the flymake diagnostics buffer doesn't update. > > After some correspondence with its maintainer, I believe we ruled out the > jdtls server, since the events buffer seems to show an accurate diagnostics > report being delivered from the server to Emacs/eglot/flymake. We're > wondering if perhaps the problem lies therefore in eglot and/or flymake. I > should also say that I'm using the "stock" eglot and flymake built into > Emacs, as I'm using emacs-snapshot. Here's my Emacs version info: > > GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, > cairo version 1.16.0) of 2022-12-03 > > I grant that this may not be a bug and could be a mis-configuration, but I > am trying to track that down. Thanks! > > Best, > David Ventimiglia > > --000000000000957f7305ef06ac7b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks David. Please also repost here the transcripts of = the events buffer that you collected and shared in the original discussion,= for convenience.

On Sun, Dec 4, 2022, 20:39 David Ventimiglia <davidaventimiglia@neptunes= tation.com> wrote:
Hello,

When I run flymake-show-project-diagnostics some war= nings are listed for my Java project. As I jump to those locations and fix = the warnings, the diagnostics buffer doesn't update. One problem I have= is that I don't even know where to begin to look in order to troublesh= oot this. It could be a problem with eglot, jdtls, flymake, or some combina= tion thereof. I started a GitHub discussion for the eglot project here:

In summary, for Java if I add say an unused import to a fi= le, jdtls publishes a diagnostic event for this and the flymake buffer show= s a warning for the unused import.=C2=A0 If I correct the issue by deleting= the unused import, jdtls again publishes a correct diagnostic report for t= he file, but the flymake diagnostics buffer doesn't update.
<= br>
After some correspondence with its maintainer, I believe we r= uled out the jdtls server, since the events buffer seems to show an accurat= e diagnostics report being delivered from the server to Emacs/eglot/flymake= .=C2=A0 We're wondering if perhaps the problem lies therefore in eglot = and/or flymake.=C2=A0 I should also say that I'm using the "stock&= quot; eglot and flymake built into Emacs, as I'm using emacs-snapshot.= =C2=A0 Here's my Emacs version info:

GNU Emacs= 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version= 1.16.0) of 2022-12-03

I grant that this may n= ot be a bug and could be a mis-configuration, but I am trying to track that= down.=C2=A0 Thanks!

Best,
David Ventimi= glia

--000000000000957f7305ef06ac7b--