Repository navigation
"Cannot find symbol" #551
Description
Activity
Indeed, for some reason LineAddress can't be resolved immediately. but as soon as IntegerVariantTypes.java is opened, the compilation errors disappear. Might be caused by LineAddress being an inner class in a file that's doesn't define the IntegerVariantTypes class. Same project opens fine in Eclipse.
Reacted by İnanç Dokurel, functionstackx and Piyawan YosathornI have the same problem.
What is the solution?
I got this similar problem after I disable and enable Maven Plugin, before that everything worked like a charm, firstly I disabled Maven plugin, and restarted, then I started to see those annoying errors, I then re-enabled maven plugin, unlucky, those errors are still there, unable to eliminate no matter what I do. But my code runs without any problem.
Reacted by Piyawan Yosathorn and DerMertEr@neesonqk Those errors because of the inner classes. Could you call "Java: Force Java Compilation" to see whether your issue persists.
My bad, my problem is that, I incidentally installed
java linterextension when I disable Maven Plugin...By uninstalling java linter I am able to eliminate those annoying errors.
Reacted by functionstackx, Andy, Danny Walker, Lukas Georgieff, Artur P, Letourneur Léo, Winona Azure, twoharejack, Ayuna OSS and Paul ZhangReacted by Artur P, Herman Morales and Piyawan YosathornI'm not sure why these solutions didn't work for me, but uninstalling the
Javaextension by Oracle Corporation solved it!Reacted by Ishaan Abhinav and rghshI'm not sure why these solutions didn't work for me, but uninstalling the
Javaextension by Oracle Corporation solved it!works for me too


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
Steps To Reproduce
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