emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#69989: closed ([PATCH] Fix invocation of Java Language Server)


From: GNU bug Tracking System
Subject: bug#69989: closed ([PATCH] Fix invocation of Java Language Server)
Date: Mon, 25 Mar 2024 07:12:01 +0000

Your message dated Mon, 25 Mar 2024 07:11:02 +0000
with message-id <87cyri4whl.fsf@posteo.net>
and subject line Re: bug#69989: [PATCH] Fix invocation of Java Language Server
has caused the debbugs.gnu.org bug report #69989,
regarding [PATCH] Fix invocation of Java Language Server
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
69989: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69989
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] Fix invocation of Java Language Server Date: Sun, 24 Mar 2024 20:34:26 +0000
It appears that the Java Language Server "jdtls" unfortunately requires
a "-data" flag to be passed along with some directory to function
properly.  Otherwise it fails or only provides primitive syntax
checking, and no completion or other warnings.  This was discussed on
the Eglot issue tracker [0].

The following patch would invoke the server properly, passing
project-specific cache directory for the program to use.  I use
`xdg-cache-home' to determine what directory to use, but didn't want to
load it at the top of the file.  Are there any strong opinions on that
question?

Attachment: 0001-Fix-invocation-of-Java-Language-Server.patch
Description: [PATCH] Fix invocation of Java Language Server

Oh and this patch uses functions that are not available in Emacs 26.3,
so it would make sense to apply my patch that adds Compat support to
Eglot first.

[0] https://github.com/joaotavora/eglot/issues/1008

-- 
        Philip Kaludercic on icterid

--- End Message ---
--- Begin Message --- Subject: Re: bug#69989: [PATCH] Fix invocation of Java Language Server Date: Mon, 25 Mar 2024 07:11:02 +0000
Felician Nemeth <felician.nemeth@gmail.com> writes:

>> It appears that the Java Language Server "jdtls" unfortunately requires
>> a "-data" flag to be passed along with some directory to function
>> properly.  Otherwise it fails or only provides primitive syntax
>> checking, and no completion or other warnings.  This was discussed on
>> the Eglot issue tracker [0].
>
> I don't use jdtls, but it seems the upstream fixed this issue and there
> is no need to modify Eglot.
>
> https://github.com/eclipse-jdtls/eclipse.jdt.ls/pull/2207
> https://github.com/eclipse-jdtls/eclipse.jdt.ls/commit/b93370662a8e4e552dc2af162eb9510b276e0203

Turns out I had an older installation of jdtls.  I have upgraded it and
can confirm that it works without the patch.  So I'll be closing this
report.

-- 
        Philip Kaludercic on icterid


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]