Search Issue Tracker
Fixed in 1.0.5
Votes
0
Found in [Package]
1.0.3
Issue ID
1146453
Regression
Yes
Script doesn't open up in visual studio on Mac even if it's selected as the default code editor
Scripts open up in another editor even if Visual Studio is selected as an external code editor.
Steps To Reproduce
1. Create a Project.
2. Project Window> Right click > Create > C# script.
3. Double click on the script to open it up.
Stack Trace:
1. Exception thrown while invoking [OnOpenAssetAttribute] method 'Unity.CodeEditor.CodeEditor:OnOpenAsset (int,int,int)' : Win32Exception: ApplicationName='/Users/macmini6/Downloads/New Unity Project (106)/Library/PackageCache/com.unity.ide.visualstudio@1.0.3/Editor/COMIntegration/Debug/COMIntegration.exe', CommandLine='"/Applications/Visual Studio.app" "/Users/macmini6/Downloads/New Unity Project (106)/Assets/CSharpWithObsolete.cs" "/Users/macmini6/Downloads/New Unity Project (106)/New Unity Project (106).sln" -1', CurrentDirectory='', Native error= Access denied
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <d465e2b2e5054d2787d6364114c43446>:0)
System.Diagnostics.Process.Start () (at <d465e2b2e5054d2787d6364114c43446>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
VisualStudioEditor.VSEditor.OpenProject (System.String path, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/build/libcache/Library/PackageCache/com.unity.ide.visualstudio@1.0.3/Editor/VSEditor.cs:394)
Unity.CodeEditor.CodeEditor.OnOpenAsset (System.Int32 instanceID, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:55)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
--------------------------------------------------------------------------------------------------------------------------------------------
2. Win32Exception: ApplicationName='/Users/macmini6/Downloads/New Unity Project (106)/Library/PackageCache/com.unity.ide.visualstudio@1.0.3/Editor/COMIntegration/Debug/COMIntegration.exe', CommandLine='"/Applications/Visual Studio.app" "/Users/macmini6/Downloads/New Unity Project (106)/Assets/CSharpWithObsolete.cs" "/Users/macmini6/Downloads/New Unity Project (106)/New Unity Project (106).sln" -1', CurrentDirectory='', Native error= Access denied
System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) (at <d465e2b2e5054d2787d6364114c43446>:0)
System.Diagnostics.Process.Start () (at <d465e2b2e5054d2787d6364114c43446>:0)
(wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
VisualStudioEditor.VSEditor.OpenProject (System.String path, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/build/libcache/Library/PackageCache/com.unity.ide.visualstudio@1.0.3/Editor/VSEditor.cs:394)
Unity.CodeEditor.CodeEditor.OpenFileAtLineColumn (System.String path, System.Int32 line, System.Int32 column) (at /Users/builduser/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:31)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Expected Result: Visual Studio opens up.
Observed Result: Another code editor other than visual studio opens up.
Reproducible On: 2019.3.0a1(Trunk), 2019.2.0a12
Not Reproducible On: 2019.2.0a11
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
- NullReferenceException is thrown when creating the TextMeshPro component and entering the Play Mode without importing TMP Essentials
- [Linux] Player crash on Shader::SRPBatcherInfoSetup when opening player build
- [Android] FPS does not match the targeted FPS when it is set with Application.targetFrameRate
- RenderPipelineManager.activeRenderPipelineTypeChanged does not detect changes when changing the Render Pipeline Asset outside of Play Mode
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
basicgoodmorning
May 28, 2019 20:03
Hi,
How did you solve this issue ?
Thanks