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

Aperta
#2,545 21 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug Maven regression
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Riproducete lo spazio di lavoro multi-root seguendo i passaggi elencati con due o più progetti Java Maven, quindi esaminate i file client.log allegati e il comportamento della vista Java Projects. La correzione è completata quando ogni progetto risolve il proprio classpath, la propria JRE, i propri pacchetti e le proprie dipendenze Maven e può essere espanso senza rimuovere un altro progetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
developer-experience, devtools, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.