redhat-developer / redhat-developer/vscode-java
Compilation errors on a working codebase as soon as I install this extension
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
As soon as I install this extension I start getting all kind of compilation errors in the PROBLEM view. Errors that don't make sense like saying it can't find a variable that's clearly defined.
If I close VSCode or uninstall the extension it starts working again.
Maybe something to do with classpath? Please help me figure this out, I'll pulling my hair out over this for days.
I have tried cleaning the workspace directory already.
Environment
- Operating System: MacOS BigSur
- JDK version: 8(Maven tells me 1.8)
- Visual Studio Code version: 1.54.3
- Java extension version: v0.76.0
Steps To Reproduce
- Open VSCode with extension installed
- Go to the terminal(either os terminal or VSCode terminal) and run
mvn clean verify install
Sample project to reproduce the error
Logs
Current Result
Bunch of build errors
Expected Result
No build errors since this is a healthy project when it doesn't have the extension installed.
Additional Informations
- Works normally with eclipse open.
- Works normally with VSCode open but without this extension installed(I can install everything else in the https://github.com/Microsoft/vscode-java-pack). Meaning this is, indeed, the culprit.
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
Riproduci il problema con il progetto di esempio segmentio/analytics-java usando mvn clean verify install sulle versioni indicate di macOS, JDK 8, VS Code e dell’estensione Java. Confronta la vista Problems e il comportamento della build con l’estensione installata, quindi esamina i log collegati. Il lavoro è completato quando il progetto integro non riceve più errori di compilazione spuri mentre l’estensione è abilitata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- developer-experience, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100