redhat-developer / redhat-developer/vscode-java
annotationProcessorPaths not firing during compile
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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