Steps to reproduce:
- Create a new Unity project
- In the Project tab, inside the Assets folder, right-click, go to Create → MonoBehaviour Script
- Open the script and add a compile error (e.g., type random invalid text), then save
- Close the Unity Editor
- Re-open the project and click Enter Safe Mode when prompted
- Right-click anywhere in the Assets folder in the Project window
- Click anywhere outside the menu to dismiss it
Actual result: The following error is logged: “ValidateMenuItem failed because there is no menu named Assets/Create/Scripting/C# …”
Expected result: No error is logged
Reproducible with: 6000.0.0f1, 6000.0.76f1, 6000.3.16f1, 6000.4.9f1, 6000.5.0b10, 6000.6.06a
Reproducible on: MacOS 26.5 (M1), Windows 11 (reported)
Not reproducible on: No other environments tested
Note: The issue only reproduces with a freshly created project. If an existing project is downgraded from a newer version, the issue will not always reproduce.