-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
"no extensions found" after installing an extension #174401
Comments
After installing an extension, what do you see in the
|
Everything seems to be good. Can you please share the contents of the |
In the extensions folder, there is a file named |
It seems the paths in extensions.json file are not matching with the extensions folder names shown in the above screenshot. For eg: @seawinkle To re-confirm that you are able to reproduce this consistently, can you please do following?
|
It is clear that there is a problem with the
|
Glad that you can repro on insiders. I am adding more logs in the insiders version that is available tomorrow.
|
@aeschli I am computing the relative path in the following way and it seems this is cutting off the starting letters vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.ts Line 312 in eb940a2
Any insights? |
@aeschli Thats right. But please check the relativeLocation always trimming first couple of characters even from the wrong location. |
@seawinkle Can you please download latest insiders and do following
|
|
@aeschli Please check this log statement
This is logged while computing the relative path - please check following code vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.ts Lines 312 to 320 in 668f3de
It seems to be clear that the relative path is not returning the correct value. Any insights? |
For file URIs we use There are two slashes in |
I can reproduce this with following test
It returns |
Seems to be a bug in node path library when there are UTF characters in the path There seems to be a fix for this bug - https://github.com/nodejs/node/pull/27662/files CC @bpasero |
Thanks @sandy081 for figuring this out! |
@sandy081 if this can be addressed by patching our vscode/src/vs/base/common/path.ts Line 519 in 71f619c
If we need to patch something in core node.js, then we have to add the patch to our internal builds with the help of @deepak1556 However, given that the PR was never merged, my confidence in the fix is not very high. |
I have another fix for this. I am using |
I've been having this issue across two macs (with settings sync) ever since i upgrade my work and personal machines simultaneously. Most of the time when i install an extension (most recently noticed: vim, ruby) it is installed and activated in the window, then gone if i reload the window. Maybe helpful context: This was an intel-M1 mac upgrade, and i used migration assistant on the first one i got, which led to all sorts of issues (brew prefix being different, etc). when i then replaced the second i started from a fresh install but settings sync was enabled between the two. Edit: Minutes after posting this the issue was closed. In my case it was definitely not path-related, but i just did a |
I do not think your issue is same as this. Can you please file a separate issue for yours and provide us steps to reproduce. |
That may be the case but this was the closest issue i could find to mine and i cannot reproduce it. if it crops up again i will open a new issue. |
@sandy081 The problems with
|
@seawinkle Can you please try clicking the refresh button in the extensions view after installing the extension and see if the view gets updated? |
@sandy081 Today when I opened vscode I saw that everything was fine. I'm thankful for all your help. |
This bug has been fixed in the latest release of VS Code Insiders! @seawinkle, you can help us out by commenting If things still don't seem right, please ensure you're on version 78cb4eb of Insiders (today's or later - you can use Happy Coding! |
/verified |
Suddenly my extensions in Vscode seem to have disappeared. I uninstalled Vscode and then reinstalled it and tried to install the extensions again. Although the extensions appear to be installed in .vscode/extensions folder, Vscode says "no extensions found" and i can't use any of the extensions. I have tried uninstalling and re-installing Vscode many times. I even did a system restore. I deleted
extensions.json
and re-installed the extensions but it didn't work.Screenshots:
extensions folder:
The text was updated successfully, but these errors were encountered: