vscode-csharp: Omnisharp does not display all errors/warnings in VSCode
Environment data
dotnet --info
output:
.NET Command Line Tools (1.0.0-preview2-003131)
Product Information: Version: 1.0.0-preview2-003131 Commit SHA-1 hash: 635cf40e58
Runtime Environment: OS Name: Mac OS X OS Version: 10.11 OS Platform: Darwin RID: osx.10.11-x64
VS Code version: 1.6.0
C# Extension version: 1.4.1
Steps to reproduce
Open a project with several errors/warnings in it (a project that you can replicate this bug in is available upon request).
Expected behavior
Omnisharp displays all errors/warnings in the Problems window in VSCode
Actual behavior
Omnisharp only displays a few or no messages even though in the omnisharp log I can clearly see them and have verified that they are valid errors/warnings (or… at least sometimes the log contains all warnings/errors, sometimes it does not). I have uploaded my omnisharp log here. This is in a clean install with no other extensions. The project is a Unity project, but I doubt that should matter.
VSCode also logs “Some projects have trouble loading. Please review the output for more details.” however I cannot see anything suspicious in the log even with verbose logging enabled. Though it is pretty large so I might have missed something.
Restarting VSCode or the Omnisharp server does not solve it.
I have not tried to reduce my project to a smaller size and checked if it still happens, but I am more than happy to share my project with anyone to try to debug it.
For a while it would simply display one or sometimes a few warnings (I was fixing a lot of unused ‘using’ declarations) and I had to fix the single warning that was displayed, wait while it re-processed everything and then fix the next warning that would then show up.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 61 (24 by maintainers)
same here, when I move the cursor, the red underline squiggles disappear.
Not sure why this issue keeps getting closed, it’s quite an alive and real bug 😉
I tried the patch csharp-1.5.0-future-preview1.vsix but same issue
Today installed 1.7.1 and the issue is back again. Need help guys cant really work like this. (Tried uninstalling and reinstalling 1.5.0beta4 without result).
That’s right. In VS Code, select View->Extensions. Then, at the top-right of Extensions pane click the […] and select “Install from VSIX…”
Fixed 😄
_isHugeProject = false (0)
is harmless. That’s a bit of debugging text I forgot to turn off.Error: Unsupported linux platform
is equally harmless. That’s just the debugger doing a check and determining whether it can run on the current Linux distro (you’re on ArchLinux, right?). The debugger check is here.Yeah, I didn’t think it’d fix that issue, but it would remove some of the noise in the Developer Console.
I found a solution: in v.1.5.3 all working.
https://code.visualstudio.com/updates/v1_5