OmniSharp stopped working after update to 1.1.4
See original GitHub issueEnvironment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview1-002702)
Product Information: Version: 1.0.0-preview1-002702 Commit Sha: 6cde21225e
Runtime Environment: OS Name: Windows OS Version: 10.0.10586 OS Platform: Windows RID: win10-x64
VS Code version: 1.2.0 C# Extension version: 1.1.4
Steps to reproduce
dotnet new dotnet restore code . Start typeing some code for autocomplete
Expected behavior
Autocomplete work.
Actual behavior
No autocomplete, exception in omnisharp log:
[INFO] Starting OmniSharp at ‘c:\Users\user\Desktop\Nowy folder’… [INFO] Started OmniSharp from ‘C:\Users\user.vscode\extensions\ms-vscode.csharp-1.1.4.omnisharp\OmniSharp.exe’ with process id 8628… OmniSharp: -s c:\Users\user\Desktop\Nowy folder --hostPID 4980 dnx:enablePackageRestore=false --stdio [INFORMATION:OmniSharp.Startup] Omnisharp server running using Stdio at location ‘c:\Users\user\Desktop\Nowy folder’ on host 4980. [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in c:\Users\user\Desktop\Nowy folder [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: True [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update project c:\Users\user\Desktop\Nowy folder [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Add project c:\Users\user\Desktop\Nowy folder\project.json => dfcbe7ac-86d0-45c7-87d3-30ecdd58ed53 [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Processing [ProjectState] Nowy folder/.NETCoreApp,Version=v1.0 [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Added 74 and removed 0 file references [INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Added 1 and removed 0 documents. [INFORMATION:OmniSharp.MSBuild.MSBuildProjectSystem] No solution files found in ‘c:\Users\user\Desktop\Nowy folder’ [INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in ‘c:\Users\user\Desktop\Nowy folder’. [INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files [INFORMATION:OmniSharp.Startup] Configuration finished. [ERROR:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred: The type initializer for ‘OmniSharp.CSharpSyntaxContext’ threw an exception. [INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 67ms [ERROR:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred: The type initializer for ‘OmniSharp.CSharpSyntaxContext’ threw an exception. [INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 12ms [INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /v2/getcodeactions: 200 824ms
It was working yesterday before update to 1.1.4 (1.0.11 if I remember right).
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (15 by maintainers)
Top GitHub Comments
OK. I’ve pushed a new release (1.1.5) to the marketplace that fixes the problem. @sec and @PiterGoCompany, could you update the C# extension from within Visual Studio Code and let me know if you’re up and running again? Thanks!
Yup! Thanks all for reporting this so quickly and helping us get this fixed.