redhat-developer / redhat-developer/vscode-java

If wrapper is disabled, Gradle import should prefer the one on the Path over the embedded one

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

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

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

説明

With "java.import.gradle.wrapper.enabled": false, the import prefers the embedded Gradle over the Gradle on the Path. This is counterintuitive and leads to errors: currently the embedded Gradle is 7.1.1, which is unable to import JDK 17 projects.
I know that I can set java.import.gradle.home, but that is merely a workaround.

Environment
  • Operating System: Windows 11
  • JDK version: 17.0.2
  • Visual Studio Code version: 1.65.2
  • Java extension version: 1.4.0
Steps To Reproduce
  1. have Gradle 7.3.1+ on the Path
  2. set "java.import.gradle.wrapper.enabled": false
  3. import a JDK 17-based Gradle project
Current Result

Fails with an error related to the embedded Gradle

Expected Result

Succeeds because the Gradle on the Path is preferred over the embedded Gradle

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

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

はじめの一歩

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

調査の方向性

まず、java.import.gradle.wrapper.enabled を false に設定し、PATH に Gradle 7.3.1 以降を配置し、JDK 17 ベースのプロジェクトを使用して Gradle のインポートを再現します。Gradle の選択のエントリポイントを追跡し、組み込みの Gradle ではなく PATH のインストールが選択されることを確認してから、プロジェクトが正常にインポートされることを確認します。

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

評価

技術スタック
java
領域
build-system
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
35/100

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

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