redhat-developer / redhat-developer/vscode-java
The plugin cannot find jflex generated java source code.
未关闭
还没有人认领这个 Issue。
codegen
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
The plugin cannot correctly resolve OpenGrok's generated Java source.
Environment
- Operating System: Ubuntu 18.04
- JDK version: OpenJDK 11 64 Bit
- Visual Studio Code version: 1.33.1
- Java extension version: 0.43.0
Steps To Reproduce
git clone git@github.com:oracle/opengrok.git- Use VS Code open the folder.
Example project: OpenGrok
Current Result
Lots of errors like this one
{
"resource": "/home/shenghang/code/opengrok/opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/ada/AdaAnalyzer.java",
"owner": "_generated_diagnostic_collection_name_#1",
"code": "16777218",
"severity": 8,
"message": "AdaXref cannot be resolved to a type",
"source": "Java",
"startLineNumber": 68,
"startColumn": 34,
"endLineNumber": 68,
"endColumn": 41
}
Expected Result
The project can be correctly parsed.
Additional Informations
The code that cannot be resolved is on opengrok-indexer/target/generated-sources/jflex/org/opengrok/indexer/analysis folder.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
通过克隆 OpenGrok 并在 VS Code 中打开它来复现问题。从 opengrok-indexer/src/main/java/org/opengrok/indexer/analysis/ada/AdaAnalyzer.java 以及 opengrok-indexer/target/generated-sources/jflex/org/opengrok/indexer/analysis 下的生成源代码开始。当生成的 Java 类型已解析,且项目不再报告这些诊断信息时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100