redhat-developer / redhat-developer/vscode-java

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

Ouverte
#355 5 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@snjeza y travaille déjà.

Depuis le 20/1/2018.

bug
Langage dominant
TypeScript
Étoiles
2.3k
Forks
546
Merge moyen
20 h 1 min
PR mergées (30 j)
11

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.