question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code Workspace Classpath is corrupted after restart

See original GitHub issue
  1. When I open a code-workspace with a clean Java Language Server Workspace everything works.
  2. 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
  3. 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
  1. Create a test.code-workspace file with the following contents:
    {
        "folders": [
            {
                "path": "test"
            }
        ]
    }
    
  2. Create folder test
  3. Create a file Test.java in that folder
  4. Open the code-workspace with VSCode
  5. Open test/Test.java in VSCode
  6. Everything works
  7. Execute Developer: Reload Window or restart VSCode
  8. Open test/Test.java in VSCode
  9. This Error appears and nothing works
  10. Execute Java: Clean Java Language Server Workspace and restart VSCode
  11. 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:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rgrunbercommented, May 14, 2021

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.

0reactions
jdneocommented, May 14, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found