From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: David Ventimiglia Newsgroups: gmane.emacs.bugs Subject: bug#59826: flymake-show-project-diagnotics not updating (eglot for Java with jdtls) Date: Sun, 4 Dec 2022 12:38:55 -0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e8504205ef068f8c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36645"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com To: 59826@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 05 00:18:11 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 1p1yFP-0009Mx-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Dec 2022 00:18:11 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p1yFL-0004y4-0h; Sun, 04 Dec 2022 18:18:07 -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 1p1yFH-0004wH-0C for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 18:18:03 -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 1p1yFG-0001b8-I3 for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 18:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p1yFG-0004ED-Af for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 18:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Ventimiglia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Dec 2022 23:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 59826 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167019586116234 (code B ref -1); Sun, 04 Dec 2022 23:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2022 23:17:41 +0000 Original-Received: from localhost ([127.0.0.1]:60376 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1yEu-0004Dl-FH for submit@debbugs.gnu.org; Sun, 04 Dec 2022 18:17:40 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:47590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p1vlX-00006x-3P for submit@debbugs.gnu.org; Sun, 04 Dec 2022 15:39:11 -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 1p1vlW-0004ZG-Ue for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:39:10 -0500 Original-Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p1vlU-0000qD-QO for bug-gnu-emacs@gnu.org; Sun, 04 Dec 2022 15:39:10 -0500 Original-Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-143ffc8c2b2so11356027fac.2 for ; Sun, 04 Dec 2022 12:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neptunestation-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=W29jGa/iUJ8ffW7KYeSECh3e5HxFeToufcf6TvvXWrg=; b=MUuAvjlrFhJ2B2+HEFreOh3RvnKR1q7DJNuBTnkWunkgMDyFtoFojRpxj7cd+QVmBX ZOXnFiNHfhHfpxu7e8sBQbWG0JV5bHIFf6pSkPu53IJt8y1N1RZA0obQpwU5y7w+0Kj8 k8tdRQZo5U4Wlvg9ZxZxY2BmyFEQPGcuqiNV7OSbb2NeIX35PN0q5pnlDah49DRpJm06 NjFF/CbTRBYjnwyBoF0hPef9hpBRcYdYde7PKtMbxUCjZr1Mahp+Yq5//630qk2AEZwi NnqglEWnX/UESJ7n++CQFikw/ufHvDUu3OQKbeAflEeE1bsCD2EF24ZTGyAUA7aR2Orx ekMQ== 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:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=W29jGa/iUJ8ffW7KYeSECh3e5HxFeToufcf6TvvXWrg=; b=wmvy+ZceDj99Wcf5ynKRCS6w9EoJSxxH9KruveJqcA3VFBmGR8vKbM7ic5Sci4CU6x +BGSp74/wtObaO7VuvZJTDKvX0rFD2q+4XmPGPwis5fiA4q+sABmipmFvcMlK+d5qfy6 QJT/rz/DLCgKqGWhoIqqjejDLIn5ewINNbcYzbJrld1JKeq7/+lE5YHBnj7glYLx/UTv UFvHoShd4MRtDS9tLHEKjZCdORCMckjNeEaIW7luLvMwIp665GQFWKzZepy6iIH0rqam xfMRSyoFCTNBffj6HVWZVuwCy7h/zc1wbiCik9nCZH6cfjGXqqYRML07sLePDGED9LDN CPbg== X-Gm-Message-State: ANoB5plDrsbQJuLZeEfs+mFYQOnXjD8h0Dup72O5hc+qSO/d/Nw6X3vl sWPTVh2IUREEU+2qBGxUh8u72kF52hE4qKTDcNRQR8S9Fi6HPwQV X-Google-Smtp-Source: AA0mqf5jDLEpPxKoXktfZj8GqKfizX/ylNzN8BrXmg3sfHTwRxPp4SJ1NVe6jOo7LUZlKMKWb/EUkxCIhsnSh+T682A= X-Received: by 2002:a05:6870:c352:b0:132:d3f8:bad4 with SMTP id e18-20020a056870c35200b00132d3f8bad4mr36777679oak.58.1670186346756; Sun, 04 Dec 2022 12:39:06 -0800 (PST) Received-SPF: pass client-ip=2001:4860:4864:20::34; envelope-from=davidaventimiglia@neptunestation.com; helo=mail-oa1-x34.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-Mailman-Approved-At: Sun, 04 Dec 2022 18:17:39 -0500 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:249973 Archived-At: --000000000000e8504205ef068f8c Content-Type: text/plain; charset="UTF-8" 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 --000000000000e8504205ef068f8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 proble= m I have is that I don't even know where to begin to look in order to t= roubleshoot this. It could be a problem with eglot, jdtls, flymake, or some= combination thereof. I started a GitHub discussion for the eglot project h= ere:


In summary, = for Java if I add say an unused import to a file, jdtls publishes a diagnos= tic event for this and the flymake buffer shows a warning for the unused im= port.=C2=A0 If I correct the issue by deleting the unused import, jdtls aga= in publishes a correct diagnostic report for the file, but the flymake diag= nostics buffer doesn't update.

After some corr= espondence with its maintainer, I believe we ruled out the jdtls server, si= nce the events buffer seems to show an accurate diagnostics report being de= livered from the server to Emacs/eglot/flymake.=C2=A0 We're wondering i= f perhaps the problem lies therefore in eglot and/or flymake.=C2=A0 I shoul= d also say that I'm using the "stock" eglot and flymake built= into Emacs, as I'm using emacs-snapshot.=C2=A0 Here's my Emacs ver= sion info:

GNU Emacs 30.0.50 (build 1, x86_64-pc-l= inux-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.=C2=A0 Thanks!

Best,
David Ventimiglia

--000000000000e8504205ef068f8c--