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.19.0

See original GitHub issue

Issue Description

After installing V1.19.0 of the C# extension, Omnisharp has stopped working in all my workspaces.

When looking at the Omnisharp log there are no visible errors, but it always seem to get stuck after the first Adding project ..../.../Project.csproj, no timeout or anything else comes after some time waiting.

I checked my .Net runtime version and it’s 4.7.2 (461814)

Steps to Reproduce

  • Update 1.19.0 of the C# Extension was automatically installed by VSCode.

Expected Behavior

  • Omnisharp and intellisense should keep working normally.

Actual Behavior

  • Omnisharp does not load anymore.

Logs

OmniSharp log

Starting OmniSharp server at 2019-4-17 10:36:23 Target: c:\Users\xxx\Projects\xxx

OmniSharp server started. Path: C:\Users\xxx.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe PID: 8892

    Starting OmniSharp on Windows 6.2.9200.0 (x64)
    DotNetPath set to dotnet
    Located 2 MSBuild instance(s)
        1: Visual Studio Professional 2017 15.8.28010.2026 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
        2: StandAlone 15.0 - "C:\Users\xxx\.vscode\extensions\ms-vscode.csharp-1.19.0\.omnisharp\1.32.18\.msbuild\Current\Bin"
    Registered MSBuild instance: Visual Studio Professional 2017 15.8.28010.2026 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
    Detecting Cake files in 'c:\Users\xxx\Projects\xxx'.
    Could not find any Cake files
    Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
    No solution files found in 'c:\Users\xxx\Projects\xxx'
    Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'
    Queue project update for 'c:\Users\xxx\Projects\xxx\src\Mod2\Mod2.csproj'
    Detecting CSX files in 'c:\Users\xxx\Projects\xxx'.
    Could not find any CSX files
    Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
    Loading project: c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj
    Configuration finished.
    Omnisharp server running using Stdio at location 'c:\Users\xxx\Projects\xxx' on host 19060.
    Successfully loaded project file 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'.
    Adding project 'c:\Users\xxx\Projects\xxx\src\Mod1\Mod1.csproj'

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.33.1 C# Extension: 1.19.0

Dotnet Information .NET Core SDK (reflecting any global.json): Version: 2.1.402 Commit: 3599f217f4

Runtime Environment: OS Name: Windows OS Version: 10.0.17763 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\2.1.402\

Host (useful for support): Version: 2.1.4 Commit: 85255dde3e

.NET Core SDKs installed: 1.1.4 [C:\Program Files\dotnet\sdk] 2.1.302 [C:\Program Files\dotnet\sdk] 2.1.402 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 1.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 1.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.2 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
beautify HookyQR 1.4.11
code-settings-sync Shan 3.2.8
csharp ms-vscode 1.19.0
EditorConfig EditorConfig 0.13.0
gitlens eamodio 9.6.1
markdown-pdf yzane 1.2.0
material-icon-theme PKief 3.7.0
Material-theme zhuangtongfa 2.21.0
mssql ms-mssql 1.5.0
project-manager alefragnani 10.5.1
python ms-python 2019.3.6558
theme-dracula dracula-theme 2.17.0
vim vscodevim 1.4.0
vsc-material-facebook-theme rmarganti 1.1.0
vsc-material-theme Equinusocio 2.8.2
vscode-nuget-package-manager jmrog 1.1.6
vsliveshare ms-vsliveshare 1.0.45

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:13
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

8reactions
mvalerocommented, Apr 17, 2019

@iSazonov FYI. I was able to downgrade using the built-in option in VSCode, right click on extension and “Install another version…”

3reactions
cjaeckelcommented, Apr 17, 2019

Exact same problem with ms-vscode.csharp 1.19.0 on Windows 10 .NET 4.7.2 (46184).

(Only a downgrade to 1.18 works…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Roslyn analyzers and code fixes in OmniSharp and VS Code
It's really been in the back since the beginning of the project. Some original prototyping on analyzers and code fixes was done a...
Read more >
Intellisense not automatically working VSCode - Stack Overflow
Solution to get intellisense working was to make sure omnisharp worked its way ... Specs: VS Code 1.33.1, C# Extension 1.19.0, MacOS High...
Read more >
PSA: If your VS Code C# extension stopped working...
I just tried updating to the latest debugger, and C#/Omnisharp 1.21.14 and autocomplete and suggestions were still broken. Not sure if ...
Read more >
javascript intellisense vscode not working - ارز دیجیتال
Solution to get intellisense working was to make sure omnisharp worked its way from the ... After updating the environment variables in registry...
Read more >
Updated Razor support in Visual Studio Code, now with ...
json but it did not help too. What's interesting though is when you execute “dotnet build” and “dotnet run” in the terminal, the...
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