-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Java] "Language server crashed 5 times within the last 3 minutes" #1073
Comments
I cannot reproduce it with the given repo. Could you share the workspace id please with which it happened I would like to investigate Theia logs? |
The workspaces I got this error in are: |
@Sandared thank you, btw does it works for you again? |
@akosyakov |
@Sandared if you apply this configuration: #1018 (comment) Does it work? |
Could you specify what you do? Which editor do you open an so on in https://github.com/DataDog/dd-trace-java? |
No unfortunately not :( But now the error messagen about the crashing language server pops up almost instantly |
@Sandared or take a workspace snapshot and share it here, just don't delete the original workspace. Please also have a look into |
@akosyakov here you go: https://gitpod.io#snapshot/12eb7107-4690-4837-a3eb-50ac73643112 There is no |
Unfortunately, it runs for me as well :( @Sandared Can we have a call to debug it together? |
Uh I finally managed to see some output for the language server: It complains about some missing lombok.jar
|
I added the lombok plugin to the non working workspaces and after a restart they do work again... I did use the lombok plugin for VSCode in one of my other projects. May this somehow influence other workspaces? Are the used plugins not per workspace but per user? |
Could you sum up how you did for others? It seems that Java extension by default does not log any errors, so nothing left in logs. We need some instruction to collect error logs.
No, we don't have user extensions yet. For each workspace extensions are installed according to .gitpod.yml file. Could it be that you added and removed lombok vscode extension in broken workspaces in the past. |
A workaround as suggested by @Sandared seems to get the work space going.
and after that just refresh the browser page, and it should start working |
@dhavalmshah You can install [email protected] VS Code extension for your repo once, then it will be persisted into .gitpod.yml and installed for each workspace. |
@Sandared Could you check please your user settings for something about java jvm args and lombok? Maybe it was inserted by java extension in one workspace, and now picked up in another. |
🤦♂️ my user settings contained this line: I'm pretty sure I never set this manually, so maybe the Lombok extension did this when I installed it in one of my workspaces? ... sorry for the inconvenience. |
Yeah, but it is our fault that we don't remove such settings if extension is not installed as well. |
There is uninstall hook https://code.visualstudio.com/api/references/extension-manifest#extension-uninstall-hook which is used by lombok extension: https://github.com/GabrielBB/vscode-lombok/blob/f7021aa249475311261e3993b2caf434ee1f109b/src/uninstall.ts#L2 Unfortunately vscode api cannot be used in such hook, so lombok extension changes code settings file. It looks hacky and does not help us since we store it other place. There is already an issue in VS Code to handle it somehow: microsoft/vscode#45474 It won't work in VS Code insider and also there are similar issues about lombok on redhat.java. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I have the same Problem with a lombok plugin . Im happy to have found this issue here but i dont know how to really fix it, except adding the plugin to my workspace, though i dont need it there! the id of the not working workspace is: e7a2a741-fb3c-4584-920b-aa98544f0f66 is it possible for me to repair it myself? there must be remains somewhere. im currently trying to grep everything lombok related but until now i found nothing but the log file.
|
Hey :) |
where is that file? there is no settings.json that contains something similar to that line. |
I think you can only Open that File directly in a running Gitpod workspace via Ctrl+; |
thanks! i had been in the settings before but i hadnt found the right setting or the button to go into text mode. the solution was to either edit the settings (
deleting what has been said. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
TLDR: Lombok sets a java agent in the user settings. When you open a workspace without lombok extension, the LS crashes, because the agent is not there.
Describe the bug
When I try to open this GitHub repository with GitPod then I get the error message
"Language server crashed x times within the last x minutes" and I can't code anymore.
To Reproduce
Go to https://github.com/DataDog/dd-trace-java, click the Gitpod button in GitHub and wait for the error message.
Expected behavior
Language server should not crash?
Additional Information
The text was updated successfully, but these errors were encountered: