Skip to content
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

can't install Luna paint extension #175733

Closed
issam-seghir opened this issue Mar 1, 2023 · 11 comments
Closed

can't install Luna paint extension #175733

issam-seghir opened this issue Mar 1, 2023 · 11 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions upstream Issue identified as 'upstream' component related (exists outside of VS Code)

Comments

@issam-seghir
Copy link

issam-seghir commented Mar 1, 2023

Does this issue occur when all extensions are disabled?:
Yes

  • VS Code Version: 1.75.0
  • OS Version: windows 10 pro Version 21H2

Extension source : https://github.com/lunapaint/vscode-luna-paint

Error while installing 'Luna Paint — Image Editor' extension. 
Please check the [log](command:workbench.action.showWindowLog) for more details.
2023-02-28 12:20:44.866 [error] Signature: PackageIntegrityCheckFailed
    at yt.download (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:62:17985)
    at async $.h (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:90:171351)
2023-02-28 12:20:44.899 [error] PackageIntegrityCheckFailed: Signature: PackageIntegrityCheckFailed
    at yt.download (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:62:17985)
    at async $.h (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/electron-browser/sharedProcess/sharedProcessMain.js:90:171351)

when trying to download manually

image


الثلاثاء 28-فيفرييه-2023 12:21:56 م - Microsoft VSIX Installer
الثلاثاء 28-فيفرييه-2023 12:21:56 م - -------------------------------------------
الثلاثاء 28-فيفرييه-2023 12:21:56 م - vsixinstaller.exe version:
الثلاثاء 28-فيفرييه-2023 12:21:56 م - 16.11.57
الثلاثاء 28-فيفرييه-2023 12:21:56 م - -------------------------------------------
الثلاثاء 28-فيفرييه-2023 12:21:56 م - Command line parameters:
الثلاثاء 28-فيفرييه-2023 12:21:56 م - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\GAMING\Downloads\Tyriar.luna-paint-0.16.0.vsix
الثلاثاء 28-فيفرييه-2023 12:21:56 م - -------------------------------------------
الثلاثاء 28-فيفرييه-2023 12:21:56 م - Microsoft VSIX Installer
الثلاثاء 28-فيفرييه-2023 12:21:56 م - -------------------------------------------
الثلاثاء 28-فيفرييه-2023 12:21:57 م - Skipping product Microsoft.VisualStudio.Product.BuildTools (94e45a98) since it does not support extensions
الثلاثاء 28-فيفرييه-2023 12:21:57 م - Initializing Install...
الثلاثاء 28-فيفرييه-2023 12:21:57 م - Extension Details...
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Identifier         : luna-paint
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Name               : Luna Paint — Image Editor
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Author             : Tyriar
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Version            : 0.16.0
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Description        : Edit images in VS Code! Supports png, jpg, webp, bmp, tga and ico formats.
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	Locale             : en-US
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	MoreInfoURL        : 
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	InstalledByMSI     : False
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 	SupportedFrameworkVersionRange : [0.0,2147483647.2147483647]
الثلاثاء 28-فيفرييه-2023 12:21:57 م - 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 	SignatureState     : Unsigned
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 	Supported Products : 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 		Microsoft.VisualStudio.Code
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 			Version : 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 	References         : 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - Signature Details...
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 	Extension is not signed.
الثلاثاء 28-فيفرييه-2023 12:21:58 م - 
الثلاثاء 28-فيفرييه-2023 12:21:58 م - Searching for applicable products...
الثلاثاء 28-فيفرييه-2023 12:21:58 م - Found installed product - Global Location
الثلاثاء 28-فيفرييه-2023 12:21:58 م - VSIXInstaller.NoApplicableSKUsException: One or more extensions are for Visual Studio Code. Try installing them in Visual Studio Code.
   at VSIXInstaller.ExtensionService.GetInstallableDataImpl(IInstallableExtension extension, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable`1& skuData)
   at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize(Boolean isRepairSupported)
   at VSIXInstaller.App.Initialize()
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)
@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.75.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@vscodenpa vscodenpa added *english-please Issue not using English and removed *english-please Issue not using English labels Mar 1, 2023
@sandy081 sandy081 added bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions labels Mar 2, 2023
@sandy081 sandy081 added this to the March 2023 milestone Mar 2, 2023
@sandy081
Copy link
Member

sandy081 commented Mar 2, 2023

cc @dtivel

@isidorn
Copy link
Contributor

isidorn commented Mar 2, 2023

@issam-seghir what product are you using. Visual studio? Or are you using Visual Studio Code? The screenshot you provided looks like Visual Studio to me?

Can you please provide a gif showing this error?

@isidorn isidorn added the info-needed Issue requires more information from poster label Mar 2, 2023
@issam-seghir
Copy link
Author

@dtivel
Copy link
Member

dtivel commented Mar 2, 2023

Here's what I think happened, and please correct me if I'm mistaken, @issam-seghir.

  1. You attempted to install Luna Paint extension in VS Code 1.75.0, but the installation failed with a PackageIntegrityCheckFailed error.
  2. Outside of VS Code, you manually downloaded the extension from VS Marketplace.
  3. You tried to install the extension by directly double-clicking the extension file or right-clicking on it and selecting Open. Because Visual Studio is also installed on the same machine as Visual Studio Code, Visual Studio's extension installer intercepted the installation attempt and raised the error dialog saying that the extension cannot be installed in Visual Studio.

@issam-seghir, can you please update to latest stable (1.76.0) VS Code, open the Command Palette, select "Developer: Set Log Level...", and select Trace. Then reproduce the extension installation failure. Finally, look in the Shared output window for Extension signature verification details for for the failed extension and share the details on this thread.

To install a manually downloaded extension in VS Code, follow these instructions.

@issam-seghir
Copy link
Author

this is what I have in my machine:

  • vs code 1.76.0
  • visual studio build tool 2019
    image

this is my shared output when I follow your instruction:

i can't find Extension signature verification details for

2023-03-03 17:34:50.792 [info] Getting Manifest... tyriar.luna-paint
2023-03-03 17:34:50.797 [info] Installing extension: tyriar.luna-paint
2023-03-03 17:34:52.076 [error] Error while installing the extension: tyriar.luna-paint
2023-03-03 17:34:52.077 [error] Failed to install extension. tyriar.luna-paint
2023-03-03 17:34:52.077 [error] Signature: PackageIntegrityCheckFailed
    at yt.download (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:468)
    at async X.x (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760)
    at async X.h (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897)
2023-03-03 17:34:52.077 [error] [uncaught exception in sharedProcess]: PackageIntegrityCheckFailed: Signature: PackageIntegrityCheckFailed
    at yt.download (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:468)
    at async X.x (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:20760)
    at async X.h (vscode-file://vscode-app/c:/Users/GAMING/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/code/node/sharedProcess/sharedProcessMain.js:91:18897)

and you are right I did exactly what you said
Anyway, I tried to install the extension with the command line, and it worked!

image

@dtivel
Copy link
Member

dtivel commented Mar 15, 2023

@issam-seghir, I opened microsoft/vsmarketplace#619.

@dtivel
Copy link
Member

dtivel commented Mar 15, 2023

In short, the problem is that the version of the extension file downloaded from CDN is different than what we expected; hence, the PackageIntegrityCheckFailed error. The error is correct, and the file on CDN seems to be incorrect. I opened the above issue for the VS Marketplace team to investigate.

@Simon-He95
Copy link

I met the same problem, is there any solution ?

@issam-seghir
Copy link
Author

I met the same problem, is there any solution ?

The only solution that worked for me at the moment its the command line :
code --install-extension .\Tyriar.luna-paint-0.16.0.vsix

@sandy081 sandy081 added upstream Issue identified as 'upstream' component related (exists outside of VS Code) and removed info-needed Issue requires more information from poster labels Mar 21, 2023
@sandy081 sandy081 removed this from the March 2023 milestone Mar 21, 2023
@isidorn
Copy link
Contributor

isidorn commented Mar 21, 2023

The underlying issue is tracked in microsoft/vsmarketplace#619.
However @sandy081 has pushed a workaround in VS Code so this should no longer be user blocking. Thus installation should just work. Thanks all!

@github-actions github-actions bot locked and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug extensions Issues concerning extensions upstream Issue identified as 'upstream' component related (exists outside of VS Code)
Projects
None yet
Development

No branches or pull requests

7 participants
@isidorn @sandy081 @dtivel @Simon-He95 @issam-seghir @vscodenpa and others