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 List not showing suppressed diagnostics #62498

Closed
Youssef1313 opened this issue Jul 8, 2022 · 20 comments
Closed

Error List not showing suppressed diagnostics #62498

Youssef1313 opened this issue Jul 8, 2022 · 20 comments
Assignees
Milestone

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Jul 8, 2022

Version Used:

17.3 Preview 2

no-suppressed-diag

Error shows before suppression, but didn't show after suppression

Note that I selected "Suppressed" from the Error List filter (which is off by default).

(Same applies to compiler warnings)

cc @mavasani

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Analyzers untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 8, 2022
@vatsalyaagrawal vatsalyaagrawal removed the untriaged Issues and PRs which have not yet been triaged by a lead label Jul 15, 2022
@vatsalyaagrawal vatsalyaagrawal added this to the 17.4 milestone Jul 15, 2022
@mavasani
Copy link
Member

mavasani commented Sep 14, 2022

@Youssef1313 I am unable to reproduce this on the latest internal dogfood builds:
image

One thing I note is that your repro shows all Suppression State values as <blank>, there are no Active, N/A or Suppressed entries. I am wondering if this is some intermittent error list bug. Can you check if you can reproduce this on 17.4 Preview1: https://docs.microsoft.com/en-us/visualstudio/releases/2022/release-notes-preview?

@mavasani mavasani added the Need More Info The issue needs more information to proceed. label Sep 14, 2022
@ghost ghost added untriaged Issues and PRs which have not yet been triaged by a lead and removed Need More Info The issue needs more information to proceed. labels Sep 14, 2022
@mavasani mavasani added Need More Info The issue needs more information to proceed. and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Sep 14, 2022
@Youssef1313
Copy link
Member Author

@mavasani, Yes I can repro on 17.4 P1

  • Warning is shown when there is no suppression:
    image

  • Warning doesn't show as suppressed after suppression
    image

  • Version:
    image

@ghost ghost added untriaged Issues and PRs which have not yet been triaged by a lead and removed Need More Info The issue needs more information to proceed. labels Sep 14, 2022
@mavasani
Copy link
Member

Interesting. I just checked on 17.3 release drop and it still doesn't reproduce for me. I am not sure why your Suppression State column is showing up as blank. Can you check the experience on RoslynDev hive? I presume you don't hit the breakpoint below?

case StandardTableKeyNames.SuppressionState:
content = data.IsSuppressed ? SuppressionState.Suppressed : SuppressionState.Active;
return true;

@Youssef1313
Copy link
Member Author

Sure, I'll check that as soon as I can.

@arkalyanms arkalyanms removed the untriaged Issues and PRs which have not yet been triaged by a lead label Sep 14, 2022
@mavasani
Copy link
Member

@Youssef1313 any luck?

@Youssef1313
Copy link
Member Author

Not yet :(
I got quite busy with my internship. I should be able to test in two weeks or so. You can assign me so that I don't forget.

@Youssef1313
Copy link
Member Author

@mavasani Sorry for the delay here. I'm trying to reproduce this in 17.4 P1, but I now cannot find "Suppression State" in error list at all:

image

"Show Columns" doesn't have it as well:

image

@mavasani
Copy link
Member

@Youssef1313 That is interesting. I just updated to the latest internal dogfood build and can see the column:
image

I am not sure why this column is behaving specially for you :-)

@mavasani
Copy link
Member

I confirmed with @Evangelink offline that he is also able to see the Suppression State column and correct filtering for the entries based on the chosen filters for this column. He verified the same on 17.3.5 as well as latest preview for 17.4.

I am going to try this on a fresh install of a Community sku of VS and get back to you.

@Youssef1313
Copy link
Member Author

I'll also re-test once I get home back.
If I could repro, I'll try to debug it on my own, and I can give you remote access via Zoom or similar software if necessary to investigate further.

@Youssef1313
Copy link
Member Author

image

@mavasani The column appears when I have Roslyn.sln open, but it doesn't for a new project. 😕

@Evangelink
Copy link
Member

@Youssef1313 Could you zip your project so we can try with exact same project (this would leave VS or extensions)? Also, are you still on 17.4P1? And are you using Community sku?

@Youssef1313
Copy link
Member Author

Yeah I'm on 17.4 Preview 1. It's really just a new project.

ConsoleApp9.zip

and yes, I'm using community.

@Evangelink
Copy link
Member

Evangelink commented Oct 13, 2022

Awesome! I don't understand but hey I have the same issue on that project on my personal machine (Microsoft Visual Studio Community 2022 (64-bit) - Preview Version 17.4.0 Preview 2.0). But when opening RoslynAnalyzers solution column appears, and I can filter.

EDIT: Found the issue... it's linked to <ImplicitUsings>enable</ImplicitUsings>. As soon as I comment the line, column show up. @Youssef1313 could you confirm you see the same thing?

EDIT2: I confirm this is also the case with Pro and Entreprise editions.

@mavasani
Copy link
Member

mavasani commented Nov 2, 2022

Another possible cause could be LSP pull diagnostics, see #65172. @Youssef1313 can you confirm if you have pull diagnostics enabled or not?

image

@Youssef1313
Copy link
Member Author

@mavasani Yes I have pull diagnostics enabled.

@Youssef1313
Copy link
Member Author

EDIT: Found the issue... it's linked to <ImplicitUsings>enable</ImplicitUsings>. As soon as I comment the line, column show up. @Youssef1313 could you confirm you see the same thing?

I can't imagine why ImplicitUsings would affect error list.

@Youssef1313
Copy link
Member Author

@mavasani Should I close as a duplicate of #65172 ?

@mavasani
Copy link
Member

mavasani commented Nov 2, 2022

Yes, if disabling pull diagnostics fixes the issue then go ahead

@Youssef1313
Copy link
Member Author

Yes, it does fix it. I'm going to close out.

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

5 participants