microsoft / microsoft/vscode-java-debug
Support use of environment variables in classPaths
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
w.r.t. launch.json, this does not work:
"classPaths": [
"$Auto",
"$HOME/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar"
]
The classes pointed to by $HOME/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar are not available to the Java program.
if I replace $HOME with its actual value, it works e.g.:
"classPaths": [
"$Auto",
"/Users/me/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar"
]
Environment
- Operating System: Mac OS Big Sur
- JDK version: 17
- Visual Studio Code version:
Version: 1.74.2 (Universal)
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:26:09.430Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 20.6.0
Sandboxed: No
- Java extension version:
- Java Debugger extension version:
Steps To Reproduce
- [step 1]
- [step 2]
[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先跟踪 Java 调试器如何处理 launch.json 中的 classPaths,然后使用 $HOME 和对应的展开路径重现该配置。当 classPaths 中的环境变量得到解析,使 Java 程序能够从所引用的 JAR 加载类时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- devtools
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100