redhat-developer / redhat-developer/vscode-java

Cannot really use the right jdk version without cleaning the workspace

Open
#966 0 comments 0 reactions 0 assignees View on GitHub

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
  1. Open a java12 invisible project
  2. Change the local JDK version from 8 to 12
  3. Reopen the project in VSCode again

[attach a sample project reproducing the error]
invisble-project.zip

Current Result
  1. There is still an error in the source code, the compilation failed
  2. After cleaning java language server workspace, compile again, works

image

Expected Result

Works without cleaning java language server workspace

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.