redhat-developer / redhat-developer/vscode-java
"Classpath is incomplete" warning with Maven project
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
I get the "Classpath is incomplete" popup warning, but can't seem to figure out the magic combination of rain dances required to make it "work".
Environment
- Operating System: Mac OS 10.13.6
- JDK version: 1.8.0_144
- Visual Studio Code version: 1.27.2
- Java extension version: 0.3.0
Steps To Reproduce
- Create a blank maven project in an empty folder using the context menu "Generate from Maven Archetype"
- Open the generated
App.java
Sample project attached
threadtest.zip
The only relevant log entry in server log is:
!ENTRY org.eclipse.jdt.ls.core 1 0 2018-09-27 11:53:20.416
!MESSAGE Classpath is incomplete. Only syntax errors will be reported for file:///<REDACTED>/threadtest/src/main/java/threadtest/App.java
Current Result
VS Code pops up the "Classpath is incomplete" warning
Expected Result
Based on the suggestions here, I expected to not get this warning. It's worth noting however, that the language on this page is a little confusing. Particularly this:
Whenever a java file is opened, that does not belong to a project
VS Code doesn't have a concept of a "project". Are you talking about a Maven project? Folks new to either VS Code or your extension (like me) might be confused by what this means (in-fact I am still confused, because I think I have a project but presumably I don't)
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 con il threadtest.zip allegato e l’App.java generato, quindi confronta la voce del log del server con le indicazioni collegate relative all’avviso “Classpath is incomplete”. Riproduci l’avviso usando, se disponibili, le versioni elencate di VS Code, della Java extension, di JDK e di macOS; il lavoro è completato quando il progetto Maven vuoto si apre senza il popup.
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à
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100