From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Husain Alshehhi Newsgroups: gmane.emacs.help Subject: Parsing JDT:// scheme in Eglot Date: Sun, 13 Nov 2022 20:07:10 +0000 Message-ID: <87mt8u39g4.fsf@alshehhi.io> 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="3066"; mail-complaints-to="usenet@ciao.gmane.io" To: gnu-emacs-help@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Nov 13 21:08:15 2022 Return-path: Envelope-to: geh-help-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 1ouJH5-0000a2-05 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 13 Nov 2022 21:08:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ouJGX-0007rR-Ix; Sun, 13 Nov 2022 15:07:41 -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 1ouJGR-0007rJ-Vm for help-gnu-emacs@gnu.org; Sun, 13 Nov 2022 15:07:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouJGR-0005RY-NR for help-gnu-emacs@gnu.org; Sun, 13 Nov 2022 15:07:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by fencepost.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouJGR-0004dv-Dr for gnu-emacs-help@gnu.org; Sun, 13 Nov 2022 15:07:35 -0500 Original-Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ouJGN-0005Qi-ER for gnu-emacs-help@gnu.org; Sun, 13 Nov 2022 15:07:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alshehhi.io; s=protonmail; t=1668370034; x=1668629234; bh=kaGADDSVGwibkNUjQv5iosKnxP8RVig7ToWxIyDa2Jw=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=YH6gR0mGSehe2t6frCNUAU8L+CiX7MXELrHTHw2Qkm585Efexs2uMttBIyLWnP+mx wL+uZkpVUHUXGF63hflVMaQ3hW+8NBOy53rijLocOqhPnHMxoWXSfmKqNnAhoN1K3J YabYsdKlbjMQmJsx73pRTFsFWuLBZfw4Bae+hAljzEin+VeQgsVKBxBQk7HqfDyySK sxwf1fP0z2EMCLQHIakbCMWOTRyMa1VDhnCi4hn9qsLEB84KYxJ/WujqwedI5K1yzq RV1qfpToLic+6G00fg56z7w1k25icpfw6iO9G7At40yAPxDzrvYIW+2Zz60FfdDu/1 9oEVf9QNnQPxw== Feedback-ID: 31127354:user:proton Received-SPF: pass client-ip=185.70.43.23; envelope-from=husain@alshehhi.io; helo=mail-4323.proton.ch 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:140940 Archived-At: Hello, I have not seen anything related to this issue in this mailing list. I am using eglot with [JDT] for LSP support. It is working, mostly: it is a= ble to locate definitions and help. It is able to find references as well. = The issue is that if the definition is in a dependency, eglot does not show= the definition. After investigating the issue, this appears to be because JDT returns paths= on the format `jdt://' which eglot is not able to interpret. Eglot takes t= hem as normal files, opens them, which end up to be an empty file (since it= does not correspond to a file in the filesystem.) This appears to be an issue solved in lsp-java by writing some [special par= ser] for JDT scheme. nvim-jdtls seems to have done [something similar] (I a= m not certain of this since I do not use nvim.) How to enable this support in eglot? I did see a [discussion on github] about warning about this issue in the lo= g, and it refers to [a commit on emacs] and the bug [58790]. My understandi= ng of LSP protocol details is small to understand what is going on here. Thanks, Husain [JDT] [special parser] [something similar] [discussion on github] [a commit on emacs] [58790]