Open XuPengfei-1020 opened 5 hours ago
I hive try "clean java language server workspace" several times, issue is still here. Even some class can not find the symbol in another class which in the same module. 💔
Hi @XuPengfei-1020 , I've just tried to import the, https://github.com/trinodb/trino and it works like a charm, imported from first try.
In this extension there is one tricky thing that might be causing this, and it is guessing/setting the java version for compiler to use, as mentioned here. You can navigate to Project Settings by Double Shift and then ">java: open project settings" https://github.com/redhat-developer/vscode-java/issues/3857#issuecomment-2476525958
If this is the case, then it might be good idea to notify user on the first import whether the Java Version guessed for the project is the correct one. Or perhaps adding to the bottom status bar Java Version used by the project/workspace.
cannot find symbol package xxx does not exist ...
What the key point is, if I reopen the vscode or rebuild all projects, the error is changed! Some errors in A.java this time, it will disappear if I rebuild, meanwhile B.java which previously is all fine but become reported some error this time. Or if I make some change on pom.xml, the error is gone, but they will come back soon or later....
Am I missing or making wrong config of this extension? Have you tried some big project like trino or presto in this extension?