Giter Club home page Giter Club logo

Comments (11)

sandy081 avatar sandy081 commented on July 18, 2024

Can you please clear following folder and retry?

  • F1 > Open User Data Folder
  • Clear CachedExtensionVSIXs folder

from vscode.

DFelten avatar DFelten commented on July 18, 2024

Can you please clear following folder and retry?

  • F1 > Open User Data Folder
  • Clear CachedExtensionVSIXs folder

@sandy081 I deleted the folder, but the problem still occurs. Even after a restart of VSCode after deleting the folder it's still not working.

[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 m (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:48:26640)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:48:28083
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/yauzl/index.js:40:7
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/yauzl/index.js:190:5
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/yauzl/index.js:712:5
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/node_modules.asar/yauzl/fd-slicer.js:33:7
    at FSReqCallback.wrapper [as oncomplete] (node:fs:668:5)

from vscode.

sandy081 avatar sandy081 commented on July 18, 2024

Are you seeing this issue for a specific extension or for all?

from vscode.

DFelten avatar DFelten commented on July 18, 2024

Are you seeing this issue for a specific extension or for all?

The error appears on multiple extensions. For example I can't install the updates for

  • SQLTools MySQL/MariaDB/TiDB
  • Jupyter Notebook Renderers
  • Pylance

After an uninstall of the old version I can't install the latest version of GitHub Actions.

from vscode.

sandy081 avatar sandy081 commented on July 18, 2024

Can you please launch VS Code using different user data directory and extensions directory and see if you can reproduce the issue?

From CLI - code --user-data-dir <new folder> --extensions-dir <new folder>

from vscode.

DFelten avatar DFelten commented on July 18, 2024

@sandy081 I will test that. What are the implications of this customization and how can I reset it to the default afterwards?

from vscode.

sandy081 avatar sandy081 commented on July 18, 2024

This does not impact your default installation. Starting VS Code normally without above arguments will bring back your default set up

from vscode.

DFelten avatar DFelten commented on July 18, 2024

When starting VSCode via code-insiders --user-data-dir <new folder> --extensions-dir <new folder> it's possible to install or update the extensions.

After starting VSCode normal, then the error is there again.

from vscode.

sandy081 avatar sandy081 commented on July 18, 2024

Just to confirm, you are reproducing the issue on VS Code or VS Code Insiders?

@deepak1556 Wondering if there is a network cache folder that the application has from where the VSIXs are being picked up? Scenario is user is seeing extension installation error because of corrupted VSIX. When asked to try the same on a fresh user data / extensions folder, it works.

@DFelten Can you please share the VSIX from CachedExtensionVSIXs folder that is causing this error?

from vscode.

deepak1556 avatar deepak1556 commented on July 18, 2024

We do have http cache in the user data directory, that is used by the chromium network stack.

@DFelten can you start the application with code-insiders --log-net-log=/tmp/netlog.json and perform the extension install or update steps that triggers the error. Once the error is seen quit the application. You can send the generated network logs to [email protected]

from vscode.

DFelten avatar DFelten commented on July 18, 2024

Since yesterday the extensions have suddenly been updated again. Unfortunately I can't say what has changed.

But the problem seems to have solved itself. If it comes up again, I will reopen the ticket.

from vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.