microsoft / microsoft/vscode-java-debug

Debugger mistakenly included Gradle build folder in classpaths

オープン
#1,315 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

ai-triaged bug
主要言語
TypeScript
スター
591
フォーク
429
平均マージ
1日 9時間
マージ済み PR(30日)
19

説明

  1. Open spring-petclinic project using VS Code with Java Ext Pack installed
  2. When hint to choose between Maven or Gradle, pick Gradle and import the project
  3. In terminal, build the project using gradle by ./gradlew build
  4. 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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

spring-petclinic プロジェクトで問題を再現します。Gradle を選択し、./gradlew build を実行してプロジェクトを起動し、argfile を調べます。bin フォルダーと build フォルダーを追加する classpath の処理を追跡します。生成された classpath に build フォルダーが存在せず、データベースの二重初期化が発生しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, typescript
領域
build-system, devtools
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。