redhat-developer / redhat-developer/vscode-java

Update jdk and old workspace still points to the stale JRE system libraries

Đang mở
#355 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@snjeza đang làm issue này rồi.

Từ ngày 20/1/2018.

bug
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

Steps to reproduce:

  1. Install jdk1.8.0_131 in windows 10, and set JAVA_HOME and Path environment variables.

  2. Install latest vscode-java extension in vscode, and open a java 8 maven project.

  3. F12 at java.io.PrintStream.println, jump to editor contents/rt.jar/java.io/PrintStream.class.

  4. Install the latest jdk-9.0.1 and update JAVA_HOME and Path environment variables.

  5. Restart vscode window.

  6. F12 at java.io.PrintStream.println, still jump to the stale jre source contents/rt.jar/java.io/PrintStream.class. It's supposed to jump to the java 9 source contents/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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.