question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not resolve to a ICompilationUnit

See original GitHub issue

RedHat 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
  1. Just open any file

image

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:open
  • Created 5 years ago
  • Reactions:8
  • Comments:21 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
mojadevcommented, Sep 6, 2019

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.

5reactions
Phonesiscommented, Nov 7, 2018

I am still getting this issue even after performing the clean java workspace command in VS Code.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found