Search Issue Tracker
Fix In Review for 2022.2.X
Votes
1
Found in
2019.4
2020.3
2020.3.26f1
2021.3
2022.1
2022.2
Issue ID
1405031
Regression
No
Code editor does not open the relevant script file when double-clicking an error in the Console
How to reproduce:
1. Open the user's attached project
2. Open the Console (Window -> General -> Console)
3. Double-click the System.Exception error
4. Observe the opened Rider window
Expected result: Code editor opens to the NewBehaviourScript.cs file
Actual result: Code editor does not open to the NewBehaviourScript.cs file
Reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.3.0f1, 2022.1.0b16, 2022.2.0a10
Comments (2)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
StellarVeil
Aug 09, 2022 11:19
A rather annoying small thing for work iteration and quality of life to be honest...
van800
Apr 25, 2022 10:41
Initially reported in as RIDER-74936 in youtrack.jetbrains.com
In the attached project there is such code:
```
[InitializeOnLoad]
public class NewBehaviourScript
{
static NewBehaviourScript()
{
throw new Exception("");
}
}
```
It produces the following error in the Unity console
```
System.Exception
at NewBehaviourScript..cctor () [0x00001] in /home/ivan-shakhov/Work/com.unity.ide.rider/Assets/NewBehaviourScript.cs:13
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes (System.Type[]) (at /home/bokken/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:138)
```
Double click on it should open `NewBehaviourScript.cs:13 `, but it tries to open `EditorAssemblies.cs:138` instead.