Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem on Linux with GRADLE_HOME environment variable #859

Open
thomas-huegel opened this issue Mar 27, 2019 · 1 comment
Open

Problem on Linux with GRADLE_HOME environment variable #859

thomas-huegel opened this issue Mar 27, 2019 · 1 comment
Labels

Comments

@thomas-huegel
Copy link

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
  1. Launch a Java project using Gradle 5.1
Current Result

The Java Language Server aborts.

Expected Result
Additional Informations
@thomas-huegel thomas-huegel changed the title problem with GRADLE_HOME environment variable Problem on Linux with GRADLE_HOME environment variable Mar 27, 2019
@ghost
Copy link

ghost commented Jun 4, 2019

@thomas-hugel I could leave the error message there and restart vscode later as the download will still continue in the background. You can check whether the wrapper lock file still grow in size in $GRADLE_HOME.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants