eclipse-vertx / eclipse-vertx/vertx-codegen

Processor yield NPE under some circonstancies

オープン
#320 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Java
スター
111
フォーク
89
PR マージ指標
30日以内にマージされた PR はありません

説明

### Questions

When using IntelliJ > 2020.2.4 the build fails with NPE in the CodeGenProcessor.
This sound very much like an intelliJ issue however their investigation seem to aim for a lack of robustness in some processor implementations.
Here is the ticket I filled in at IntelliJ' support : https://youtrack.jetbrains.com/issue/IDEA-258659
This other ticket may be of interest too: https://youtrack.jetbrains.com/issue/IDEA-257871

### Version 3.5.3

### Context

Problem ocurred while uprading from IntelliJ 2020.2.4 to 2020.3

### Do you have a reproducer?

The following sample project builds againts intelliJ 2020.2.4 and not against 2020.3

* https://github.com/ngmip/IDEA-258659

### Steps to reproduce

1. clone repo
2. build -> rebuild project

### Extra

* windows 10 pro
* oracle jdk8u201
* For those who are looking for a workround, in the link I provided above, they explained how to configure the `-Djps.track.ap.dependencies=false` flag, this worked for me.

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

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

調査の方向性

CodeGenProcessor とリンクされている IDEA-258659 reproducer から始めます。JDK 8 を使用して IntelliJ 2020.2.4 と 2020.3 でサンプルプロジェクトを再ビルドし、NPE がいつ発生するかを確認してから、プロセッサーの動作を IntelliJ の報告と比較します。報告されたビルド構成でプロセッサーが NPE により失敗しなくなれば完了です。

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

評価

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

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

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