Visual Studio Code - Java - Import Errors and More

前端 未结 5 1333
盖世英雄少女心
盖世英雄少女心 2020-12-12 23:48

Just starting working on an existing project at work and wanted to use Visual Studio Code as my editor (I have used it for a recent Rails project and loved it so wanted to t

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-13 00:17

    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).

提交回复
热议问题