-
Notifications
You must be signed in to change notification settings - Fork 356
[bug] workspace storage is breaking vscode-java-debug #720
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
Comments
By the design of current vscode-java extension, actually We're designing a new approach to manage the library for VS Code java project. Keep a watch at issue microsoft/vscode-java-dependency#174 |
Will that mean, once that is out that I need a new |
The shared libraries would be saved in VS Code user settings, so that the VS Code workspace is able to share them. |
That sounds awesome! |
Here is the update: microsoft/vscode-java-dependency#174 (comment) |
This is a classpath issue, and now we allow you to use setting to customize the classpath for the no-buildtool project. Go to .vscode/settings.json of your workspace folder, you can explicitly specify source roots and referenced libraries. {
"java.project.sourcePaths": [
"src/main",
"src"
],
"java.project.referencedLibraries": [
"lib/**/*.jar"
]
} I'm closing it, feel free to reopen it if your issue is not resolved. |
I reported this before, but I had issues isolating it. Now I made a small project to reproduce the problem.
The issue:
The project is working fine. When I close and open vscode then I can't run the debugger anymore.
I get:
If I remove the workspace storage then the problem is gone.
Environment
--Red Hat extension: 0.53.1
Steps To Reproduce
[1]
Download:
https://github.com./clankill3r/vscode-java-debug_broken_example
Have it at the root of the HD so it starts with
/java
![2]
Open the folder
/java/projects/ws_root
, when you get the message prompt about the workspace folder containing a workspace then clickopen workspace
.[3]
Open the file
nasa/src/doeke_nasa/Nasa.java
, and pressF5
to run it.The first time it should print "here" in the debug console.
[4]
Close VSCode, start VSCode again and try to run the same file again. Now you will get an:
[5]
Close VSCode,
Remove the workspace storage,
Start VSCode again, and run again, now it should work again.
Current Result
Build failed message
Expected Result
Have everything working fine
Additional Informations
The text was updated successfully, but these errors were encountered: