Search Issue Tracker

By Design

Votes

0

Found in

2020.3

2021.2

2021.2.10f1

2022.1

2022.2

Issue ID

1403559

Regression

No

Suppressed warning is logged to the Console when using Roslyn DiagnosticSuppression

Scripting

-

How to reproduce:
1. Open the user's attached project
2. At the top of the Editor, go to Compilation -> Run
3. Observe the Console

Expected result: no warning is logged to the Console
Actual result: warning CS0649 is logged to the Console

Reproducible with: 2020.3.30f1, 2021.2.13f1, 2022.1.0b9, 2022.2.0a5
Could not test with: 2019.4.36f1 (error CS0117: 'ScriptCompilationSettings' does not contain a definition for 'extraScriptingDefines')

  1. Resolution Note (2022.2.X):

    https://github.com/dotnet/roslyn/blob/main/docs/compilers/Rule%20Set%20Format.md

    Setting the SuppressionDescriptor to "None" will basically overrule it, and it will basically become disabled.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.