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
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
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.