dotnet / vscode-csharp

Official C# support for Visual Studio Code
MIT License
2.85k stars 667 forks source link

Weird behaviour all the time... #4404

Closed AndiRudi closed 1 week ago

AndiRudi commented 3 years ago

Issue Description

Since a couple of weeks/month I have quite some issues working with vscode on our .net core / .net projects. We have multiple smaller microservices and one larger monolith. It actually does not make much difference which project I open, Omnisharp behaves weird and usually I need to work blindly. Here are some of my findings:

I want to add that I have those issues on different machines (iMac and MacBookPro). Also colleagues report similar issues. I'm happy to assist finding the issues (if not already known)

Steps to Reproduce

I do not have explicit steps. It just happens all over the place while coding

Expected Behavior

Intellisense to be stable and fast

Actual Behavior

Intellisense not stable and slow

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.53.2 C# Extension: 1.23.9

Mono Information OmniSharp using built-in mono
Dotnet Information .NET SDK (reflecting any global.json): Version: 5.0.103 Commit: 72dec52dbd Runtime Environment: OS Name: Mac OS X OS Version: 11.0 OS Platform: Darwin RID: osx.11.0-x64 Base Path: /usr/local/share/dotnet/sdk/5.0.103/ Host (useful for support): Version: 5.0.3 Commit: c636bbdc8a .NET SDKs installed: 3.1.404 [/usr/local/share/dotnet/sdk] 3.1.405 [/usr/local/share/dotnet/sdk] 3.1.406 [/usr/local/share/dotnet/sdk] 5.0.100 [/usr/local/share/dotnet/sdk] 5.0.101 [/usr/local/share/dotnet/sdk] 5.0.102 [/usr/local/share/dotnet/sdk] 5.0.103 [/usr/local/share/dotnet/sdk] .NET runtimes installed: Microsoft.AspNetCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.10 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.11 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App] To install additional .NET runtimes or SDKs: https://aka.ms/dotnet-download
Visual Studio Code Extensions |Extension|Author|Version| |---|---|---| |add-reference|adrianwilczynski|1.0.2| |auto-using|Fudge|0.7.15| |cpptools|ms-vscode|1.2.1| |csharp|ms-dotnettools|1.23.9| |dotnet-test-explorer|formulahendry|0.7.5| |gitlens|eamodio|11.2.1| |HTMLHint|mkaufman|0.10.0| |java|redhat|0.75.0| |jupyter|ms-toolsai|2021.2.576440691| |lit-html|bierner|1.11.1| |material-icon-theme|PKief|4.5.0| |msbuild-project-tools|tintoy|0.3.14| |night-owl|sdras|2.0.0| |nuget-reverse-package-search|jesschadwick|0.1.68| |theme-bluloco-light|uloco|3.3.4| |tizentv|tizensdk|1.2.2| |vscode-docker|ms-azuretools|1.10.0| |vscode-drawio|hediet|1.3.0| |vscode-java-pack|vscjava|0.12.1| |vscode-java-test|vscjava|0.28.0| |vscode-markdownlint|DavidAnson|0.39.0| |vscode-nuget-gallery|patcx|0.0.24| |vscode-nuget-package-manager-improved|maxbrister|2.1.0| |vscode-xml|redhat|0.15.0| |vscode-yaml|redhat|0.15.0|;
rupe120 commented 3 years ago

I just opened a project that was mostly working yesterday, minus one possibly related issue. Today I open it to find all sorts of misidentified issues image

This is on a VM that I just created yesterday.

DiegoGFritz commented 3 years ago

I have the same issue. This occurs many, many times while I'm coding VSCode version: 1.54.2 C# extension: 1.23.9 OS version: Windows 10 20H2

imagen

SirIntruder commented 3 years ago

I've seen this recently on a Unity project/windows, and I have a hunch it was related to pulling git changes on a file that was not currently active.

JoeRobich commented 1 week ago

There have been lots of improvements since this issue was opened. Please open a new issue with logs if you are still running into this.