redhat-developer / redhat-developer/vscode-java
Problem on Linux with GRADLE_HOME environment variable
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
When I launch VS Code on a Java project built using Gradle, I get the following errors:
Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-5.1-bin.zip'
Could not create parent directory for lock file /usr/share/java/gradle/wrapper/dists/gradle-5.1-bin/....../gradle-5.1-bin.zip.lck
I managed to fix the problem by setting the environment variable GRADLE_HOME to ~/.gradle instead of the default /usr/share/java/gradle and cleaning the project directory.
Environment
- Operating System: Arch Linux 5.0.4
- JDK version: openjdk version "11.0.3" 2019-04-16
- Visual Studio Code version: 1.32.3
- Java extension version: Java Extension Pack 0.6.0
Steps To Reproduce
- Launch a Java project using Gradle 5.1
Current Result
The Java Language Server aborts.
Expected Result
Additional Informations
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the Java Language Server startup with a Gradle 5.1 project on Arch Linux, using the environment details in the report. Trace how the Gradle wrapper chooses its distribution and lock-file directory; done means the server launches without requiring a manually changed GRADLE_HOME.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100