From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Justin Talbott Newsgroups: gmane.emacs.bugs Subject: bug#65983: Eglot does not support `textDocument/diagnostic` (pull diagnostics) Date: Thu, 14 Sep 2023 14:14:52 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a91339060555a7fe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17091"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com To: 65983@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 15 00:59:11 2023 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 1qgvIl-0004JU-Ac for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Sep 2023 00:59:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgvIc-0004gh-D8; Thu, 14 Sep 2023 18:59:02 -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 1qgvIY-0004g9-UU for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 18:58:59 -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 1qgvIW-0000oC-C3 for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 18:58:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgvIc-0007bY-Ci for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 18:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Justin Talbott Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Sep 2023 22:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65983 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.169473230829161 (code B ref -1); Thu, 14 Sep 2023 22:59:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 14 Sep 2023 22:58:28 +0000 Original-Received: from localhost ([127.0.0.1]:41436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgvI3-0007aF-AT for submit@debbugs.gnu.org; Thu, 14 Sep 2023 18:58:28 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:44344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgqs4-0003D1-Fi for submit@debbugs.gnu.org; Thu, 14 Sep 2023 14:15:35 -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 1qgqrs-0008RP-BC for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 14:15:08 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgqrp-0005Ie-Ml for bug-gnu-emacs@gnu.org; Thu, 14 Sep 2023 14:15:08 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-26f3975ddd4so1072558a91.1 for ; Thu, 14 Sep 2023 11:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694715303; x=1695320103; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=HnqlVRxJqnOhKbB2/oItecm5yUNcMBn+GfinV5g2nG0=; b=iOsei2WrgTFi8WdRo3xjHhjOz0EG3htDajpBx/u5h8jbpbNew8wyEbydmphCuFtvu+ yCLmikcj+CnUzCFG+biEsif8mIq3SU9hERKwKk5XyTkOyLLcxGWcO80n1bbcOUh6TYoN +Cn6DqJ3UZoas1/JZaNaTIlECcRiqi2hKrgow6A9RJuRP4gw4nBw50xjgGcrWeFN7S5W 4avH/swAJ+wmHi9ZP92N1+7cL1N0ktpFEzpt8INbY2r7FfuURMj+Xq3MCVvgUHk2ZPpC FCxA3fWyBoACMP8B/x9FwTSuXEGU7GOA7ERkYyDjPbqsWSno0wk4DLm4iJhwapL9pGaR 68aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694715303; x=1695320103; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HnqlVRxJqnOhKbB2/oItecm5yUNcMBn+GfinV5g2nG0=; b=OS8JT2PGJyKBSIAwaocTAO5+tyR/MWptyOt+eZ/tVSj31dUbvob+X0A5DrIorBYITi 6/oZYNhro04ieKoGVSd/HT7yC7s8K+qM2vnFuUEe1eU5QcZM2lAVuGSULDWNBGbt0q5g YAKit77ST0g+PmRuDLxwZGYs9l3V3oDJet2CxzblgmDr9fTlLWS8qA+xwCRhcfz++uoY FEbxOpxRQN3cLEM/+aIvw3eC4p65hqbooAziMaYmxU/iPthpDrQu2x8uLo4egipsNHOw 9tb+b0rJlLhA5tzMcQZPhmsl+crLwLwLTzz9agVULkhMfwsAB+nUeesLnP4P6tWNhJxE oPag== X-Gm-Message-State: AOJu0YzFoxEXeguswoT5ZpFWXmGgP5xGx01z0SAngZayrhAMn8MIdSB1 dlHdZUmwtl3DHiyEIb/u7EaGx8p1z10gLMQ4+Q6q7pJXyYU= X-Google-Smtp-Source: AGHT+IHMQbGgK+SUD21O8DRDBjLTbqle9Gx/49HeshNkaBF/GesCHQOZ1eY9Qi33SbEFJZjIQA/uY12Urtn3d6OAiuo= X-Received: by 2002:a17:90a:c90e:b0:263:f630:228f with SMTP id v14-20020a17090ac90e00b00263f630228fmr6404758pjt.23.1694715303497; Thu, 14 Sep 2023 11:15:03 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=thepalmcivet@gmail.com; helo=mail-pj1-x1030.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-Mailman-Approved-At: Thu, 14 Sep 2023 18:58:25 -0400 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:270463 Archived-At: --000000000000a91339060555a7fe Content-Type: text/plain; charset="UTF-8" Some LSP servers, such as `ruby-lsp` (https://github.com/Shopify/ruby-lsp) don't use `textDocument/publishDiagnostic` to publish diagnostics. Instead, they expect the LSP client to poll and request diagnostics with `textDocument/diagnostic`. It would be great if Eglot would support this method of pulling diagnostics. I first reported this on Github in the Eglot repo as a Discussion: https://github.com/joaotavora/eglot/discussions/1290 - best, Justin Talbott --000000000000a91339060555a7fe Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Some LSP servers, such as `ruby-lsp` (https://github.com/Shopify/ruby-lsp) d= on't use `textDocument/publishDiagnostic` to publish diagnostics. Inste= ad, they expect the LSP client to poll and request diagnostics with `textDo= cument/diagnostic`. It would be great if Eglot would support this method of= pulling diagnostics.

I first reported this on Git= hub in the Eglot repo as a Discussion:
https://github.com/joaotavora/eg= lot/discussions/1290

-
best,
Justin Talbott
--000000000000a91339060555a7fe--