Search Issue Tracker
Fixed
Fixed in 2021.3.35f1, 2022.3.7f1, 2023.1.8f1, 2023.2.0b4, 2023.3.0a1, 2024.1.0a1
Votes
5
Found in
2021.3.26f1
2022.2.21f1
2023.1.0b18
2023.2.0a16
2024.1.0a1
Issue ID
UUM-36463
Regression
Yes
[Linux] Editor becomes focused when saving a script file in JetBrains Rider
Reproduction steps:
1. Create a new project
2. In the Project view, right-click anywhere > Create > C# Script
3. Open the created script with Jetbrains Rider
4. Add some changes to the C# Script
5. Save the changes
Expected result: Jetbrains Rider stays in focus after saving the changes
Actual result: Unity Editor becomes focused when changes are reloaded
Reproducible with: 2021.3.26f1, 2022.2.21f1, 2023.1.0b18, 2023.2.0a5, 2023.2.0a16
Not reproducible with: 2020.3.48f1, 2023.2.0a1, 2023.2.0a4
Reproducible on: Ubuntu 23.04
Not reproducible on: Ubuntu 22.04, Windows 10 Pro
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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
God0fMagic
Dec 29, 2023 08:50
Hello,
I can see that the issue says fixed on 2023.1.8f1, however I am using that exact unity version and this problem still exists. However, I did not notice this behaviour a few days ago and it only started happening recently. I did not update anything before it start happening.
I am, however using Visual Studio 17.7, not Rider.
Unity used to compile only when I clicked on it. Now it starts compiling and stealing focus whenever I save a script, even if I do not switch to Unity.
senden9
May 23, 2023 12:44
For other people hitting that bug: As a workaround, you can uncheck the "Automatically refresh assets in Unity" setting in Rider. You find that setting under "Settings" -> "Languages & Frameworks" -> "Unity Engine" -> "General" -> "Automatically refresh assets in Unity".
Unity will then only compile assets when you gave it focus. This is a bit annoying because you have to wait there, but less annoying than get your focus stolen every time something is saved.
There is a corresponding issue in the Jetbrains issue tracker but sadly the unity issue tracker forbids links to the jetbrains tracker. If someone want to see it, the issue number on youtrack dot jetbrains dot com is RIDER-58536.