microsoft / microsoft/vscode-java-debug

The **wildcard** classPath in `classPaths` configuration only works when `console` is set to `internalConsole`

未关闭
#1,456 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged bug feature request
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

image

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
  1. Create normal java project
  2. In launch.json add some custom classpath in classPaths configuration with wildcard in path. ie ${workspaceFolder}/extraCp/*
  3. Add some jar files in extra classpath
  4. In launch.json set console to internalConsole.
  5. In Main(), get system classloader and print every urls it loads.
  6. Run Main() and you can see jar files in extra classpath is loaded.
  7. In launch.json set console to integratedTerminal or externalTerminal.
  8. Run Main() again and no jar files in extra classpath is loaded.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从使用 reproduction 中描述的 classPaths、通配符路径和控制台设置的 launch.json 配置开始。使用 internalConsole、integratedTerminal 和 externalTerminal 运行提供的普通 Java 项目,然后跟踪调试器在每种情况下如何处理 classpath;当通配符条目能够一致地加载,或已记录受支持的行为时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, typescript, vscode
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。