Reputation: 119
I am new to Visual Studio Code for Java development and I had a workspace open yesterday for testing. Now when restarting Visual Studio today, I get a "Classpath is incomplete" warning when I open any java file and I cannot get any tests to run. Looking at what must be the workspace file, it only contains the following. Is it missing something that sets the class path, or is there some other way to solve this problem?
{
"folders": [
{
"path": "<path to project directory>"
}
],
"settings": {
"java.configuration.updateBuildConfiguration": "automatic"
}
}
Upvotes: 5
Views: 15460
Reputation: 1312
Currently, using version 1.60.x, solved this with the following steps on MacOS
Upvotes: 4
Reputation: 119
I was able to solve this problem by using the File > Add Folder To Workspace option to create a new workspace that I can now run the debugger in.
Upvotes: 2