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

Created on 19 Feb 2020  路  5Comments  路  Source: redhat-developer/vscode-java

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?

Gradle bug

All 5 comments

@akaroml See eclipse/eclipse.jdt.ls#1355 and eclipse/che#16051

Thank you @snjeza. Good to know that the issue is fixed in the coming release.

I'll release the fix today

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

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":[]}}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulongx picture ulongx  路  4Comments

gorkem picture gorkem  路  4Comments

bkbonner picture bkbonner  路  3Comments

yaohaizh picture yaohaizh  路  4Comments

roben picture roben  路  4Comments