-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Extensions are becoming dissociated with themselves #12281
Comments
This is odd. Can you paste the |
@joaomoreno I already had this one up in an editor. It is for the Great Icons package. I can get the others later if needed. About to head into a meeting. {
"name": "vscode-great-icons",
"displayName": "VSCode Great Icons",
"description": "A big pack of icons (100+) for your files.",
"version": "1.0.9",
"publisher": "emmanuelbeziat",
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Other",
"Themes"
],
"contributes": {
"iconThemes": [
{
"id": "vscode-great-icons",
"label": "VSCode Great Icons",
"path": "./icons.json"
}
]
},
"icon": "images/vscode-great-icons_icon.png",
"galleryBanner": {
"color": "#e0e0e0",
"theme": "light"
},
"keywords": [
"icons",
"theme",
"icon-theme",
"customization"
],
"repository": {
"type": "git",
"url": "git+https://github.com/EmmanuelBeziat/vscode-great-icons.git"
},
"author": {
"email": "[email protected]",
"name": "Emmanuel Béziat",
"url": "https://www.emmanuelbeziat.com"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/EmmanuelBeziat/vscode-great-icons/issues"
},
"homepage": "https://github.com/EmmanuelBeziat/vscode-great-icons#readme",
"__metadata": {
"id": "ab4f5b56-0493-4f70-a44b-773909fdbeb3",
"publisherId": "c6e135ee-f6a2-45cb-b782-fd4de23acc84",
"publisherDisplayName": "Emmanuel Béziat"
}
} |
@gerane Can you please confirm the state of those extensions now? Are they exactly the same as they were? |
@gerane Nevermind. @vishalkiri @modigrv @hamenon Did the Marketplace change extension IDs recently? We were using them as a way to know which extensions came from the Marketplace and otherwise. For example, the extension @gerane just pasted shows that at installation time, it had the ID This badly breaks us. |
@gerane Could you zip up the whole extensions directory and send me somehow? |
@joaomoreno In my extensions folder, I have multiple versions of some extensions. I assume there should only be the latest. Is that from this? LMK if you want my extensions dir. |
@roblourens We've been rolling around with a bug that fails to remove the old extension versions, for which I pushed a fix today. Send me your extensions folder if you see the same dissociation behaviour as @gerane |
Moving to October since there hasn't been more info. Today is the last fix day. |
@joaomoreno Sorry for the delay. I got tied up with some unexpected issues that I had to get taken care of. Didn't have any time to check into this until this morning. There is actually 2 separate issues here, one which is not an issue with Code. I have a PowerShell module that can install and update VSCode Extensions. The built in cli commands were not reliable enough and does not return any information. I found that I would often run a command and it just didn't do anything. I am replicating what Code is doing but just in powershell, but I was just unpacking the vsix and not adding the _metadata section. These extensions are not being registered as installed by the marketplace, though this wasn't always the case. I picked the above package.json because it was one of a handful of the latest I had installed in the last few days. The reason I chose to include that one was because I knew it would not be impacted by my own updating. Prior to the addition of the Auto Updating Extensions setting I was using my own PowerShell Module to check for extension updates and update them when found. I just had this in my profile and it would keep my extensions up to date. When the Auto Update Extensions setting was added I stopped using this method. This has been at least a couple weeks now, so I knew these last extensions were not related to my own updating. I would not have opened the issue if I hadn't immediately seen the last extension I had installed a few days prior was also broken. Since I have only installed a few extensions since I stopped updating them myself, the package.json I listed above is the only one that is not missing the _metadata section. So it being broken is due to the Extension Id changing for some reason and I have no idea why. |
@joaomoreno I quickly just wrote a script to add the metadata back to the ones where it was missing. When I launched Code those extensions started working properly again. I am still not quite sure how the 'VSCode Great Icons' extension got a different extension id though. |
Good to know, thanks! An extension will get a different ID if its publisher unpublishes it at any point in time. |
I have been seeing some sort of issue for a while, but finally had time to take a better look into it. I have been seeing that some extensions I know are out of date, but they aren't registering as out of date when I check in Code. It shows the Extension is installed, but when I do a search for it, it does not think the extension is installed and gives me the option of installing it.
Below you can see where it shows the Extension VSCode Great Icons as being installed and offers the Uninstall option when looking under installed Extensions.
However, if I do a search for the same extension, you can see if the screenshot below that it shows up as not being installed.
I have 3 outdated Extensions, but these do not show up in Code as outdated. You can see in the above screenshot that we know that extension is installed and outdated.
I then started checking all of my extensions to see if others were not properly displaying in VSCode, but were up to date. In total, I have 40 Extensions installed, and here are my results from checking each one. On the right I show their folder fullname with version and on the left their display name and version in Code.
Show as Installed: 20
Show as Missing: 20
Outdated and Missing
Of the 20 Extensions showing as missing, these 3 are out of date.
My worry here is that if any of my other extensions get out of date, they too will have the same issue as the 3 above. Is there anything else I can do to try to debug this? The only Error I have been seeing in the Debug tools is the following:
The problem with that error is it doesn't happen all the time and sometimes seems to happen a little while after Code has been started up.
If I check my extensions in the Stable version of Code, I am seeing similar results.
The text was updated successfully, but these errors were encountered: