redhat-developer / redhat-developer/vscode-java
Diagnostics do not work on symlinked files
未关闭
还没有人认领这个 Issue。
bug
diagnostics
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Syntax highlighting does not work on symlinked files, but it does on original one.
Environment
- Operating System: Ubuntu 20.04
- JDK version: 13.0.7
- Visual Studio Code version: 1.63.2
- Java extension version: 1.3.0
Steps To Reproduce
- Create a sample java project with a
.javafile and introduce an error to it (e.g. useHashMap<String, String>without importing HashMap). - You should see
HashMapunderlined with an errorHashMap cannot be resolved to a type - Create a symlink of the file to somewhere outside the project (in ubuntu:
ln -s <path to original file> <path somewhere outside src/main/java structure>) - The new file won't have
HashMapunderlined


贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用列出的 Ubuntu、JDK 和 VS Code 配置复现该问题,比较原始 .java 文件和符号链接 .java 文件上的诊断结果。跟踪 src/main/java 结构之外的文件是如何处理的;当符号链接文件显示与原始文件相同的诊断结果时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100