redhat-developer / redhat-developer/vscode-java
No obvious way to set JDT settings
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
I would like to use the "Text Blocks" feature of Java 13. I have the Java 13 JDK installed and that is being picked up correctly by VSCode.
In addition, I have modified my "pom.xml" file to include the "--enable-preview" JVM argument that turns on this feature, like so:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<jvmArguments>--enable-preview</jvmArguments>
</configuration>
</plugin>
</plugins>
</build>
I also attempted to edit the .settings/org.eclipse.jdt.core.prefs file and set org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=enabled but any changes to this file are overwritten when the "Clean the java language workspace" task is run
Environment
- Operating System: Linux
- JDK version: 13
- Visual Studio Code version: 1.40.1
- Java extension version: 0.53.1
Steps To Reproduce
- Create Java project with Java 13
- Attempt to use Text Block syntax
Current Result

Expected Result
I expect to be able to enable preview features in JDT and for Text Blocks to work with no compiler error
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
示された pom.xml 設定を使用するプロジェクトで Java 13 の Text Blocks エラーを再現し、その後、Java 言語ワークスペースをクリーンアップしたときに .settings/org.eclipse.jdt.core.prefs ファイルがどのように生成されるかを調べます。JDT でプレビュー機能が有効なままになり、Text Block 構文でコンパイラーエラーが発生しなければ完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, vscode
- 領域
- developer-experience, tooling
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100