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

Comments (2)

  1. 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.

  2. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.