microsoft / microsoft/vscode-java-debug
Combine classpath from all projects in workspace
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
Suppose you have demo.jar, which dynamically loads class Demo2, which is to be found in demo2.jar. (There are no maven dependencies between demo and demo2.)
In VSCode, it is easy to create a workspace with the code from demo and demo2, but I have not found any good way to get demo and demo2 on the same classpath when launching the application.
In theory, I could use classPaths in workspace.json/launch.json and point to demo2/target/classes + demo2's dependencies. In practice, however, that quickly gets out of hand, since you typically have many dependencies.
I have looked everywhere but haven't found any "good" solution. Is this something that is not supported?
If it isn't, maybe one could introduce another variable like "$Auto," which includes the workspace's combined classpath.
Environment
- Operating System: macosx
- JDK version: Java(TM) SE Runtime Environment (build 19.0.1+10-21)
- Visual Studio Code version: Version: 1.74.2
- Java extension version: 1.13.0
- Java Debugger extension version: v0.47.0
Please see attached zip.
classpath-problem.zip
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先检查 workspace.json 和 launch.json 的 classPaths 是如何处理的,使用附加的 classpath-problem.zip 重现双项目设置。确定调试器当前如何解析 workspace 项目及其依赖项;当启动 demo 可以自动包含 demo2 及其依赖项,而无需手动列出它们时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, devtools
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100