Closed mdmoura closed 5 years ago
this is a dupe of #3274 please see https://github.com/OmniSharp/omnisharp-vscode/issues/3274#issuecomment-530520009 or try installing the latest beta from https://github.com/OmniSharp/omnisharp-vscode/releases/tag/v1.21.3-beta1
Thank you. I solved it by adding "latest" to "omnisharp.path".
I had a specific beta version I added sometime ago because of an existing bug.
Issue Description
When starting, or restarting, Omnisharp in Visual Studio Code I get the error: System.InvalidCastException: Specified cast is not valid.
OmniSharp log
Environment information
VSCode version: 1.38.1 C# Extension: 1.21.2
Mono Information
OmniSharp using global mono :5.18.1Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.401 Commit: 729b316c13 Runtime Environment: OS Name: Mac OS X OS Version: 10.14 OS Platform: Darwin RID: osx.10.14-x64 Base Path: /usr/local/share/dotnet/sdk/2.2.401/ Host (useful for support): Version: 2.2.6 Commit: 7dac9b1b51 .NET Core SDKs installed: 2.2.401 [/usr/local/share/dotnet/sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.2.6 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |Angular2|johnpapa|8.1.1| |azure-account|ms-vscode|0.8.4| |csharp|ms-vscode|1.21.2| |typescript-hero|rbbit|3.0.0| |vscode-mjml|attilabuti|1.6.0| |vscode-yaml|redhat|0.5.2|;