Comments (5)
@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.
@vazexqi Unfortunately this data is not from automated tests, this data is from the real time usage of VS Code from users.
I categorise extension failures as follows:
GalleryFails
: When requests to market place failsIncompatibleFails
: When user installs extension which is incompatible with his/her VS Code versionDownloadFails
: When downloading the vsix failsDeletingFails
: 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 folderValidateFails
: When reading the manifest from the disk and validating itLocalFails
: 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.
@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.
@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.
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)
- Apex Language Server - Error during startup HOT 5
- 📢 📢 Performance Improvements with Salesforce Extension Pack V59.8.0
- Getting, The "path" argument must be of type string. Received undefined, on my output
- Error on click in <script> block of a Lightning Apex Page HOT 5
- 📣 Support schedule for the week of Dec 22 - Jan 01
- Stop Nagging Me About Code Coverage In Unit Tests HOT 3
- Error while updating 'Apex' extension. HOT 6
- Incorrect Homepage Link for Lerna in Docs
- Unable to install Extension pack HOT 4
- sfdx HOT 3
- Apex Language Server does not support methods in anon-apex HOT 4
- Retrieve Source from Org doesn't consider api version specified in sfdx-config.json HOT 3
- Unable to Deploy or retrieve data/files from the org through entension or command. HOT 3
- VS Code Failing to connect and Getting Object Refresh HOT 25
- unable to activate Apex language Server HOT 2
- ISV Debugger throws error 'Your project configuration is invalid or incomplete for ISV debugging' HOT 5
- Apex Language Server should support methods in anon-apex #5312 HOT 2
- Package xml generator extn ends up in error HOT 1
- You have both SFDX(v7) and SF(v2) of Salesforce CLI installed HOT 5
- Apex Language Server no longer detects any custom object or field HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from salesforcedx-vscode.