redhat-developer / redhat-developer/vscode-java
Update jdk and old workspace still points to the stale JRE system libraries
@snjeza がすでに取り組んでいます。
2018年1月20日 から。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
Steps to reproduce:
-
Install jdk1.8.0_131 in windows 10, and set JAVA_HOME and Path environment variables.
-
Install latest vscode-java extension in vscode, and open a java 8 maven project.
-
F12 at
java.io.PrintStream.println, jump to editorcontents/rt.jar/java.io/PrintStream.class. -
Install the latest jdk-9.0.1 and update JAVA_HOME and Path environment variables.
-
Restart vscode window.
-
F12 at
java.io.PrintStream.println, still jump to the stale jre sourcecontents/rt.jar/java.io/PrintStream.class. It's supposed to jump to the java 9 sourcecontents/java.base/java.io/PrintStream.class.
Actually the java language server was launched by the new java 9 jvm, but the workspace cached the old JRE 8 system libraries and user has no way to change the JRE system libraries.
Current workaround is to clean up the vscode local storage directory C:\Users\jinbwan\AppData\Roaming\Code - Insiders\User\workspaceStorage.
Expected:
When vscode-java extension startup, update the workspace jre container to the one under JAVA_HOME silently.
Or provide a command to allow user to update the workspace JRE container.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。