Bug: Gradle build error: Supplied javaHome is not a valid folder. You supplied: /usr/local/sdkman/candidates/java/current
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- java, typescript
調査の方向性
提供された Java 21 devcontainer と、GitHub Codespaces にあるリンク先の mavencentral Gradle プロジェクトで失敗を再現します。Gradle サーバーのログから始めて、/usr/local/sdkman/candidates/java/current がどのように選択されるかを追跡します。プロジェクトが無効な javaHome エラーなしで開けば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment:
- VS Code Version: 1.97.2
- Extension Version: 3.16.4
- JDK Type & Version: temurin, 21
- OS Type & Version: Linux
Step to Reproduce:
Use devcontainer (GitHub Codespaces)
{
"image": "mcr.microsoft.com/devcontainers/java:21"
}
with a Gradle project
For example use this project: https://github.com/hfhbd/mavencentral and open it with GitHub Codespaces
Expected Behavior:
No issue when opening the Gradle project
Actual Behavior:
[info] [gradle-server] Gradle Server started, listening on 38591
[info] Gradle client connected to server
[info] [gradle-server] Downloading https://services.gradle.org/distributions/gradle-8.13-milestone-3-bin.zip
[info] [gradle-server] ...
[info] [gradle-server] ....
[info] [gradle-server] ..
[info] [gradle-server] ...
[info] Java Home: /usr/local/sdkman/candidates/java/current
[info] JVM Args: -Xmx2048m,-Dfile.encoding=UTF-8,-Duser.country=US,-Duser.language=en,-Duser.variant
[info] Gradle User Home: /home/vscode/.gradle
[info] Gradle Version: 8.13-milestone-3
[error] Error getting build for /workspaces/mavencentral: Supplied javaHome is not a valid folder. You supplied: /usr/local/sdkman/candidates/java/current
Related Issues:
- 主要言語
- TypeScript
- スター
- 352
- フォーク
- 166
- 平均マージ
- 17時間 47分
- マージ済み PR(30日)
- 32
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-java-pack のほかの issue
-
Memory Leak in Linux オープンai-triaged bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
microsoft/vscode-java-pack#1543 · コメント 8 件 · リアクション 4 件 ·
-
ai-triaged bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
microsoft/vscode-java-pack#1443 · コメント 1 件 · リアクション 2 件 ·
-
ai-triaged bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
microsoft/vscode-java-pack#1425 · コメント 1 件 ·
-
ai-triaged enhancement feature-request
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/vscode-java-pack#1423 · コメント 2 件 · リアクション 1 件 ·
-
ai-triaged area/jdtls bug needs-investigation
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
microsoft/vscode-java-pack#1420 · コメント 1 件 ·
microsoft/vscode-java-pack の issue をすべて見る
似ている issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
-
code-quality refactoring
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
langchain-ai/deepagents#6450 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
vercel/react-tweet#225 ·