question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle project fails to build while fetching non-existing snapshot distro

See original GitHub issue

Source: microsoft/vscode-docs#3409 from @n8s16

I can’t seem to find a solution to this problem so I think this might be a bug. Before, I can easily run my spring boot gradle project in VSCode (with Java and Spring Boot extensions) migrated from STS3. I tried to setup VSCode and project (the same way how I setup before) to a new machine. And I encountered this issue:

Could not fetch model of type 'BuildEnvironment' using Gradle distribution 'https://services.gradle.org/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip'.
The specified Gradle distribution 'https://services.gradle.org/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip' does not exist.
https://downloads.gradle-dn.com/distributions-snapshots/gradle-6.0-20191016123526+0000-bin.zip

To my understanding, VSCode cannot fetch the specific gradle distribution. But when I tried to build and run the code to STS3 again, it’s seems working properly. Thanks in advance.

Not familiar with Gradle part. @fbricon @snjeza do you have any idea what this is about?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
vaclavbenescommented, Apr 20, 2020

Hi , I use latest version of gradle tasks and Language support for Java, but it seems still issue

[debug] SERVER MESSAGE: {"error":{"message":"Could not fetch model of type 'GradleProject' using Gradle distribution 'https://artifactory.int.avast.com/artifactory/Generic/org/gradle/gradle-5.6.2-all.zip'."}}
[error] Could not fetch model of type 'GradleProject' using Gradle distribution 'https://artifactory.int.avast.com/artifactory/Generic/org/gradle/gradle-5.6.2-all.zip'.
[debug] SERVER MESSAGE: {"getTasks":{"message":"Completed ACTION_GET_TASKS","tasksList":[]}}

1reaction
fbriconcommented, Feb 19, 2020

Until then you can manually install the latest CI build (0.57.0) from http://download.jboss.org/jbosstools/jdt.ls/staging/.

Better manually delete .project, .settings/, ~/.toolings/ and clean the workspace directory

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 - Stack Overflow
Your question is similar to Gradle project fails to build while fetching non-existing snapshot distro. Please manually install the latest CI ...
Read more >
Upgrading your build from Gradle 6.x to the latest
The buildId field will not be populated by default to ensure that the produced metadata file remains unchanged when no build inputs are...
Read more >
Troubleshooting builds - Gradle User Manual
Troubleshooting daemon connection issues. If your Gradle build fails before running any tasks, you may be encountering problems with your network configuration.
Read more >
userguide.pdf - Gradle User Manual
If your Gradle build fails before running any tasks, you may be encountering problems with your network configuration. When Gradle is unable ...
Read more >
Gradle does not fetch new SNAPSHOT of dependency
I have now officially moved our new projects to gradle. It builds just like it did with Maven. However one caveat.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found