Code Workspace Classpath is corrupted after restart
See original GitHub issue- When I open a code-workspace with a clean Java Language Server Workspace everything works.
- Once I restart VSCode and open any file, I get the following warning SomeJavaClass
.java is not on the classpath of project
workspacename+some_random_hash, only syntax errors are reported
- When I execute
Java: Clean Java Language Server Workspace
we are back at 1.
Environment
- Operating System: Windows 10
- JDK version: 16.0.1.9
- Visual Studio Code version: 1.56.1
- Java extension version: 0.79.1
Steps To Reproduce
- Create a
test.code-workspace
file with the following contents:{ "folders": [ { "path": "test" } ] }
- Create folder
test
- Create a file
Test.java
in that folder - Open the code-workspace with VSCode
- Open
test/Test.java
in VSCode - Everything works
- Execute
Developer: Reload Window
or restart VSCode - Open
test/Test.java
in VSCode - This Error appears and nothing works
- Execute
Java: Clean Java Language Server Workspace
and restart VSCode - Everything works
Current Result
A restart of VSCode breaks the Java Language Server Workspace and Classpath
Expected Result
It shouldn’t
Additional Informations
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
workspace corrupted grails 2.2.4, Intellij Idea 12.1.4, Windows 7
After editing my .iws file and setting dynamic classpath back to false the 'ClassNotFoundException: org.springsource.loaded.ri.ReflectiveInterceptor' went away.
Read more >Databricks Connect | Databricks on AWS
Because the client application is decoupled from the cluster, it is unaffected by cluster restarts or upgrades, which would normally cause you to...
Read more >Fix list for IBM Integration Bus Version 10.0
The following is a complete listing of available fixes for IBM Integration Bus ... IT22683, INTEGRATION NODE ABEND ON STARTUP DUE TO CORRUPT...
Read more >[index] "references in workspace" is obviously incorrect. - Bugs
The solution that we've found is to stop eclipse, delete the indexes in org.eclipse.jdt.core and restart. But it's more than just not finding ......
Read more >Spring Boot, Maven and Eclipse Errors and TroubleShooting ...
Q : Why does Hot reload not work with Spring Boot DevTools and Intellij? Spring ... Q : Why am I not seeing...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, the change appears to resolve the issue. Cleaning the language server workspace, or reloading the window continue to work as well with the snippet provided.
This will be fixed in 0.79.2, which we expect to have out early next week. Feel free to re-open the issue though if the problem does persist.
This should be fixed by https://github.com/eclipse/eclipse.jdt.ls/pull/1767 I guess. @snjeza @rgrunber