-
Notifications
You must be signed in to change notification settings - Fork 4
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
Pin server version #12
Comments
Is this really a solution? What if we bump the server version and then the site has problems? |
I'd like to report my experience using LSP-jdtls on August 1st, 2021. Note, however, that today (August 4th, 2021) I no longer experience any problems. If the following problem appears again in the future or someone else experiences the same problem, this may be helpful to know as a workaround is given at the end of this comment. Problem. Opening any .java file leads to completely unpredictable behavior of LSP-jdtls. Basically, I can expect one of the following three types of behavior when I open any .java file.
Which of the aforementioned behaviors I get seems completely chosen at random (even if I keep opening and closing the same file over and over again I get inconsistent experience). Reproducing the problem. Do a clean install of Sublime Text 4 with 'factory settings' (or delete Sublime-Text in ~/.config folder). Then, install:
Save a .java file on your Desktop (For example use java code at the end of the page: https://www.algorithm-archive.org/contents/gaussian_elimination/gaussian_elimination.html --- you may have to select Java from a list of all available programming languages in the top bar of the page). Open the file you saved on your Desktop. Test the functionality of LSP-jdtls. Close the file and repeat this process as many times as you'd like. Solution (workaround). Disconnecting from the internet before opening Sublime Text 4 completely solves the issue. LSP-jdtls works as it was supposed to. No more unpredictable behavior every time I open .java file. Moreover, the behavior of LSP-jdtls is smooth and no longer are elements of code underlined that are no longer hovered over. Additional info. I am using Linux Mint 20.2 and running
|
Pinning is also useful because it allows you to review the changes done to the server when updating it and either add new settings, remove removed ones or address breaking changes. |
Instead of always getting the latest version, please pin the server version.
When the download site has problems and there happens to be a new version, all users are stuck with a hanging download.
The text was updated successfully, but these errors were encountered: