redhat-developer / redhat-developer/vscode-java

More than one Java maven project is not displayed/resolved correctly in Java Projects view of multi root workspace in VS Code

Ouverte
#2,545 21 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

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

Description

client.log
client_log2.log

Hi,

A couple of days ago noticed that when I add new java project It does not get resolved (classpath, JRE, etc) in Java Projects view. Hence Tests not working and in general it is not a java project for VS Code. If I remove the first project from the workspace then the second becomes a valid project.

I have the same laptop at home which is synced via github account for settings, extensions, etc and home laptop works fine but on small projects.

My work laptop periodically takes very long time to open Java projects (I have normally 5-7) in the workspace. When it can't within 2 min I just do cleanup workspace and after reload it can open, though still takes some time. This got worse over time. I already reinstalled vs code and cleaned all metadata. Did not help.

When project is not recognized as a Java project the tree node in java projects corresponding for this project is not expanding.

Could someone take a look and fix this as it is very annoying.

Thank you,
Andrei.

Environment
Steps To Reproduce
  1. Create a new workspace
  2. Import/Create new Java maven project
  3. Add to workspace a folder with a another Java maven project
  4. Check that the second project can be expanded and you can see packages, JDK, Maven dependencies, etc in Java Projects view.
  5. This does not happen for any 'second project'. Simple 'hello world' projects work sometime.
  6. If you remove the first project then the second gets displayed/handled properly.
    client.log

[Please attach a sample project reproducing the error]
Please attach logs

Current Result

Second, third, etc projects in the Multi root java workspace stopped working 2-5 days ago

Expected Result

Multiple Java projects should work in Multi root java workspace

Additional Informations

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.

Piste de recherche

Reproduisez l’espace de travail multi-root en suivant les étapes indiquées avec au moins deux projets Java Maven, puis examinez les fichiers client.log joints et le comportement de la vue Java Projects. La correction est terminée lorsque chaque projet résout son classpath, sa JRE, ses packages et ses dépendances Maven et peut être développé sans supprimer un autre projet.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java, typescript, vscode
Domaine
developer-experience, devtools, tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

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