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

Fail to create a project. Error: end of central directory record signature not found #191

Closed
Mattkitkat opened this issue Nov 20, 2021 · 5 comments
Assignees
Labels

Comments

@Mattkitkat
Copy link

Hi, I tried following this guide:

https://code.visualstudio.com/docs/java/java-spring-boot

And believe to have installed all the prerequisites however am running into this issue below when trying to initialize a spring project:

image

I believe someone else has encountered this issue but has reported it in a different repository:
microsoft/vscode-java-pack#818

@TigerTurnedLion
Copy link

Same. looks like a problem with the downloaded zip package. The following message flashes before error: "Starting to unzip..."

Added this comment to both repos

@Eskibear Eskibear added the bug label Nov 20, 2021
@Eskibear Eskibear self-assigned this Nov 20, 2021
@Eskibear
Copy link
Member

We didn't release any new version recently. I guess something was wrong when it tried to unzip the package. The zip package is downloaded from "https://start.spring.io", which can be possibly changed and not coverred by extract-zip lib used by this extension.

I'll investigate it later.

@Charradii
Copy link

I'm facing the same problem, it used to work but today i was about to create a new project and the error appeared

@Eskibear
Copy link
Member

I did a quick investigation. The root cause is wrong path of the downloading URL, leading to a broken zip package.
path should be /starter.zip instead of //starter.zip. Previously it was working well even with the double slashes. Maybe it's because of some recent updates in spring initializr service. I'll fix it ASAP.

# Downloading URL:
https://start.spring.io//starter.zip?type=maven-project&language=java&javaVersion=11&groupId=com.example&artifactId=demo&name=demo&packaging=jar&bootVersion=2.6.0&baseDir=demo&dependencies=

# Response:
{"timestamp":"2021-11-21T05:17:23.017+00:00","status":404,"error":"Not Found","message":"No message available","path":"https://starter.zip"}

@Eskibear
Copy link
Member

fixed in v0.7.1

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

4 participants