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.

Most features are basically broken randomly on vscode 1.43

See original GitHub issue

Environment data

dotnet --info output:

.NET Core SDK (reflecting any global.json):
 Version:   3.1.201
 Commit:    b1768b4ae7

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

Host (useful for support):
  Version: 3.1.3
  Commit:  4a9f85e9f8

.NET Core SDKs installed:
  3.1.201 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]        
  Microsoft.NETCore.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

To install additional .NET Core runtimes or SDKs:
  https://aka.ms/dotnet-download
.NET Core SDK (reflecting any global.json):
 Version:   3.1.201
 Commit:    b1768b4ae7

Runtime Environment:
 OS Name:     debian
 OS Version:  10
 OS Platform: Linux
 RID:         debian.10-x64
 Base Path:   /usr/share/dotnet/sdk/3.1.201/

Host (useful for support):
  Version: 3.1.3
  Commit:  4a9f85e9f8

.NET Core SDKs installed:
  3.1.201 [/usr/share/dotnet/sdk]

.NET Core runtimes installed:
  Microsoft.AspNetCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.3 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

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

VS Code version: 1.43.2 C# Extension version: 1.21.15

Steps to reproduce

Open and edit a fresh new dotnet new classlib project.

Expected behavior

Everything would work fine, and if there is a problem, there would be some warn or fail output in the OmniSharp Log

Actual behavior

Language support would never start until you make a change to the source file. No warn or fail reported, and everything looks harmonious. Auto-completion for adding namespace using disappears. All compiler errors are not detected except for syntax lexer/parser errors. Types from nuget packages are not respected. Some type inference does not work. Phantom break points when debugging. Build & launch sometimes have different behavior from the output built from command line, which bring strange problems like .so file not found when running a asp.net core project on linux, some properties in .props are ignored, or some project does not output executable files.

Random collections of these problems appear by different, and are even not able to determine whether they appear randomly or consistently. The occurrence of these problems could vary from different OS and/or project types.

I tried on both on Windows and WSL2 Debian, both default or "latest" version. There are always some of these problems that make VSCode current version not an usable C# editor any more.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:6
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
atrauzzicommented, Apr 4, 2020

I’m noticing on 1.43.2 that omnisharp just isn’t doing anything, or appears to be having a very hard time in my projects.

It’s hard to explain because the only symptoms I’m seeing are behavioural. It manifests in weird ways like intellisense not working at all, ctrl-clicking on anything results in the little progress bar running across the top of the screen, stopping and then nothing happening. I can’t refactor anything.

It just seems…dead?

Logs show nothing out of the ordinary (I think?)…

Starting OmniSharp server at 2020-04-04, 10:41:14 a.m.
    Target: /my/project/path/MyProject

OmniSharp server started.
    Path: /home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/run
    PID: 25382

[info]: OmniSharp.Stdio.Host
        Starting OmniSharp on ubuntu 19.10 (x64)
[info]: OmniSharp.Services.DotNetCliService
        DotNetPath set to dotnet
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Located 1 MSBuild instance(s)
            1: StandAlone 16.4 - "/home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild/Current/Bin"
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        MSBUILD_EXE_PATH environment variable set to '/home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild/Current/Bin/MSBuild.dll'
[info]: OmniSharp.MSBuild.Discovery.MSBuildLocator
        Registered MSBuild instance: StandAlone 16.4 - "/home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild/Current/Bin"
            CscToolExe = csc.exe
            MSBuildToolsPath = /home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild/Current/Bin
            CscToolPath = /home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild/Current/Bin/Roslyn
            BypassFrameworkInstallChecks = true
            MSBuildExtensionsPath = /home/atrauzzi/.vscode/extensions/ms-dotnettools.csharp-1.21.16/.omnisharp/1.34.15/omnisharp/.msbuild
[info]: OmniSharp.Cake.CakeProjectSystem
        Detecting Cake files in '/my/project/path/MyProject'.
[info]: OmniSharp.Cake.CakeProjectSystem
        Could not find any Cake files
