redhat-developer / redhat-developer/vscode-java
Incorrect source level detected using tiles-maven-plugin
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
We use the tiles-maven-plugin ( caveat, I'm also a maintainer ) for our projects and include the maven-compiler-plugin settings in a tile, which gets resolved as a parent pom in the effective-pom.
vscode-java however seems to be only looking at the XML file, and not the effective pom when detecting source/target levels - this causes a lot of strange and confusing compile/test issues when building in a terminal, and tabbing back into vscode which seems to rewrite the .class files, causing Maven a lot of confusion ( after quitting vscode - all my odd build issues go away ).
Environment
- Operating System: Mac OS
- JDK version: JDK 1.8
- Visual Studio Code version: 1.25.1
- Java extension version: 0.28
Steps To Reproduce
- clone https://github.com/HalBuilder/halbuilder-core from github
- "code ." in the root directory, wait for project parsing etc.
Current Result
- Open
NamespaceManager.java- lambda calls show as errors
Expected Result
- lambda calls show correctly as valid, using the desired source/target levels.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用 halbuiler-core 按照列出的步骤复现项目解析行为,并检查 NamespaceManager.java,其中 lambda 调用被错误地报告。首先比较 XML 和有效 POM 中的 source/target 级别,包括 tiles-maven-plugin 提供的 maven-compiler-plugin 设置。完成的标准是检测到所需级别,并且 lambda 调用显示为有效,同时不会导致最终构建冲突。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- build-system, developer-experience
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100