question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OmniSharp stopped working after update to 1.1.4

See original GitHub issue

Environment 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:closed
  • Created 7 years ago
  • Comments:19 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
DustinCampbellcommented, Jun 8, 2016

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!

0reactions
DustinCampbellcommented, Jun 8, 2016

Yup! Thanks all for reporting this so quickly and helping us get this fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OmniSharp stopped working after update to 1.19.0 · Issue #2996
Issue Description After installing V1.19.0 of the C# extension, Omnisharp has stopped working in all my workspaces.
Read more >
Intellisense not automatically working VSCode - Stack Overflow
After composing that setup I experienced only the first project to have intellisense working. Solution to get intellisense working was to make sure...
Read more >
[VSCode] OmniSharp project reference warnings are thrown ...
[VSCode] OmniSharp project reference warnings are thrown in VSCode console when using VSCode 1.1.4. Package: VS Code.
Read more >
[Visual Studio Code Editor 1.1.4] Error - Unity Forum
- when I transfers all Asset/ files from my not working project to the new one, and I reload VSCode, the errors come...
Read more >
When VSCode/OmniSharp Stop Working - JamieNordmeyer.net
When VSCode/OmniSharp Stop Working · Verify that your .csproj files are all included in the .sln file (if you're using a .sln file)...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found