[info]: OmniSharp.MSBuild.ProjectSystem
        No solution files found in '/my/project/path/MyProject'
[info]: OmniSharp.MSBuild.ProjectManager
        Queue project update for '/my/project/path/MyProject/MyProject.csproj'
[info]: OmniSharp.Script.ScriptProjectSystem
        Detecting CSX files in '/my/project/path/MyProject'.
[info]: OmniSharp.Script.ScriptProjectSystem
        Found 1 CSX files.
[info]: OmniSharp.Script.ScriptContextProvider
        Searching for compilation dependencies with the fallback framework of 'net461'.
[info]: OmniSharp.MSBuild.ProjectManager
        Loading project: /my/project/path/MyProject/MyProject.csproj
[info]: OmniSharp.Script.ScriptContextProvider
        Unable to find dependency context for CSX files. Will default to non-context usage (Desktop CLR scripts).
[info]: OmniSharp.MSBuild.ProjectManager
        Successfully loaded project file '/my/project/path/MyProject/MyProject.csproj'.
[info]: OmniSharp.MSBuild.ProjectManager
        Adding project '/my/project/path/MyProject/MyProject.csproj'
[fail]: OmniSharp.MSBuild.ProjectManager
        Failed to add project to workspace: '/my/project/path/MyProject/MyProject.csproj'
[fail]: OmniSharp.MSBuild.ProjectManager
        Could not locate project in workspace: /my/project/path/MyProject/MyProject.csproj
[info]: OmniSharp.Script.ScriptProjectSystem
        Added CSX project '/my/project/path/MyProject/csx/mucking.csx' to the workspace.
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpFormattingWorkspaceOptionsProvider, Order: 0
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.RenameWorkspaceOptionsProvider, Order: 100
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.ImplementTypeWorkspaceOptionsProvider, Order: 110
[info]: OmniSharp.WorkspaceInitializer
        Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.EditorConfigWorkspaceOptionsProvider, Order: 200
[info]: OmniSharp.WorkspaceInitializer
        Configuration finished.
[info]: OmniSharp.Stdio.Host
        Omnisharp server running using Stdio at location '/my/project/path/MyProject' on host 5913.
0reactions
rjurneycommented, Oct 13, 2020

@cartermp I have the same issue on a modern VS Code and tye no longer installs because of a download error:

./build.sh

dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.1.20452.10/dotnet-sdk-5.0.100-rc.1.20452.10-osx-x64.tar.gz
dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/5.0.100-rc.1.20452.10/dotnet-sdk-5.0.100-rc.1.20452.10-osx-x64.tar.gz
cp: /var/folders/0b/74l_65015_5fcbmbdz1w2xl40000gn/T//dotnet.3wVvdhj6p/\033[1;35;40m\033[K/var/folders/0b/74l_65015_5fcbmbdz1w2xl40000gn/T//dotnet.3wVvdhj6p/host/fxr/5.0.0-rc.1.20451.14/\033[m\033[K: No such file or directory
Failed to install dotnet SDK from public location (exit code '1').
Failed to install dotnet SDK from public location (exit code '1').
Read more comments on GitHub >

github_iconTop Results From Across the Web

November 2022 (version 1.74) - Visual Studio Code
Welcome to the November 2022 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some...
Read more >
October 2022 - Visual Studio Code
Welcome to the October 2022 release of Visual Studio Code. There are many updates in this version that we hope you'll like, some...
Read more >
February 2020 (version 1.43) - Visual Studio Code
This major update brings support for new language features including ECMAScript private fields, top-level await expressions, and the export * as ns syntax, ......
Read more >
May 2022 (version 1.68) - Visual Studio Code
There are many updates in this version that we hope you'll like, ... Preview: Markdown link validation - Detects broken links to headers,...
Read more >
Visual Studio Code: Intellisense not working - Stack Overflow
This can be caused by many reasons, some of them are as follows. Python executable path in vscode is incorrect. Solution: Configure 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