-
Notifications
You must be signed in to change notification settings - Fork 453
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
Stops at "Starting Java Language Server..." #162
Comments
Can you set the |
@gorkem No any different. My Configuration:
I open VSCode from Desktop, Without doing anything else in any file. (I have read that I have to set some environment variables) |
I'm having the same issue. It started with the 0.0.12 update. |
We're suspecting a workspace corruption occurs when closing VS Code, but we're unable to reproduce it ourselves. It seems deleting %APPDATA%\Code\User\workspaceStorage (or ~/Library/Application Support/Code/User/workspaceStorage on MacOS) and restarting vscode helps other users, can you give it a try? |
I've already tried that. That problem persists. And I'm currently on 0.0.13. |
The same here. The "Starting Java Language Server ..." message doesn't go away and there are no errors in the trace log. I'm running 0.0.13 |
Tried to delete Environment
|
I believe we fixed that with eclipse-jdtls/eclipse.jdt.ls#194. We'll release a new version of vscode-java later this week. Until then, the workaround is to open the folder containing the java file, instead of the java file directly |
Please try vscode-java 0.1.0 after cleaning up your workspace. And if the problem still persist, please attach the logs for vscode and eclipse.jdt.ls. |
Thanks! It works for me. |
This solution worked for me as well. |
Given we haven't received any new reports about that issue and 0.1.0 seems to have fixed the problem for some users, I'm gonna close this one. |
Hi. I am facing a similar problem: when trying to run a .java file with F5, in the status bar (below) appears a new message telling me "28% Starting Java Language Server - Refreshing 'jdt.ls-java-project'". Don't know what to do. Please can someone help? |
@neurospective please attach the logs for vscode and eclipse.jdt.ls. cleaning up your workspace might help. |
Ah sorry forgot to mention that, cleaning workspace did not help. Vscode logs: [/Users//.vscode/extensions/ms-vscode.cpptools-0.14.2]: Der Befehl "workbench.action.gotoSymbol" ist mehrmals im Abschnitt "commands" vorhanden. eclipse.jdt.ls logs: |
I get the same error, although I didn't even try to edit or open a .java file. |
@jetinski aggressive jdt.ls startups are caused by having the vscode-java debugger installed. Can you try to call the
Where 8560 here is the process id.
This should give you a thread dump. Copy and paste it here, so we get an idea of where the server is stuck at. |
@jetinski also see #162 (comment) |
@fbricon unfortunately running jps gives me just a blank line |
@fbricon I'm seeing "100% Starting Java Language Server - Refreshing /jdt.ls-java-project" but this refresh never seems to complete. Been running for ~30 min now (on my 4th attempt to start VS Code) on a network with ~110/25mbps. Running
(Should there be 2 Running
Running
|
Now, upon restarting VS Code, I get the alert/error: |
Ok...finally after restarting my machine and clearing the workspace folder again, things appear to be working. There is now only one |
Alright am now facing up same issue it stops at 68% starting java language server, I had tried clearing workspace multiple time restarting machine, and yup in jps 2 instances are running for org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar. even if I use kill or jstack, it starts running with some another pid. Please find a way to this, I just love to code in java in vs-code only :-() |
As @jatin711-debug, i tried cleaning the server workspace many times and also rebooted. Here it was getting stuck at [684/1000] too, on version 0.80.0. It broked after moving packages on another local project, a lib one, which was btw open on another window. Trying a workaround, i downgraded to v0.79.0, it worked. And it kept working after upgrading back to 0.80.0. |
[provide a description of the issue]
On the Bottom of VSCode, I see "Starting Java Language Server" instead of thumb up icon.
It didn't go.
Environment
Steps To Reproduce
Current Result
It stopped. Nothing happend
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: