dotnet / roslyn-analyzers

MIT License
1.6k stars 466 forks source link

Solution code analysis messages not shown unless file is opened #7471

Open vsfeedback opened 1 week ago

vsfeedback commented 1 week ago

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] Visual Studio is not showing code analysis messages for all solution files in a very small C# project. I have the options "Text Editor -> C# -> Advanced -> Run background code analysis for" and "Show compiler errors and warnings for" set to "Entire Solution" (not sure if they are relevant, but just in case). I also have a pair of Roslyn analyzer packages installed, and a file that has warnings that should be detected by both packages and the regular Visual Studio analyzers ("IDExxx").

If that file is closed, the error list window shows nothing (set to show messages for the entire solution, for build + Intellisense, and the errors, warnings and messages filters enabled); if I open the file, it shows the errors, until I close it. When executing the menu item "Analyze -> Run Code Analysis -> On Solution" the status bar shows the analysis ended, but there still are no messages shown.

I have tried with a different project and it works (though with a different issue I'll report separately).


Original Comments

Feedback Bot on 11/10/2024, 05:37 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 11/13/2024, 01:56 PM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.