microsoft / microsoft/vscode-java-debug
Debugger mistakenly included Gradle build folder in classpaths
未关闭
还没有人认领这个 Issue。
ai-triaged
bug
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
- 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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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