Search Issue Tracker

Fixed in 2020.1.X

Votes

0

Found in

2019.2.5f1

2019.2.8f1

Issue ID

1189045

Regression

Yes

[macOS] Exceptions are thrown when trying to open C# script in an external editor

CodeEditors

-

How to reproduce:
1. Create and open a new project
2. Set the 'External Script Editor' to 'TextEdit' (in the Preferences window)
3. Create a new C# script and open it
4. Observe the Console window

Expected result: no exceptions are thrown
Actual result: two exceptions are thrown

Reproducible with: 2019.2.5f1, 2019.2.11f1
Not reproducible with: 2017.4.33f1, 2018.4.12f1, 2019.2.0a1, 2019.2.4f1, 2019.3.0b9, 2020.1.0a11

Thrown exceptions:
1) MissingMethodException: Attempted to access a missing method.
Unity.CodeEditor.CodeEditor.OSOpenFile (System.String appPath, System.String arguments)
2) Exception thrown while invoking [OnOpenAssetAttribute] method ‘Unity.CodeEditor.CodeEditor:OnOpenAsset (int,int,int)’ : MissingMethodException: Attempted to access a missing method.
Unity.CodeEditor.CodeEditor.OSOpenFile (System.String appPath, System.String arguments)

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.