redhat-developer / redhat-developer/vscode-java
"Incomplete classpath" in ant project
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.3k
- Forks
- 546
- Ø Merge
- 20 Std. 1 Min.
- Gemergte PRs (30 T.)
- 11
Beschreibung
First time user of VS Code, and it's been some time since I last worked with Java, so apologies for any gaps in my knowledge. I have a project where a colleague set up an ant build file and I'm trying to build it in VS Code. I'm getting the infamous "Classpath is incomplete" warning as described here: https://github.com/redhat-developer/vscode-java/wiki/%22Classpath-is-incomplete%22-warning.
The question is about how to resolve this, i.e. to complete the classpath, while still having this be an ant-built project as my colleague intends. The last paragraph of the wiki article says "You need to open a folder containing a pom.xml, build.gradle or at least default eclipse setting files, so that a complete classpath and project hierarchy can be set." I assume that if I put the correct "default eclipse setting files" in my project folder I can make the error go away -- is that right? If so, what should be in those default eclipse setting files? Could you edit the Wiki page to give guidance or at least a link to somewhere explaining what to do next?
Environment
- Operating System: Windows 10
- JDK version: 1.8.0_221
- Visual Studio Code version: 1.37.1
- Java extension version: Java Extension Pack 0.7.1
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit dem verlinkten Wiki-Artikel „Classpath is incomplete“ und dem Kontext des Ant-Projekts in der Frage. Aktualisiere die Wiki-Anleitung, um zu erklären, was ein Ant-Projekt für einen vollständigen classpath benötigt, einschließlich der Frage, ob die standardmäßigen Eclipse-Einstellungsdateien ausreichen und was sie enthalten sollten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, vscode
- Bereich
- developer-experience, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100