Skip to content
Discussion options

You must be logged in to vote

00:48:36: Initialize request failed for LSP server jdtls: Invalid or missing Content-Length header from peer

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 run j…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Sturm0
Comment options

@techee
Comment options

@Sturm0
Comment options

@techee
Comment options

@techee
Comment options

Answer selected by Sturm0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants