Skip to content

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

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

Closed
akaroml opened this issue Feb 19, 2020 · 5 comments
Closed

Comments

@akaroml
Copy link
Contributor

akaroml commented Feb 19, 2020

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?

@snjeza
Copy link
Contributor

snjeza commented Feb 19, 2020

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

@akaroml
Copy link
Contributor Author

akaroml commented Feb 19, 2020

@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.

@fbricon
Copy link
Collaborator

fbricon commented Feb 19, 2020

I'll release the fix today

@fbricon fbricon mentioned this issue Feb 19, 2020
@fbricon
Copy link
Collaborator

fbricon commented 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

@fbricon fbricon added this to the End February 2020 milestone Feb 19, 2020
@fbricon fbricon changed the title Building Gradle Project using VSCode Gradle project fails to build while fetching non-existing snapshot distro Feb 19, 2020
@snjeza snjeza closed this as completed Feb 20, 2020
@vaclavbenes
Copy link

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

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

No branches or pull requests

4 participants