Visual Studio Code – Java – Import Errors and More

I ran into a similar issue. The solution was to remove everything from VS Code’s workspace storage directory, which was located at $HOME/Library/Application Support/Code/User/workspaceStorage/.

I found this solution here: https://github.com/redhat-developer/vscode-java/wiki/Troubleshooting#clean-the-workspace-directory

Update: This can now be done from within VS Code as of Language Support for Java(TM) by Red Hat Version 0.33.0. Open the command palette and type “java clean” (see official description in link).

Leave a Comment