redhat-developer / redhat-developer/vscode-java
Compiler options in pom.xml are not obeyed
未关闭
还没有人认领这个 Issue。
Maven
upstream
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
VSCode with the RedHat Language Support for Java extension does not obey javac compiler options specified in the Maven pom.xml when compiling projects.
Environment
- Operating System: Debian 12
- JDK version: 21.0.1
- Visual Studio Code version: 1.87.0
- Java extension version: 1.29.2024030608
Steps To Reproduce
- Compile the sample project via
mvn compile. Note that no errors or warnings are produced. - Open the sample project in VSCode and wait for the Java extension to build it. Note that 1 warning is produced.
Sample project:
https://github.com/paulmedynski/vscode-java-compiler-args
Current Result
VSCode produces compiler errors and warnings that are disabled in pom.xml.
Expected Result
VSCode compiles the project with the same compiler options specified in pom.xml.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的示例项目开始,将 mvn compile 与 VSCode Java extension 的构建进行比较,并将 pom.xml 中的编译器选项作为预期行为。跟踪扩展如何导入或应用这些选项,然后验证 VSCode 是否生成与 Maven 相同的诊断信息。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript
- 领域
- build-system, devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100