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
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')
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Quest] Pitch Shifter causes audio degradation on Quest 2 devices when sped up
- "GUI Error: Invalid GUILayout" and "NullReferenceException" are thrown when adding Scenes to "Scenes in Baking Set" in Adaptive Probe Volumes
- Inspector window not updating when switching GameObjects in Play Mode while having a VR headset connected
- "UnityException: GetName can only be called from the main thread." erors are thrown when the Shortcuts window is opened and entering Play Mode with a shortcut
- [Android] Light2D visuals stacking over frames when using RenderGraph
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.