Search Issue Tracker

Fixed in 1.1.2

Votes

0

Found in [Package]

1.0.9

Issue ID

1152463

Regression

Yes

[Packman] "InvalidOperationException" is thrown on opening package.json file from the Editor

Package: Visual Studio

-

"InvalidOperationException" is thrown on opening package file from the Editor

Steps to Reproduce:

1. Create a new project with 2D Template
2. Select Project Window > Packages > Visual Studio Editor > package.json
3. Double click on it to open

Actual Result: "InvalidOperationException" is thrown in the editor

Expected Result: package file opens up

Occurring on:
2019.2.0b1, 2019.2.0a14, 2019.2.0a12

Working Fine on:
2019.2.0a11

Environment:
Mac10.14 and Windows 10

Note: Occurring only with 2D Template

StackTrace:
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)

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.