redhat-developer / redhat-developer/vscode-java
Project does not build due to build path being incomplete
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
None of my Java projects are being built properly by the language server.
All my projects are failing, even previously working projects
Fundamentally, I'm getting JRE errors such as The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files.
I'm unable to open standalone Java files, vanilla Java projects and packages, or Maven projects properly.
Here are some things I've tried:
- Cleaned and restarted the language server workspace multiple times.
- Set up the runtimes properly according to the guide.
- Set
JAVA_HOME,java.hometo jEnv symlinks.jenv/versions/14.0and directly to the JDK installations themselves/usr/local/Cellar/openjdk/14.0.1/. - Repeated the above steps with Java 11 and Java 14.
- Repeated the above steps with Java 11 Homebrew Cask installation of OpenJDK
/Library/Java/JavaVirtualMachines/... - Full wipe of VSCode and reinstalled everything, with the same results.
Additional Informations
I'm using jenv to manage my JDKs, and I've enabled the export and maven plugins. Compilation with javac and running with java works just fine.
Environment
- Operating System: macOS 10.15.6
- JDK version: 11.0.8, 14.0.1
- Visual Studio Code version: 1.48.2
- Java extension version: 0.65.0
Steps To Reproduce
- Open a new
.javafile and define a class.
Log files
redhat.java/client.log.2020-08-26
client.log
Current Result
Plugin is unable to find JRE classes which causes compilation errors for the server.
Expected Result
Plugin should be able to link to JRE classes and compile properly, providing Intellisense without any errors.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the referenced redhat.java/client.log.2020-08-26 log and reproduce the failure by opening a new standalone .java file, then trace why the language server cannot link JRE classes. Done means standalone files, vanilla projects, and Maven projects compile with IntelliSense and without JRE resolution errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100