redhat-developer / redhat-developer/vscode-java

annotationProcessorPaths not firing during compile

未关闭
#1,120 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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
  1. create a maven project using micronaut (or use the attached pom.xml) mn create-app -b maven test-vscode
  2. create a class test.vscode.Bean as
package test.vscode;

import javax.inject.Singleton;

@Singleton
public class Bean {


}
  1. 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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。