redhat-developer / redhat-developer/vscode-java

Annotation Processor works strange

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

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

annotation-processing Maven
主要言語
TypeScript
スター
2.3k
フォーク
546
平均マージ
20時間 1分
マージ済み PR(30日)
11

説明

I am writing an anotation processor, add test the vscode support. In idea it works fine.
I write some log logic (write log information to a file with absolute path, and in the init method and static method, log something too) in the apt to promise I can judge whether it runs.
The pom setting works fine, because the maven clean install works fine with the log print out.
However my apt not runs in vscode. No log file is generated. (It will be created if non-exist).
On the other hand, If I write some space in the pom.xml and save. The log file generated, and show some initialized information. It seems my apt run when the vscode find pom.xml changed.
But when I change some code and run the changed code , no log out, it seems that my apt not run at all.

Environment
  • Operating System: windows
  • JDK version: 11
  • Visual Studio Code version: 1.64.2
  • Java extension version: 1.3.0
Steps To Reproduce
  1. change maven pom.xml with annotaton processing support
  2. save the change
  3. change some code
  4. run

The apt projcet
Please use the asm branch
The log file path define here, I have changed it to ~/jasync.log for device independent.
The test project

Current Result

After step 2, my apt runs.
After step 4, my apt not runs.

Expected Result

After step 2, my apt runs.
After step 4, my apt runs.

Additional Informations

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

報告されている再現手順から始めます。asm ブランチの Maven pom.xml と、19 行目にあるアノテーションプロセッサの Logger.java を確認し、その後 VS Code Java 拡張機能のアノテーション処理のエントリポイントを追ってください。JDK 11 と VS Code 1.64.2 で手順 1–4 を再現します。完了の条件は、pom.xml の変更後だけでなく、コードの変更後にもプロセッサが実行されてログを出力することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, vscode
領域
developer-experience, devtools
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。