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
- “FocusController has unprocessed focus events.” warnings are thrown after adding iOS, tvOS or visionOS Build Profiles
- Holes and different colors appear on default Tree Materials after applying them to the Tree GameObject and undoing changes
- Error indicating that the Text Asset Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
- Documentation installation shows "Install failed: Validation Failed" when installing Android Build Support module
- Error indicating that the Package Manifest Importer hasn't been disposed properly is logged when switching Importer Type in a Focused Inspector
basicgoodmorning
May 28, 2019 20:03
Hi,
How did you solve this issue ?
Thanks