redhat-developer / redhat-developer/vscode-java
The project DataflowTemplates can't be parsed when opened by VSCode from WSL
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
The project https://github.com/GoogleCloudPlatform/DataflowTemplates can't be parsed when opened by VSCode from WSL
Environment
- Operating System: Windows 11 / WSL Ubuntu 22
- JDK version: 17.0.8.1
- Visual Studio Code version: 1.83.1
- Java extension version: 1.24.0
Steps To Reproduce
- clone https://github.com/GoogleCloudPlatform/DataflowTemplates to a WSL directory
- open in VSCode via "code ."
Current Result
All the Java subprojects in the "v2" subfolder are red.
The "Language Support for Java" log contains multiple errors like
[Error - 7:19:34 PM] Oct 27, 2023, 7:19:34 PM Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ls.core".
structured-logging does not exist
Java Model Exception: Error in Java Model (code 969): structured-logging does not exist
at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:550)
at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence(JavaModelManager.java:2567)
...
Jumps to type definitions don't work.
language-server-log.txt
Expected
devtools-console-log.txt
Result
The project is parsed correctly, no errors detected, all the jumps to type definitions work.
Additional Informations
cat /proc/sys/fs/inotify/max_user_watches
524288
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 WSL Ubuntu 目录中使用 DataflowTemplates 仓库复现该报告,通过 VSCode 使用 "code ." 打开其 v2 子项目。阅读附加的 language-server-log.txt 和 devtools-console-log.txt,然后将结果与预期行为进行比较:没有解析错误,并且可以正常跳转到类型定义。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 40/100