redhat-developer / redhat-developer/vscode-java
annotationProcessorPaths not firing during compile
未关闭
还没有人认领这个 Issue。
codegen
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
I have a pom.xml that uses annotationProcessorPaths on the maven-compiler-plugin to process annotations. During a standard maven compile the annotations are properly processed, but not during a vs-code build (auto, or forced full/incremental)
Environment
- Operating System: MacOS Mojave
- JDK version: openjdk 12 2019-03-19
- Visual Studio Code version: 1.39.2
- Java extension version: 0.52.0
Steps To Reproduce
- create a maven project using micronaut (or use the attached pom.xml)
mn create-app -b maven test-vscode - create a class
test.vscode.Beanas
package test.vscode;
import javax.inject.Singleton;
@Singleton
public class Bean {
}
- Force a build
[attach a sample project reproducing the error]
attach logs
Current Result
$ ll target/classes/test/vscode
total 16
-rw-r--r-- 1 bangroot staff 600B Oct 24 13:19 Application.class
-rw-r--r-- 1 bangroot staff 328B Oct 24 13:19 Bean.class
Expected Result
$ ll target/classes/test/vscode
total 40
-rw-r--r-- 1 bangroot staff 1.9K Oct 24 13:20 $BeanDefinition.class
-rw-r--r-- 1 bangroot staff 743B Oct 24 13:20 $BeanDefinitionClass$$AnnotationMetadata.class
-rw-r--r-- 1 bangroot staff 862B Oct 24 13:20 $BeanDefinitionClass.class
-rw-r--r-- 1 bangroot staff 600B Oct 24 13:20 Application.class
-rw-r--r-- 1 bangroot staff 328B Oct 24 13:20 Bean.class
Additional Informations
I did notice that there is no .factorypath file getting generated like happens on my spring-boot projects.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从附带的 Maven 示例项目和日志开始,然后将标准 Maven 编译与 VS Code 的自动、完整和增量构建进行比较。调查如何处理 pom.xml 中的 annotationProcessorPaths,以及是否会生成 .factorypath。完成的标准是 VS Code 构建能够生成预期的 Micronaut 类。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- build-system, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100