redhat-developer / redhat-developer/vscode-java
OpenJDK 17 --enable-preview breaks error reporting
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I wanted to use the new switch syntax that's still a preview in 17. I changed my maven pom.xml to have
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<compilerArgs>--enable-preview</compilerArgs>
</configuration>
</plugin>
In the Syntax Server output window it has,
[Error - 1:49:59 PM] Connection to server got closed. Server will not be restarted.
It stops highlighting compiler errors/warnings in the editor. Removing the --enable-preview stuff from pom.xml solves the problem, but then I lose the error reporting.
It breaks regardless of whether or not my code uses any preview features.
Environment
- Operating System: Ubuntu 20.04
- JDK version: openjdk version "17.0.3" 2022-04-19
- Visual Studio Code version: 1.69.2
- Java extension version:
Steps To Reproduce
- [step 1]
- [step 2]
[Please attach a sample project reproducing the error]
Please attach logs
Current Result
Expected Result
Additional Informations
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Ubuntu 20.04 上で OpenJDK 17 と --enable-preview を使用して再現しながら、pom.xml の compilerArgs 設定と Syntax Server の出力から開始してください。サーバー接続の切断を調査し、この設定の有無でエラー報告を比較してください。preview が有効な場合でもコンパイラーのエラーと警告を利用できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100