microsoft / microsoft/vscode-java-debug
Debugger mistakenly included Gradle build folder in classpaths
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 591
- Forks
- 429
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 19
Beschreibung
- Open spring-petclinic project using VS Code with Java Ext Pack installed
- When hint to choose between Maven or Gradle, pick Gradle and import the project
- In terminal, build the project using gradle by
./gradlew build - Now launch the project, and inspect the argfile
Both bin and build folders are in the classpath, and it will introduce unexpected consequences.
For example, in the spring-petclinic project, the database initialization script will be executed twice due to the extra classpath entry, resulting in duplicated records in db. This is really hard to troubleshoot and will cause serious confusion.
build folder should not be included in this case.
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
Reproduziere das Problem mit dem Projekt spring-petclinic: Wähle Gradle aus, führe ./gradlew build aus, starte das Projekt und untersuche die argfile. Verfolge die Classpath-Verarbeitung, die die Ordner bin und build hinzufügt; abgeschlossen ist die Aufgabe, wenn der Ordner build im generierten Classpath fehlt und die doppelte Datenbankinitialisierung nicht mehr auftritt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, typescript
- Bereich
- build-system, devtools
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100