redhat-developer / redhat-developer/vscode-java
Java Maven Projects containing other nested Java Maven Projects not being recognized as Java Projects in 1.17
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
Description
I admit that our project structure is not standard, but it's how we've been working for many years. We have a java (war) project that contains many Java (jar) projects in a folder structure similar to the one below.
**root_java_project**
|-> pom.xml
|-> src
|-> **child_java_project_1**
|-> pom.xml
|-> src
|-> **child_java_project_2**
|-> pom.xml
|-> src
...
|-> child_java_project_n
|-> pom.xml
|-> src
Several on our team recently experienced this issue when we updated to Java Extension Pack to 1.17. It immediately ceased recognizing our ROOT project as being a legit java project. The child projects were fine. (note that the project hierarchy is only one level deep -- a root and it's children). Reverting back to 1.16 or earlier made the issue disappear.
Environment
- Operating System: Mac OS Ventura 13.13.1
- JDK version: 17 and 16
- Visual Studio Code version: 1.77.3
- Java extension version: 1.17
Steps To Reproduce
- Assume folder structure as shown above.
- Open an empty workspace
- click
Add folder to workspaceand selectchild_java_project_1 - project is added to workspace and it's recognized as a java project
- repeat for
child_java_project_2...child_java_project_n - all projects are recognized as java projects with full linking, debugging, etc, support.
- finally repeat for
root_java_project. It shows up in the "Java Projects" but it doesn't recognize that there's a pom in that root folder and consequently doesn't capture it as being a legit java project. - Revert back to 1.15 or 1.16 and it works.
I do see quite of few Stack Overflows in the Language Server Log file. Not sure if that's the cause.
VS Code Language Server Log file.txt
VSCode Client Logs.txt
Current Result
Expected Result
Additional Informations
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia riproducendo la struttura annidata del workspace con pom.xml descritta nell’issue, quindi esamina il VS Code Language Server Log e i VSCode Client Logs allegati alla ricerca degli Stack Overflows segnalati. Il lavoro è completato quando il progetto Java radice viene riconosciuto con il suo pom.xml e il supporto esistente per i progetti figlio continua a funzionare in Java extension 1.17.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- build-system, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100