-
Hello, I don't know how to configure jdtls in Geany. I have jdtls installed:
In lsp.conf I have the following:
I tried writing the initialization request using this: https://github.com/eclipse-jdtls/eclipse.jdt.ls/wiki/Running-the-JAVA-LS-server-from-the-command-line#initialize-request In jdtls_init_options.json i have:
But when I open Geany with a project with Java code I get the following:
I don't really know what's the vscode thing in 00:47:16. I installed jdtls using this btw I also don't know how to set WorkspaceFolders to use the current project's base path. Or what I should put there so I don't have to reconfigure it for each project. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This means that the server didn't respond with a valid JSON-RPC message. Where do you have the My version of jdtls doesn't seem to have the I think the initialization options file should be optional (but if you need it, I think you should remove the top-most "initializationOptions" dict which I think shouldn't be there).
You probably have some json file open and it tries to launch the json server for it. You can set |
Beta Was this translation helpful? Give feedback.
This means that the server didn't respond with a valid JSON-RPC message.
Where do you have the
jdtls
server from? I've tested it with https://download.eclipse.org/jdtls/milestones/1.43.0/ which seems to work (I'm on an ARM64 Debian 12 and it's a problem to get Java 21 for it and 1.43 is the last release requiring Java 17).My version of jdtls doesn't seem to have the
--version
command-line argument (but it's possible it was added in later versions). So it's quite possible that some extra command-line argument is required to run jdtls in the server mode. What happens when you runj…