redhat-developer / redhat-developer/vscode-java

bootstrapClasspath not working

Offen
#767 1 Kommentar 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@snjeza arbeitet bereits daran.

Seit 17.1.2019.

compile Gradle upstream
Vorherrschende Sprache
TypeScript
Sterne
2.3k
Forks
546
Ø Merge
20 Std. 1 Min.
Gemergte PRs (30 T.)
11

Beschreibung

I have a gradle project that sets a bootstrapClasspath like so:

tasks.withType(JavaCompile) {
  options.bootstrapClasspath = files(project(":haikuRT").tasks["compileJava"].destinationDir, "../lib/nxt/classes.jar")
}

If I do a gradlew build, the project builds without error. However, vscode continues to show compile errors because bootstrapClasspath is not honored. For example, a modification has been made (a method added) to the Thread class however the language server is accessing the Thread class within the JDK.

Environment
  • Operating System: Both Windows 10 and OSX 10.12.5
  • JDK version: Both 1.8 and 11
  • Visual Studio Code version: 1.30.2
  • Java extension version: unknown
Steps To Reproduce
  1. Clone https://github.com/chuckb/haikuVM
  2. ./gradlew build (note that it builds)
  3. Observe that the bootstrap subproject has compile errors.
Current Result

Gradle build and vscode show inconsistent results.

Expected Result

vscode should show no compile errors.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.