microsoft / microsoft/vscode-java-debug
The **wildcard** classPath in `classPaths` configuration only works when `console` is set to `internalConsole`
未关闭
还没有人认领这个 Issue。
ai-triaged
bug
feature request
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
The wildcard classPath in classPaths configuration only works when console is set to internalConsole. Is this a normal situation?
As the image showed, I add custom classpath of plugins with wildcard for my app to load. Howerver it only works when using internalConsole.
Environment
- Operating System: Windows 10 22H2
- JDK version: Oracle JDK 1.8.0_301
- Visual Studio Code version: v1.87.2
- Java extension version: v0.25.15
- Java Debugger extension version: v0.56.2
Steps To Reproduce
- Create normal java project
- In launch.json add some custom classpath in
classPathsconfiguration with wildcard in path. ie${workspaceFolder}/extraCp/* - Add some jar files in extra classpath
- In launch.json set
consoletointernalConsole. - In Main(), get system classloader and print every urls it loads.
- Run Main() and you can see jar files in extra classpath is loaded.
- In launch.json set
consoletointegratedTerminalorexternalTerminal. - Run Main() again and no jar files in extra classpath is loaded.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从使用 reproduction 中描述的 classPaths、通配符路径和控制台设置的 launch.json 配置开始。使用 internalConsole、integratedTerminal 和 externalTerminal 运行提供的普通 Java 项目,然后跟踪调试器在每种情况下如何处理 classpath;当通配符条目能够一致地加载,或已记录受支持的行为时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 35/100