Found a workaround for this. Downloaded '.vsix' file of ionide-fs from this link. In VS Code Extensions tab, there is an option 'Install from VSIX'. That worked. So in case anyone is unable to install from vscode extensions tab directly(i.e. from Marketplace), they may try this way of installing an extension.
Just for information, I was getting the same error for version 1.7.2 of vscode as well while trying to install from Marketplace.
Answer from ronilk on Stack OverflowFound a workaround for this. Downloaded '.vsix' file of ionide-fs from this link. In VS Code Extensions tab, there is an option 'Install from VSIX'. That worked. So in case anyone is unable to install from vscode extensions tab directly(i.e. from Marketplace), they may try this way of installing an extension.
Just for information, I was getting the same error for version 1.7.2 of vscode as well while trying to install from Marketplace.
I was able to resolve this problem by eliminating the following folders.
C:\Users\UserName\AppData\Roaming\Code\CachedExtensionVSIXs
C:\Users\UserName\AppData\Roaming\Code\CachedData
Attempting to directly download and install the VSIX produced the same issue, thus I presume vscode ignores the download if a VSIX is already cached.
visual studio code - VSCode Marketplace extension: Corrupt ZIP: end of central directory record signature not found - Stack Overflow
Installation fails from vsix : Corrupt ZIP: end of central directory record signature not found
[error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found
[error] ["validating: Corrupt ZIP: end of central directory record signature not found"
This worked for me:
- Try downloading the vsix file of the extension from its github release page (make sure the extension version is compatible with your vscode version)
- Disable your internet connection and install the vsix file via vscode.
I was able to work around this issue by doing the manual install via the command line (as opposed to through the VSCode app):
- Download the .vsix file
- use
code --install-extension <your-vsix-file>
example: code --install-extension ms-python.python-2023.6.0.vsix
Just for context, here are the things I tried prior that did not work:
- Installing through the "Extensions" marketplace in the VSCode app
- Installing manually through the VSCode app with
ctrl+p->"Extensions: Install from VSIX..."
After looking at most of the posts on the internet about it, I found out the solution:
C:\Program Files\Microsoft VS Code\bin> .\code --install-extension "C:\Pathto\extensions\ms-python.python-2023.23.13521007.vsix"
Microsoft Reference
I had the same error and discovered that this error was caused by version incompatibility.
Download directly from this link and install manually.
https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-python/vsextensions/python/2023.14.0/vspackage
If it doesn't work, it's because this isn't the right version, so try other versions.
Corrupt ZIP: end of central directory record signature not found: CorruptZip: Corrupt ZIP: end of central directory record signature not found
at z.p (vscode-file://vscode-app/c:/Users/chadw/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:162859)
at async z.extractUserExtension (vscode-file://vscode-app/c:/Users/chadw/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:160555)
at async Y.q (vscode-file://vscode-app/c:/Users/chadw/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:166093)
at async Y.h (vscode-file://vscode-app/c:/Users/chadw/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:89:167256)
I am on VSCode v1.53.2 for Mac. Trying to update my Go extension to 0.24.0, I am seeing this error message: Corrupt Zip: end of central directory record signature not found”.
The same version of VSCode for windows does not have this problem.
Anyone else seeing this?