-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vs Code Extension Error Initializing #5069
Comments
Hello @salesforceDev-role, @JsalvaJ! Are you also getting this error with v58.14.2? We released it 2 days ago, so can you try updating and check if it is still happening? |
Hi @CristiCanizales I am also experiencing this issue with version 58.14.2. The extension cannot be updated, and uninstalling and then reinstalling it also does not work. The error message in the log is "ERR CorruptZip: end of central directory record signature not found". |
Hi @CristiCanizales, Thanks for your response but updating the extension to version v58.14.2, giving the same error message. Attaching the screenshot for your reference. |
Hi @salesforceDev-role, @KevinLaurence, @JsalvaJ If you try installing the vsixes at the bottom of this page, do you still get the same error? To install just go to extensions view, click the 3 dots at the top right of the sidebar, click install from vsixes and select all the files in the zip (previously unzipped): |
Yes, the error message was the same: [error] end of central directory record signature not found: CorruptZip: end of central directory record signature not found |
If you downgrade to previous versions, like v58.13.1 or v58.11.0, do you still get the same error? |
@salesforceDev-role I see.. I believe it's something with your system then, because it's happening with every version, even v58.11.0 which is 3 releases previous to the creation of this issue. Could you tell me your VS Code version? and also maybe try reinstalling/updating VS Code? |
@CristiCanizales, Oh ok I'll try to reinstall it, will update you. Please find the below versions VSCode : Version: 1.82.1 (user setup) |
@CristiCanizales , reinstalling is not resolving the issue. Lets assume if this is a system specific issue, but then why does everyone else also have the same concern? |
@salesforceDev-role I know...😓 It's just weird that before v58.14.1 you all were not having issues with previous versions and now you do, and those vsixes for the previous versions didn't change at all... nor anything for the lwc extension @JsalvaJ, @KevinLaurence would you please tell me your system info too? OS, vscode version, etc |
@CristiCanizales My system info is as follows: Version: 1.82.1 (user setup) In the last 24 hours I have uninstalled all the Salesforce VS Code extensions and reinstalled an earlier version of VS Code. Then attempted to install the Salesforce Extension Pack, which failed. I then let VS Code upgrade to the latest version (1.82.1) and again tried to install the SF Extension Pack which failed. Then I installed each extension separately and they all installed successfully, with the exception of the LWC extension again. So, it seems to me that there is something different about salesforce.salesforcedx-vscode-lwc-58.14.2.vsix compared to the other extension files. |
@KevinLaurence just to confirm, do you have ESLint extension installed and enabled? It's a dependency for LWC extension |
Hello @CristiCanizales, here is my system info. |
I tried to uninstall and reinstall all the things but the error is still ocurring. |
@CristiCanizales Yes, I have version 2.4.2 installed and it is enabled. |
@CristiCanizales I have at least one other colleague who has the same problem with the Lightning Web Components extension and he is running version 58.11.0. |
I all I have the same problem with the Lightning Web Components extension version v58.14.2 having also the ESLint extension installed version v2.4.2 |
@CristiCanizales what should be done now for the resolution of the same? |
Same issue |
Also experiencing this on macOs |
Do you know something about it? I reinstalled VSC and extensions and I have the same error. @CristiCanizales do you have any news? |
Hello everyone. We're currently digging into this, it's hard because any of us are facing the issue thus we haven't been able to reproduce it. We'll let you know when we have updates! Sorry for the inconveniences |
Have upgraded Java from:
Error in Extensions Host is:
Previous warnings exist which may not be related:
|
Full extensions host output - in case it sheds any light:
|
Hello @CristiCanizales it seems that it works good. I don't have the issue when VS starts. |
Thanks @CristiCanizales I can confirm that the latest version of the extension installed in VS Code successfully. |
@CristiCanizales - Sorry, I've not been able to install the upgrade linked from this issue - has this fix gone into the latest versions yet? I see a new version was released yesterday. If so, the problem still occurs for me. |
Running version 58.16.0 Errors in extension host:
|
I have the same issue. I downloaded the .zip file for salesforcedx-vscode-lwc-58.15.0.zip, renamed the extension to vsix, installed it and after vs code restart, the error is still there. After extension update, the issue is still there. Should this issue be reopened? Thank you kindly @CristiCanizales |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Hello, I'm continuing having the same issue. I installed the last version v59 and the same message is fired for me. mainThreadExtensionService.ts:81 [salesforce.salesforcedx-vscode-lwc]Request initialize failed with message: Cannot read properties of undefined (reading 'location') @CristiCanizales this is solved for everyone? I tried it few days ago and it seems that works good but not... |
@CristiCanizales - this ticket has had the label 'stale' added to it - and whilst the ticket may have had a low level replies from yourselves over the last week or so, it is still my understanding that it is active and should remain open. Can the label be removed? |
@JsalvaJ It was supposed to be solved but now it seems like it isn't. We're still investigating and will update once we have a new fix! |
Howdy @bobalicious @JsalvaJ @Razvan-Racolta I'm pretty sure the issue is something about how exports are structured, but haven't been able to repo based on the Thanks for your patience on this. |
Thanks for the log @bobalicious I uploaded a new version of the vsix here If you could send me those logs that'd be awesome. Also if you could email me ([email protected]) the LWC that is resulting in the error and I could try to repo locally that'd speed this along for sure
If not possible I totally get that. |
It'll be a few days before I'll be able to do that, but I will certainly try. Knowing which LWC is causing the problem to appear, I may be able to reduce the test case and provide a version that is less, shall we say, private. I'll catch up with this again next week. |
Reproduction using the new VSIXWith the version referenced above installed, I do not get an 'LWC Language Server' output window. There is an 'LWC Extension' output window that contains no logs whatsoever. I can see no other output windows that contain any debug logs of the type you are looking for. The 'Extension Host' output window contains:
Replication using the LoadEntityForm LWCI have attempted to replicate the issue using only the LoadEntityForm LWC and it does not occur with that LWC, and so I am not forwarding it on to you. |
@gbockus-sf / @CristiCanizales - I believe I've found the shape of LWC that causes the issue. It is a pattern where you create a setter but no corresponding getter.
E.g. an LWC that consists solely of the following:
Please do not discuss as to why this would be desirable - it is a perfectly valid block of code and I am aware that there are other ways of doing the same thing. This example exists purely to show how to get the Lightning Web Components extension to crash. (Note: this pattern did not exist in LoadEntityForm, it was in an entirely different LWC, so I'm not sure what happened with the logging) |
💥 Thanks @bobalicious I repo'd locally and will see what we can do to get it resolved. |
This issue has been linked to a new work item: W-14391061 |
Fixed with the 59.3.1 Release. Thanks for working with us to get this issue resolved. 🥳 🎉 |
Confirmed as fixed from my perspective |
Summary
On VScode loading getting this error all the time: Request initialize failed with message: Cannot read properties of undefined (reading 'location') (Lightning Web Components Extension)
Steps To Reproduce:
Expected result
There should be no error the vsCode extensions should initialize without any error
Actual result
Getting error: Request initialize failed with message: Cannot read properties of undefined (reading 'location')
Additional information
Tried to uninstall and install all the extensions back, but didn't work.
Salesforce Extension Version in VS Code:
SFDX CLI Version:
sfdx-cli/7.209.6 win32-x64 node-v18.15.0
OS and version:
Window 11 64bit
The text was updated successfully, but these errors were encountered: