redhat-developer / redhat-developer/vscode-java

annotationProcessorPaths not firing during compile

オープン
#1,120 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

codegen
主要言語
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
  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. リポジトリをフォークし、ブランチを切って変更します。
  4. 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 を短くまとめたダイジェスト。