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
- "GetPreferedValue" returns max value when using auto-sizing
- UI Builder doesn't update the style sheet when using "Extract inline style" right-click option
- “Assertion failed on expression” errors thrown when undoing Nodes creation with keyboard shortcut
- Crash on various stack traces when using Texture2D.CreateExternalTexture() while rendering
- Clicking on section text in Node Library > Context folder throws NullReferenceException errors
basicgoodmorning
May 28, 2019 20:03
Hi,
How did you solve this issue ?
Thanks