From: Danny Freeman <danny@dfreeman.email>
To: husain@alshehhi.io
Cc: help-gnu-emacs@gnu.org
Subject: RE: Parsing JDT:// scheme in Eglot
Date: Mon, 14 Nov 2022 18:11:52 -0500 [thread overview]
Message-ID: <8735alm8iu.fsf@dfreeman.email> (raw)
> 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 able
> 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 them 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 parser]
> for JDT scheme. nvim-jdtls seems to have done [something similar] (I am 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 log,
> and it refers to [a commit on emacs] and the bug [58790]. My understanding of
> LSP protocol details is small to understand what is going on here.
>
> Thanks,
> Husain
Hey Husain,
I saw your issue over in the JDT LS github repository, where I've been
talking to one of the contributors
(link: https://github.com/eclipse/eclipse.jdt.ls/issues/2322)
I've also opened up a ticket in the eglot-java bug tracker, where I
think might be a good place to implement a solution:
https://github.com/yveszoundi/eglot-java/issues/6
so feel free to follow that discussion.
--
Danny Freeman
next reply other threads:[~2022-11-14 23:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-14 23:11 Danny Freeman [this message]
2022-11-16 6:18 ` Parsing JDT:// scheme in Eglot Husain Alshehhi
-- strict thread matches above, loose matches on Subject: below --
2022-11-13 20:07 Husain Alshehhi
2022-11-14 19:54 ` Stefan Monnier via Users list for the GNU Emacs text editor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735alm8iu.fsf@dfreeman.email \
--to=danny@dfreeman.email \
--cc=help-gnu-emacs@gnu.org \
--cc=husain@alshehhi.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).