redhat-developer / redhat-developer/vscode-java

Diagnostics do not work on symlinked files

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

还没有人认领这个 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
  1. Create a sample java project with a .java file and introduce an error to it (e.g. use HashMap<String, String> without importing HashMap).
  2. You should see HashMap underlined with an error HashMap cannot be resolved to a type
  3. 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>)
  4. The new file won't have HashMap underlined

original code with expected behavior
symlinked code with unexpected behavior

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

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