Search Issue Tracker
Fixed in 1.0.10
Votes
0
Found in [Package]
1.0.9
Issue ID
1152149
Regression
Yes
[Packman] Visual Studio 2015 opens up instead of 2017 on updating "Visual Studio Editor" package.
Visual Studio 2015 opens up instead of 2017 on updating "Visual Studio Editor Package to 1.0.9." and exceptions are thrown in the Unity console.
Steps to repro:
1. Open the attached project.
2. Edit > Preferences > External Tools.
3. Set External Script Editor to Visual Studio 2017.
4. Windows > PackageManager > Visual Studio Editor.
5. Select Package "1.0.9" and click on Update.
6. Double click on Test.cs script
Actual Result:
The script opens in Visual Studio 2015 with exceptions in the Unity console.
Expected Result:
The script opens in Visual Studio 2017 without any error in the Unity console.
Reproducible with Package:
1.0.9.
Working Fine with Package:
1.0.5, 1.0.3.
Tested in Unity Version:
2019.2.0b1, 2019.3.0a2.
Environment:
Windows.
Stack trace:
Exception thrown while invoking [OnOpenAssetAttribute] method 'Unity.CodeEditor.CodeEditor:OnOpenAsset (int,int,int)' : InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <b7efe7e6e548497fac3c4a6049a0a4b6>:0)
VisualStudioEditor.VSEditor.OpenWindowsApp (System.String path, System.Int32 line) (at library/packagecache/com.unity.ide.visualstudio@1.0.9/editor/vseditor.cs:187)
VisualStudioEditor.VSEditor.OpenProject (System.String path, System.Int32 line, System.Int32 column) (at library/packagecache/com.unity.ide.visualstudio@1.0.9/editor/vseditor.cs:179)
Unity.CodeEditor.CodeEditor.OnOpenAsset (System.Int32 instanceID, System.Int32 line, System.Int32 column) (at C:/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:56)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <b7efe7e6e548497fac3c4a6049a0a4b6>:0)
VisualStudioEditor.VSEditor.OpenWindowsApp (System.String path, System.Int32 line) (at library/packagecache/com.unity.ide.visualstudio@1.0.9/editor/vseditor.cs:187)
VisualStudioEditor.VSEditor.OpenProject (System.String path, System.Int32 line, System.Int32 column) (at library/packagecache/com.unity.ide.visualstudio@1.0.9/editor/vseditor.cs:179)
Unity.CodeEditor.CodeEditor.OpenFileAtLineColumn (System.String path, System.Int32 line, System.Int32 column) (at C:/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:31)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- SHADERPASS has incorrect value when using Shader Graph for Built-In target
- [VFX] Gizmo still incorrectly rendered for a hidden property
- Nested object label indentation is incorrect when using the UI Toolkit Inspector
- Crash on tlsf_free when UI Elements are moved to the side by scrolling
- Setting VideoPlayer.time and pausing results in incorrect player.frame values
Add comment