Giter VIP home page Giter VIP logo

Comments (5)

vazexqi avatar vazexqi commented on June 19, 2024

@sandy081 - Thanks for reaching out to us. Could you point us to your automated tests (or describe the steps) that you were running so that we can reproduce this on our end and investigate more on the different failure conditions?

from salesforcedx-vscode.

sandy081 avatar sandy081 commented on June 19, 2024

@vazexqi Unfortunately this data is not from automated tests, this data is from the real time usage of VS Code from users.

image

I categorise extension failures as follows:

  • GalleryFails: When requests to market place fails
  • IncompatibleFails: When user installs extension which is incompatible with his/her VS Code version
  • DownloadFails: When downloading the vsix fails
  • DeletingFails: Before extracting the vsix into a folder under extensions folder, I try to delete the folder if it exists.
  • ExtractingFails: When extracting the downloaded vsix into extensions folder
  • ValidateFails: When reading the manifest from the disk and validating it
  • LocalFails: When Reading the extracted extension or updating the metadata of extension back into disk.
  • UnknownFails: Other unknown reasons

From the above pic, salesforce.salesforcedx-vscode-core was updated around 77 times and update was failed only 41 times with a failure rate of 53% which does not look good. But, what worries me more is the number of times (75% of failures) it failed while deleting the folder in the disk.

To explain more about this failure, after downloading the new version vsix (say salesforce.salesforcedx-vscode-core-1.2.1) from the market place, I try to delete the folder salesforce.salesforcedx-vscode-core-1.2.1 from the extension folder if it exists. Delete failures are those if deleting this folder fails. Theoretically, this is not supposed to happen because the newly updated version folder should not exist in the disk, otherwise the update will be never triggered.

So, would like to know if you have seen any such failures or if users reported such. Also any information about why this could happen with this extension would be helpful.

Thanks

from salesforcedx-vscode.

guw avatar guw commented on June 19, 2024

@sandy081 This is just guessing but what happens if a user install extensions that define a dependency on the salesforce.salesforcedx-vscode-core extension? Would that cause re-installations?

from salesforcedx-vscode.

sandy081 avatar sandy081 commented on June 19, 2024

@guw No, we check if the extension is installed already. If there is a new version then new version is installed which gets extracted into a new folder.

from salesforcedx-vscode.

sandy081 avatar sandy081 commented on June 19, 2024

Thanks a lot for helping here by providing insights

After investigating more, I figured out that root cause is extension auto updates that triggers updating the same extension from all open windows. This can lead to failures while deleting the directory. Will provide the fix in VS Code for this.

Closing this.

from salesforcedx-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.