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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
Add comment