Search Issue Tracker
Won't Fix
Fixed in 2019.4.X
Votes
0
Found in
2019.3.0b1
2019.3.0b2
2020.1.0a2
Issue ID
1189527
Regression
Yes
[Mac] Pop-up warning window stating "The document "X" could not be opened." is thrown when trying to open a script with TextEdit
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 try to open it
Expected result: the script successfully open in TextEdit
Actual result: script does not open, a pop-up warning window is thrown
Reproducible with: 2019.3.0b2, 2019.3.0b6, 2020.1.0a2, 2020.1.0a8
Not reproducible with: 2017.4.33f1, 2018.4.11f1, 2019.2.8f1, 2019.3.0a1, 2019.3.0b1, 2020.1.0a1
Full text of the warning window: "The document "[script name]" could not be opened. You don't have permission. To view or change permissions, select the item in the Finder and choose File > Get Info."
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
Resolution Note (2020.2.X):
Closed as won't fix since TextEdit is an unsupported code editor. If you would like to implement support yourself, you can use the following API:
https://docs.unity3d.com/ScriptReference/Unity.CodeEditor.IExternalCodeEditor.html
Once the interface has been implemented; it can be registered during InitializeOnLoad using the following API:
https://docs.unity3d.com/ScriptReference/Unity.CodeEditor.CodeEditor.Register.html
Resolution Note (fix version 2019.4):
Closed as won't fix since TextEdit is an unsupported code editor. If you would like to implement support yourself, you can use the following API:
https://docs.unity3d.com/ScriptReference/Unity.CodeEditor.IExternalCodeEditor.html
Once the interface has been implemented; it can be registered during InitializeOnLoad using the following API:
https://docs.unity3d.com/ScriptReference/Unity.CodeEditor.CodeEditor.Register.html