redhat-developer / redhat-developer/vscode-java
Cannot really use the right jdk version without cleaning the workspace
Open
Nobody has claimed this yet.
runtime
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
Environment
- Operating System: Windows
- JDK version: 1.8.0_211 and 12.0.1
- Visual Studio Code version: 1.35.1
- Java extension version: 0.46.0
Steps To Reproduce
- Open a java12 invisible project
- Change the local JDK version from 8 to 12
- Reopen the project in VSCode again
[attach a sample project reproducing the error]
invisble-project.zip
Current Result
- There is still an error in the source code, the compilation failed
- After cleaning java language server workspace, compile again, works

Expected Result
Works without cleaning java language server workspace
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
Use invisible-project.zip to reproduce on Windows with JDK 8, switch to JDK 12, and reopen the project in VS Code. Start by tracing the Java language server workspace state around the failed compilation; done means the project compiles after the JDK change without cleaning the workspace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100