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
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
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
- Operating System: Darwin arm64 21.1.0
- JDK version: Zulu 8.60.0.21-CA-macos-aarch64
- Visual Studio Code version: .68.1 (https://github.com/microsoft/vscode/commit/30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:37.209Z)
- Java extension version: 1.8.0
Steps To Reproduce
- Create a new workspace
- Import/Create new Java maven project
- Add to workspace a folder with a another Java maven project
- Check that the second project can be expanded and you can see packages, JDK, Maven dependencies, etc in Java Projects view.
- This does not happen for any 'second project'. Simple 'hello world' projects work sometime.
- 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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduzieren Sie den Multi-Root-Arbeitsbereich anhand der aufgeführten Schritte mit zwei oder mehr Java-Maven-Projekten und untersuchen Sie anschließend die angehängten client.log-Dateien sowie das Verhalten der Java Projects-Ansicht. Die Fehlerbehebung ist abgeschlossen, wenn jedes Projekt seinen Classpath, seine JRE, seine Pakete und seine Maven-Abhängigkeiten auflöst und erweitert werden kann, ohne ein anderes Projekt zu entfernen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, typescript, vscode
- Bereich
- developer-experience, devtools, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 25/100