redhat-developer / redhat-developer/vscode-java
"Project cannot be built until its prerequisite is built" errors each time I close & open VSCode
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
I have a multi-module Maven project that I created using Eclipse, and now I am trying to migrate to VSCode.
I have opened the project in VSCode, and it has updated all .project and .classpath files. There is no error in the project, and everything seems to work perfectly.
But after I close VSCode and open it again, without having changed a single line, after Java builds everything, suddenly most of the modules are in red, and I see this type of error in the Problems tab:
"The project cannot be built until its prerequisite XXX is built. Cleaning and building all projects is recommended"
If I "Clean Java Language Server Workspace", the problems disappear, until I close+open VSCode again.
If I "Force Java Compilation > Full", the same. Problems disappear until the next restart.
I guess this shouldn't happen, but I don't know if it is a problem in my project (as I've said, everything works until I close the workspace), I have something configured incorrectly or it is a bug in vscode-java (and if so, if there's any workaround).
I am using JDK 8.
I have tried the pre-release version too, but I get the same problems.
Thank you in advance, please let me know if you need more info.
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
Iniziare riproducendo il malfunzionamento con il progetto Maven multi-modulo dopo aver riaperto VSCode, confrontando i file .project e .classpath prima e dopo le build Java. Verificare se la pulizia del Java Language Server Workspace o l’uso di Force Java Compilation > Full cambia il risultato. Il lavoro è completato quando viene identificata la causa correlata al riavvio oppure una soluzione alternativa affidabile per gli errori dei prerequisiti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- build-system, developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100