vscode-powershell: Installation -> CorruptZip: end of central directory record signature not found

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all open and closed issues to ensure it has not already been reported.
  • I have read the troubleshooting guide.
  • I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • If this is a security issue, I have read the security issue reporting guidance.

Summary

Hi guys,

I have fresh installed VS Code and try to install the Powershell extension from MS. Unfortunatelly there is just an error, that the downloaded Zip is corrupted. No infromation about which URL was accessed, nor where to find the corrupted Zip File… Any ideas? Other extensions, like the “poweshellprotools” installs with not problems.

2023-03-23 08:55:50.456 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:50.476 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897)

Thanks a lot in advance. Alexander

PowerShell Version

PS C:\Users\860000165> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.19041.2673
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.19041.2673
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Visual Studio Code Version

PS C:\Users\860000165> code --version
1.76.2
ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
x64

Extension Version

PS C:\Users\860000165> code --list-extensions --show-versions | Select-String powershell

ironmansoftware.powershellprotools@2023.3.0

Steps to Reproduce

  1. Open VS Code -> Extensions
  2. Search for powershell Extension from MS
  3. Click the “Install” button.
  4. The error appears in the Output window.

Visuals

image

Logs

2023-03-23 08:44:05.389 [info] Electron sandbox mode is enabled! 2023-03-23 08:44:07.678 [warning] Settings pattern “application." doesn’t match any settings 2023-03-23 08:44:15.640 [warning] Settings pattern "application.” doesn’t match any settings 2023-03-23 08:44:18.632 [warning] Settings pattern “application." doesn’t match any settings 2023-03-23 08:44:20.589 [warning] Settings pattern "application.” doesn’t match any settings 2023-03-23 08:44:22.268 [info] [perf] Render performance baseline is 141ms 2023-03-23 08:44:22.685 [warning] Settings pattern “application." doesn’t match any settings 2023-03-23 08:44:24.994 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:44:25.008 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:52:39.743 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:52:39.780 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:52:47.432 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:52:47.435 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:54:06.547 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:54:06.598 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:54:08.347 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:54:08.350 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:54:23.337 [warning] Settings pattern "application.” doesn’t match any settings 2023-03-23 08:55:32.049 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:32.071 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:49.417 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:49.438 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:50.456 [error] CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897) 2023-03-23 08:55:50.476 [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found at yt.download (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:223) at process.processTicksAndRejections (node:internal/process/task_queues:96:5) at async X.x (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760) at async X.h (vscode-file://vscode-app/c:/Users/860000165/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897)

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 30 (13 by maintainers)

Most upvoted comments

I was able to work around this issue by deleting the following folders . C:\Users\UserName\AppData\Roaming\Code\CachedExtensionVSIXs C:\Users\UserName\AppData\Roaming\Code\CachedData

Attempting to download and install the VSIX directly produced the same error, so I assume vscode ignores the download if there is already a VSIX cached.

I’ve been having the same issue with any extension and I tried to use downloaded .vsix files. but the vscode showed “end of central directory record signature not found”!

I was able to work around this issue by deleting the following folders . C:\Users\UserName\AppData\Roaming\Code\CachedExtensionVSIXs C:\Users\UserName\AppData\Roaming\Code\CachedData

Attempting to download and install the VSIX directly produced the same error, so I assume vscode ignores the download if there is already a VSIX cached.

Thank you so much, that worked! Finally, I can update/install extensions!