microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.56k stars 29.01k forks source link

Installing extensions throws up a error, if via marketplace or via vsix #231288

Open jm-pfp opened 5 days ago

jm-pfp commented 5 days ago

Does this issue occur when all extensions are disabled?: Yes - Issue is with installing extensions

Steps to Reproduce:

  1. Install an extension
  2. Begins install, and then throws error 2024-10-14 10:56:02.044 [error] End of central directory record signature not found. Either not a zip file, or file is truncated.: Error: End of central directory record signature not found. Either not a zip file, or file is truncated. at Fp (file:///c:/Users/170297/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:70:4998) at file:///c:/Users/170297/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:70:6326 at c:\Users\170297\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules\yauzl\index.js:40:7 at c:\Users\170297\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules\yauzl\index.js:190:5 at c:\Users\170297\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules\yauzl\index.js:712:5 at c:\Users\170297\AppData\Local\Programs\Microsoft VS Code\resources\app\node_modules\yauzl\fd-slicer.js:33:7 at FSReqCallback.wrapper [as oncomplete] (node:fs:684:5)

Looked into this with various issues raised, deleted cached files, reinstalled application, tried installing manually with no success. Same error is created.

Image This is a copy of the error under dev tools,

Image This is an image from further troubleshooting.

Issue exists with VPN enabled and disabled, on home network and WiFi hotspot. Tried to reset network settings, as well as nuked the extensions cache.

I've tried every fix listed I can find, to no avail. Any suggestions/ideas would be welcome.

ansiblejunky commented 1 day ago

Experiencing the same error when I install Ansible extension but realized the problem is on one of its dependencies - I feel it's specifically with Python extension. I've tried running code using the CLI parameters to define user folder and extension folder but this doesn't solve the problem. Please advise