redhat-developer / redhat-developer/vscode-java
Outline with VSCodium/macOS broken for versions > 1.10
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Using a clean install of VSCodium on macOS (details see below) with only vscode-java.
Java project is https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/
When the extension in version <=1.10 is installed, an outline for the Java classes is displayed.
When the extension in version >=1.20 is installed, instead of an outline, I see the message "No symbols found in document '*'", so the outline is not displayed.
*current-file-name.extension, e.g. Account.java
Expected behavior: Outline is still displayed.
Environment
- Operating System: macOS 11.6
- JDK version: openjdk version "11.0.14" 2022-01-18 - OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) - OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
- Visual Studio Code version: VSCodium (!) Version: 1.65.0 Commit: b5205cc8eb4fbaa726835538cd82372cc0222d43 Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 20.6.0
- Java extension version: 1.00-1.40, affected versions: 1.20+
Steps To Reproduce
- Fresh install of VSCodium (all extension folders
- Fresh install of Java extension >=1.20
- Check outline for a Java file.
[Please attach a sample project reproducing the error]
https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/
Please attach logs
Attached for version 1.10:
client.log.2022-03-10.log
NB
Version 1.20+ logfile creation doesn't work, command results in:
"Command 'Java: Open Java Extension Log File' resulted in an error (command 'java.open.clientLog' not found)"
Current Result
Versions 1.20+ show instead of the outline the message, "No symbols found in document '<file.extension>'"
Expected Result
Outline is displayed also for versions 1.20+
Additional Informations
Not tested with VSCode M$-proprietary.
Not tested with versions < 1.00.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 macOS 上的 VSCodium 中,使用链接的 account-service 示例项目重现该问题,并比较低于 1.10 和 1.20+ 的 Java 扩展版本。检查 outline 结果,并调查受影响版本中无法使用 java.open.clientLog 命令的原因;当 Java 文件在 1.20+ 版本的 outline 中显示其符号时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100