redhat-developer / redhat-developer/vscode-java
Working Maven project reports multiple errors in VSCode and will not build
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 547
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
I have a simple working Java Maven project. This project builds (assuming you have Java and Maven setup) - with:
mvn clean install
And the jar file runs as expected.
However, when I open it in VSCode (I have the Java Extension pack installed) - I see 105 "Problems" reported in the pom.xml:
- 4x "Failed to read artifact descriptor for ..."
- The rest "Missing artifact ..."
This appears to prevent most of the VSCode Java tools from working - I can't build and debug. Intellisense seems to be sketchy/intermittent. And so on.
Environment
- Operating System: Windows 10
- JDK version: OpenJDK 11.0.5.10
- Visual Studio Code version: 1.41.1
- Java extension version: 0.55.0
Steps To Reproduce
- Extract the attached zip file to a folder
- Open the folder in VSCode and inspect the Problems tab
- Attempt to build the project
To prove Maven works
- Extract the attached zip file to a folder
- Open a bash or cmd window, cd to the folder and run
mvn clean install - Copy the generated thularest-1.0.jar file from
<folder>/targetto<folder>/bin - cd to /bin and run
./rest-start.sh - Crowse to http://localhost:8080/api/hello
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 report con il file vsc-java-test.zip allegato: apri il progetto Maven in VSCode, ispeziona la scheda Problems e confrontala con mvn clean install in una shell. Traccia l’importazione del progetto e la risoluzione delle dipendenze della Java extension a partire dalle diagnostiche riportate; il lavoro è completato quando il progetto valido non mostra più gli errori relativi agli artefatti mancanti e gli strumenti di build/debug di Java funzionano.
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
- Abbastanza chiara
- Idoneità per principianti
- 35/100