Skip to content

jdtls latest version doesn't (always) work #33

@PhilGal

Description

@PhilGal

Relevance Confirmation

  • I confirmed that this is not an issue with the Eclipse JDT Language Server itself

What happened?

I've checked the source, and noticed that the latest version of jdtls is taken from github tags:
https://api.github.com/repos/eclipse-jdtls/eclipse.jdt.ls/tags, and then the semver is extracted and put into another downloads url. Unfortunately, it looks like they're not in sync, and I am getting the error:

Language server error: jdtls

failed to get latest version's build: failed to fetch 'https://download.eclipse.org/jdtls/milestones/1.44.0/latest.txt': status code 404 Not Found
-- stderr--

I tried to modify my settings file to set the version first, but according to the implementation it's not really supported...

  "lsp": {
    "jdtls": {
      "settings": {
        "version": "1.43.0",
        "classpath": "/target/classes"
     },
  }
} 

What did you expect to happen?

I expected:

  • jdtls is correctly downloaded
  • in case of the version not found I could specify the one that is found

Thanks :)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinglanguage-serverRelated to the language server.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions