redhat-developer / redhat-developer/vscode-java

bootstrapClasspath not working

Aperta
#767 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

@snjeza ci sta già lavorando.

Dal 17/1/2019.

compile Gradle upstream
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.