vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

"Cannot find symbol"

Open swarnendubiswas opened this issue 7 years ago • 9 comments

VS Code shows a "Cannot find symbol" error with the red squigly for several symbols but "Go to definition" works which means the definition is available.

Environment
  • Operating System: Ubuntu 18.04
  • JDK version: 1.8.0_171
  • Visual Studio Code version: 1.23.1
  • Java extension version: 0.26.0
Steps To Reproduce
  1. Open the attached dummy project in VS Code.
Current Result

You should see several errors related to "cannot find symbol". However, navigation or "Go to definition" works on these symbols.

Expected Result

The red squiggly lines should not appear since I think the symbols are indeed available.

Additional Informations

The VS Code settings.json file is also attached. java-symbols.zip

swarnendubiswas avatar Jun 03 '18 20:06 swarnendubiswas