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
- "Customize handled extensions" part in the External Tools settings tab is not aligned with other properties
- Editor Diagnostics foldouts do not open when clicked on the foldout title
- [UI Builder] Visual Elements are not placed at the mouse cursor position when Absolute Position Placement is enabled
- "Width" and "Height" text is misaligned with slider ends in Screen Match Mode Parameters section of Panel Settings Asset
- Editor does not quit when Editor is not in focus and any floating window is opened
Add comment