VSCode Index Out Of Range On New Project (Unity 2019.3.0f6)
I installed the newest version of Unity 2019.3.0f6. As soon as I loaded Unity, I get this message in the console.
IndexOutOfRangeException: Index was outside the bounds of the array. VSCodeEditor.ProjectGeneration.b__25_0 (System.String asset) (at Library/PackageCache/com.unity.ide.vscode@1.1.4/Editor/ProjectGeneration/ProjectGeneration.cs:175)
It has to do with v1.1.4 of Visual Studio Code. The code is way too complex for me. But I found an easy fix. Goto your package manager, and find "Visual Studio Code Editor", click "See all versions" and update to v1.1.3. This fixes it.
Visual Studio Code v1.1.4 package says "2019.3 verified" but clearly it's not.
Answer by Bdiebeak · Feb 04, 2020 at 10:30 AM
You should downgrade to 1.1.3 version of VSCodeEditor. Go to: Window -> Package Manager -> In Project -> Visual Studio Code Editor (click left triangle) -> See all versions -> 1.1.3 -> Update to 1.1.3.
For me it doesn't fix it. And it still says 1.1.4 even though I have updated to 1.1.3
Answer by ramonster1986 · May 14, 2020 at 09:56 AM
For anyone that still arrives at this post: using 1.2.0 of the vscode package fixed it too for me.
Go to: Window -> Package Manager -> In Project -> Visual Studio Code Editor (click left triangle) 1.2.0 -> Update to 1.2.0.
Thx for the help. For some reason, this helped my Vscode C-sharp CS234 issues of not identifying namespace. But how is this unrelated topic connected to my issues?
Your answer
Follow this Question
Related Questions
Files under "Packages" not available inside vscode 0 Answers
Transform not updating 0 Answers
Unable to install a package via Nuget in Visual Studio 0 Answers
Missing MasterServer.exe 0 Answers
Photon VS Error 0 Answers