Reproduction steps:
1. Open the attached project “ReproProject“
2. Open Shortcuts Window via Unity → Shortcuts… for Mac or Edit → Shortcuts… for Windows
3. For the action “Create Empty C# Script“, assign any shortcut (for example option + n for Mac)
4. Using the assigned shortcut, create a script in the Packages/Package Example/Runtime directory (or any embedded Package directory)
5. Observe the result in the Console Window
Expected result: Script is created successfully, no warnings are shown
Actual result: After creating a new script using the shortcut, a warning pops up in the console that is being logged continuously unless the project is reopened
Reproducible in: 2023.2.0a17, 6000.0.34f1, 6000.1.0b2
Not reproducible in: 2021.3.47f1, 2022.3.56f1, 2023.2.0a16
Reproducible on: macOS 15.2 (M1 Pro), Windows 10
Not reproducible on: No other environments tested
Notes:
- Warning can be stopped from getting logged constantly if any of the created scripts are deleted
- Sometimes the warnings can stop logging by themselves