Does not resolve to a ICompilationUnit
See original GitHub issueRedHat Language for Java is just not working No linter, no code suggestions, no “popups” on hovering, anything
I’m able to get the following error:
[Error - 21:08:10] 08-Oct-2018 21:08:10 file:///home/diego/GitHub/MAKEROID/Makeroid/appinventor/components/src/com/google/appinventor/components/runtime/util/crypt/MakeroidAES256.java does not resolve to a ICompilationUnit
It happens when the extension tries to read any file I already tried deleting the extension and installing it again
Environment
- Operating System: Debian 9
- JDK version: 10 (tried as well on 8)
- Visual Studio Code version: 1.28
- Java extension version: Latest
Steps To Reproduce
- Just open any file
Current Result
It should be working
Expected Result
It’s not working
Additional Informations
It was working time ago, but one day it stopped working, I don’t know why
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:21 (2 by maintainers)
Top Results From Across the Web
Code Completion stopped working for "Java Extension Pack"
Thus plugin has been working for three weeks and now the auto completion has decided to stop for no reason. Looking in the...
Read more >emacs-lsp/lsp-mode - Gitter
Anybody had Does not resolve to a ICompilationUnit with lsp-java? I've tried mvn eclipse:eclipse , doesn't seem to resolve it. Muhmud Ahmad. @muhmud....
Read more >Eclipse Community Forums: Java Development Tools (JDT)
- SharedASTProvider.getAST(..) cannot resolve bindings for IClassFile but succeeds on ICompilationUnit [message #1710785], Fri, 09 October 2015 ...
Read more >ICompilationUnit (Eclipse JDT API Specification) - IBM
Constant indicating that a reconcile operation should not return an AST. Fields inherited from interface org.eclipse.jdt.core.IJavaElement · ANNOTATION, ...
Read more >Example usage for org.eclipse.jdt.core ICompilationUnit ...
getBoolean(resolver); if (hasCompilationAborted) { // the bindings could not be resolved due to missing types in name environment // see ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Make sure to have a
org.eclipse.jdt.core.javanature
in your .project file.I had the same issue with Apache flink -
mvn eclipse:eclipse
did the trick. This also generates the .classpath.I am still getting this issue even after performing the clean java workspace command in VS Code.