editorconfig / editorconfig-notepad-plus-plus

EditorConfig plugin for Notepad++
http://editorconfig.org
GNU General Public License v2.0
192 stars 30 forks source link

init.ps1 often fails to download core-c #31

Closed ffes closed 2 years ago

ffes commented 5 years ago

Locally and in CI init.ps1 often fails to download the editorconfig-core-c from GitHub.

./init.ps1 -pcre $env:PCRE2_VERSION -edc $env:EDITORCONFIG_VERSION Downloading pcre2 v10.32 sources Extracting pcre2 v10.32 sources Downloading editorconfig-core-c v0.12.3 sources The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: The server did not return the file size. The URL might point to dynamic content. The Content-Length header is not available in the server's HTTP reply.

This seems to be a server error, but the regular browsers and tools like wget don't have a problem downloading it.

I have limited PowerShell knowledge, but there has to be a way to fix this in that script.

Locally I have a backup of that zip and extract it manually in the right place, but that doesn't help for CI.

ffes commented 5 years ago

Looking back at the commits, @ViceIce has added these (apart from this small but annoying issue) beautifully working scripts. Maybe he has an idea how to solve this issue.

viceice commented 5 years ago

I've never had this issue.

Maybe we should add a retry count? And for ci we schould add the downloaded zip files to AppVeyor cache.

ffes commented 2 years ago

I've not seen the problem anymore. Closing