Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade existing JDT LS installation #16

Closed
yveszoundi opened this issue Dec 8, 2023 · 0 comments
Closed

Upgrade existing JDT LS installation #16

yveszoundi opened this issue Dec 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@yveszoundi
Copy link
Owner

Problem

There appears to be no "official" way to upgrade the installed JDT LS. You could delete the installation directory, but it's obviously a hack. Probably also need to shut down (how exactly?) the eglot server and (manually?) start again after deleting.

Potential solution

  • Check the currently installed version against the latest known available version
  • For each opened buffer associated with eglot-java-mode, ensure that the eglot-server is not running, otherwise stop it: Maybe just disabling eglot-java-mode is good enough
  • Install the new jdtls version to a temporary folder
  • If the installation succeeds
    • Move the old jdtls installation folder to a temporary folder
    • Move the new jdtls to its new destination
    • Delete the old jdtls installation folder
  • For each opened buffer associated with java-mode, ensure that the eglot-server is running, by reassociating the buffer with eglot-java-mode

References

This depends on #15 .

@yveszoundi yveszoundi added the enhancement New feature or request label Dec 8, 2023
@yveszoundi yveszoundi changed the title Upgrade existing JDTLS installation Upgrade existing JDT LS installation Dec 8, 2023
yveszoundi added a commit that referenced this issue Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant