Search Issue Tracker
Won't Fix
Won't Fix in 2023.1.X
Votes
0
Found in
2022.2.0a19
2023.1.0a3
Issue ID
UUM-9085
Regression
No
[Roslyn Analyzers] Warning messages do not stay after compilation is complete when a ruleset file is modified
Reproduction steps:
1. Open the user's attached project
2. Open Assets/Scripts/Default.ruleset
3. In Visual Studio expand Microsoft.Unity.Analyzers
4. Modify a rule action (e.g. change rule UNT0020 from "Warning" to "None")
5. Save and go back to Unity Editor
6. Observe the Console window
Expected result: Warning messages stay when the compilation is complete
Actual result: Warning messages appear for a short time and then disappear when the compilation is complete
Reproducible with: 2022.2.0b1, 2023.1.0a3
Not reproducible with: 2019.4.40f1, 2020.3.35f1, 2021.3.5f1, 2022.1.8f1, 2022.2.0a19
Reproducible on: Windows 10
Notes:
1. Modifying a c# script file and compiling results in a correct behavior
2. Look at the attached video for clarity
Warning messages:
warning UNT0001: The Unity message 'Start' is empty.
warning UNT0001: The Unity message 'Update' is empty.
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
- Redoing creation of Sub Scenes and Cube GameObjects in Hierarchy throws “Assertion failed on expression: 'targetScene != nullptr’” error in Console window
- Selecting “New Sub Scene” after assigning “New Scene” in Sub Scene Script Component throws “Destroying GameObjects immediately is not permitted” in the Console window
- Shader Graph "Zoom Step Size" can be set to 0 even though the zoom still works
- Enabling/Disabling the Deprecated Nodes doesn't apply to the opened Shader Graph unless any Variable is added to the Blackboard
- Group Selection title text size is smaller in renaming than the actual font size
Resolution Note:
The repro project includes a `OnPostprocessAllAssets` - that calls CompilationPipeline.RequestScriptCompilation();
That will trigger a recompilation of things that has changed, and clears logs from the last compilation.
Resolution Note (2023.1.X):
The repro project includes a `OnPostprocessAllAssets` - that calls CompilationPipeline.RequestScriptCompilation();
That will trigger a recompilation of things that has changed, and clears logs from the last compilation.