-
Notifications
You must be signed in to change notification settings - Fork 442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Cannot find symbol" #551
Comments
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. |
I 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. |
@neesonqk Those errors because of the inner classes. Could you call "Java: Force Java Compilation" to see whether your issue persists. |
@yaohaizh the issue still persists. |
My bad, my problem is that, I incidentally installed By uninstalling java linter I am able to eliminate those annoying errors. |
hey, when i try doing mine, it just says a variable is not used. But it should still be working like charm. I'm trying to make my discord bot online with discord jda. Could you maybe review my code? here my code : package hoppity.Hops; import net.dv8tion.jda.api.JDA; public class Patootie {
} console log : Patootie.java:3: error: package net.dv8tion.jda.api does not exist |
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
The text was updated successfully, but these errors were encountered: