Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error underlining red squiggles disappear #941

Closed
HawkenKing opened this issue Nov 15, 2016 · 9 comments
Closed

Error underlining red squiggles disappear #941

HawkenKing opened this issue Nov 15, 2016 · 9 comments

Comments

@HawkenKing
Copy link

Environment data

dotnet --info output: 1.0.0-preview2-003121
VS Code version: Version 1.7.1 (1.7.1)
C# Extension version: 1.5.0

Steps to reproduce

open any c# file and type

Expected behavior

red squiggles and error hint appear and stay

Actual behavior

red squiggles and error hint appear and then disappear when moving cursor

nored

@DustinCampbell
Copy link
Member

Could you post your OmniSharp log for me? I'm wondering if the OmniSharp server is dying and restarting, which causes the errors to disappear.

  1. Open Visual Studio Code and reproduce the problem.
  2. Select View->Output to display the Output pane
  3. At the top-right corner of the Output pane, select "OmniSharp Log" from the dropdown.
  4. Copy and paste the content into this issue.

@HawkenKing
Copy link
Author

Hi @DustinCampbell hope this helps!

Starting OmniSharp server at 11/16/2016, 5:30:56 PM
    Target: /confidential/project.sln

OmniSharp server started wth Mono
    Path: /confidential/.vscode/extensions/ms-vscode.csharp-1.4.1/out/.omnisharp-mono/OmniSharp.exe
    PID: 73041

OmniSharp: -s /confidential/project.sln --hostPID 73011 DotNet:enablePackageRestore=false --encoding utf-8 --stdio
{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/confidential/project' on host 73011."},"Seq":1,"Type":"event"}
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Initializing in /confidential/project
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Auto package restore: False
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Update workspace context
[INFORMATION:OmniSharp.DotNet.DotNetProjectSystem] Resolving projects references
[INFORMATION:OmniSharp#MSBuild] Detecting projects in '/confidential/project.sln'.
[INFORMATION:OmniSharp#MSBuild] Loading project from '/confidential/project.csproj'.
[INFORMATION:OmniSharp#MSBuild] Loading project from '/confidential/project/Assembly-CSharp-Editor.csproj'.
[WARNING:OmniSharp#ProjectFileInfo] The private field `Cloud.sre' is assigned but its value is never used
[WARNING:OmniSharp#ProjectFileInfo] The private field `Cloud.sre' is assigned but its value is never used
/confidential/project/Assembly-CSharp-Editor.csproj

[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Detecting CSX files in '/confidential/project'.
[INFORMATION:OmniSharp.ScriptCs.ScriptCsProjectSystem] Could not find any CSX files
[INFORMATION:OmniSharp.Startup] Configuration finished.
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /projects: 200 120ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /projects: 200 120ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 22ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 23ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 21ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 17ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /filesChanged: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /projects: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /projects: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /projects: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 1039ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 11ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 32ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 200 2103ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /codecheck: 200 1016ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[ERROR:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred: Object reference not set to an instance of an object
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 21ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 2ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 4ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 3ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /signatureHelp: 200 10ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 3ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /v2/getcodeactions: 200 183ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 1ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 4ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /findusages: 200 407ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 200 83ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 1ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 6ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 3ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /findusages: 200 8ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /codecheck: 200 30ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[ERROR:Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware] An unhandled exception has occurred: Object reference not set to an instance of an object
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /autocomplete: 500 26ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 1ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 6ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /codecheck: 200 48ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /findusages: 200 7ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /v2/getcodeactions: 200 137ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /updatebuffer: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /currentfilemembersastree: 200 3ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /codecheck: 200 27ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /findusages: 200 7ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /typelookup: 200 15ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /typelookup: 200 0ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /codecheck: 200 1364ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /typelookup: 200 1ms
[INFORMATION:OmniSharp.Middleware.LoggingMiddleware] /typelookup: 200 0ms

@DustinCampbell
Copy link
Member

Your log shows that you are using 1.4.1 of the C# extension, not 1.5.0 as mentioned at the top of this bug. Did you actually install the new release (now 1.5.2)? You should be able to do so from the Extensions pane in Visual Studio Code (select View->Extensions to display this pane).

@DustinCampbell
Copy link
Member

@HawkenKing: I've dug into this issue and found that it's likely due to a bug in VS Code. Details of my investigation are in #883. I've filed microsoft/vscode#15585 to track this issue on VS Code.

@DustinCampbell
Copy link
Member

A solid fix for this issue has been checked into VS Code. We should start seeing it working in VS Code Insiders builds soon.

@HawkenKing
Copy link
Author

HawkenKing commented Nov 21, 2016

@DustinCampbell just FYI I uninstalled everything related to VScode and started again from scratch. Probably a good idea since I've just been piling on updates since last year. Intellisense works fine but error squiggles disappear still. Hopefully this will be fixed in the next VScode update (using c# 1.5.2) thanks for your time on this.

@DustinCampbell
Copy link
Member

Excellent!

@grandmasteri
Copy link

I'm still getting this issue (for C++)...
It started after I downloaded the newest C++ extension.

@JoeRobich
Copy link
Member

Hi @grandmasteri, This repo is for the .NET C# VS Code extension. You can log issues with the C++ extension at https://github.com/Microsoft/vscode-cpptools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants