Search Issue Tracker
Fixed
Votes
14
Found in [Package]
1.1.4
Issue ID
VSC-8
Regression
Yes
IndexOutOfRangeException is thrown when opening a project with Visual Studio Code set as preferred External Script Editor
How to reproduce:
1. Create and open a project
2. In 'Preferences' > 'External Tools' set Visual Studio Code as your preferred External Script Editor
3. Re-open the project
4. Observe the Console window
Expected result: no errors are thrown
Actual result: IndexOutOfRangeException is thrown
Reproducible with: 2019.2.20f1, 2019.3.0f6, 2020.1.0a22 (1.1.4)
Not reproducible with: 2019.2.20f1, 2019.3.0f6, 2020.1.0a22 (1.0.2, 1.1.2, 1.1.3)
Could not test with: 2017.4.36f1, 2018.4.17f1 (package not available)
Note: in 2019.2.20f1 the issue reproduces after installing the 1.1.4 package version instead of opening the Editor
Thrown exception:
IndexOutOfRangeException: Index was outside the bounds of the array.
VSCodeEditor.ProjectGeneration.<SyncIfNeeded>b__25_0 (System.String asset) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/ProjectGeneration/ProjectGeneration.cs:175)
System.Linq.Enumerable+SelectListIterator`2[TSource,TResult].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () (at <351e49e2a5bf4fd6beabb458ce2255f3>:0)
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
- [Android] [GameActivity] UI is unresponsive when Application Entry Point is set to GameActivity
- [Linux] VR template "Tutorial Player" GameObject becomes blank after entering Play mode
- Editor window minimizes when changing the Layout while using the Windows split-screen function
- Object pools do not reset when re-entering the Play Mode with reload domain disabled
- Performance issue when using Shadow-Casting Lights with Batch Renderer Groups
DrSpritz
Feb 01, 2020 15:36
I have same problem!