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

InvalidExtensionManifestException when installing omnisharp-vscode #217

Closed
kevinchalet opened this issue Apr 19, 2016 · 6 comments
Closed
Labels

Comments

@kevinchalet
Copy link

When installing omnisharp-vscode, the VSIX installer crashes with the following message:

image

Removing the "rc" modifier in the manifest file seems to work around this issue:

<Identity Language="en-US" Id="csharp" Version="1.0.3" Publisher="ms-vscode"/>
19/04/2016 03:09:14 - Microsoft VSIX Installer
19/04/2016 03:09:14 - -------------------------------------------
19/04/2016 03:09:14 - Initializing Install...
19/04/2016 03:09:14 - Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: L'élément 'Identity' a une valeur non valide pour l'attribut 'Version' ---> System.FormatException: Le format de la chaîne d'entrée est incorrect.
   à System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
   à System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
   à System.Version.TryParseVersion(String version, VersionResult& result)
   à System.Version.Parse(String input)
   à System.Version..ctor(String version)
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.<ExtractManifestData>b__11_1(String s)
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
   --- Fin de la trace de la pile d'exception interne ---
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func`2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)
   à Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream, String localeRelativeRoot, Boolean localize)
   à Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream vsixStream, CultureInfo preferredCulture)
   à Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
   à VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
   à VSIXInstaller.App.InitializeInstall()
   à System.Threading.Tasks.Task.InnerInvoke()
   à System.Threading.Tasks.Task.Execute()

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Locale: French

@gregg-miskelly
Copy link
Contributor

It sounds like you are trying to double click the .vsix. That isn't going to work as far as I know -- that would try and install the .vsix into Visual Studio. You want to File->Open it from VS Code.

@kevinchalet
Copy link
Author

kevinchalet commented Apr 19, 2016

Hum, okay, thanks for the tip! 😄

IMHO, it's not super intuitive and would deserve a remark somewhere in a troubleshooting section. That said, I guess it's not specific to omnisharp and impacts basically every other extension (sounds like a bad design decision from the VS Code team).

@gregg-miskelly
Copy link
Contributor

Sure, I can add a note to the document tomorrow. I am assuming you were following http://aka.ms/vscclrdogfood?

@gregg-miskelly
Copy link
Contributor

Okay, I added a quick note now actually.

@kevinchalet
Copy link
Author

Yep. The related instruction (File->Open and open the downloaded vsix file) is clear when you think about it, but it's common for people to run downloaded files directly from their browsers, which directly launches the VSIX installer in this case.

@kevinchalet
Copy link
Author

Thanks 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants