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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
basicgoodmorning
May 28, 2019 20:03
Hi,
How did you solve this issue ?
Thanks