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
Comments (1)
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
- Enabling Deep Profiling in Performance Markers Search window breaks Inspector panel buttons when navigating through the marker items
- Dragging selector from selector row background shows preview but does not apply class in UI Builder
- An "InvalidOperationException" error is thrown when TryRemoveItem is used with rebuildTree set to false
- Build fails with IL2CPP error when building on Android platform in a specific project
- Resize to Fit option for Import Activity window's Columns does nothing
basicgoodmorning
May 28, 2019 20:03
Hi,
How did you solve this issue ?
Thanks