I got this error no matter I upgrade an old version project or create a new project.
I’m using Visual Studio 16.6.
Thanks for any help.
Error detecting Visual Studio installations: System.ArgumentException: JSON parse error: Invalid escape character in string.
at (wrapper managed-to-native) UnityEngine.JsonUtility.FromJsonInternal(string,object,System.Type)
at UnityEngine.JsonUtility.FromJson (System.String json, System.Type type) [0x0005c] in <17042f127c734f4fbba6ce912ba37f00>:0
at UnityEngine.JsonUtility.FromJson[T] (System.String json) [0x00001] in <17042f127c734f4fbba6ce912ba37f00>:0
at Microsoft.Unity.VisualStudio.Editor.Discovery+VsWhereResult.FromJson (System.String json) [0x00000] in E:\SiqiLI\Unity Projects\New Unity Project\Library\PackageCache\com.unity.ide.visualstudio@2.0.1\Editor\Discovery.cs:93
at Microsoft.Unity.VisualStudio.Editor.Discovery.QueryVsWhere () [0x0009a] in E:\SiqiLI\Unity Projects\New Unity Project\Library\PackageCache\com.unity.ide.visualstudio@2.0.1\Editor\Discovery.cs:160
at Microsoft.Unity.VisualStudio.Editor.Discovery+d__0.MoveNext () [0x0002e] in E:\SiqiLI\Unity Projects\New Unity Project\Library\PackageCache\com.unity.ide.visualstudio@2.0.1\Editor\Discovery.cs:22
at System.Collections.Generic.LargeArrayBuilder1[T].AddRange (System.Collections.Generic.IEnumerable
1[T] items) [0x0005e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable1[T] source) [0x00033] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable
1[T] source) [0x00018] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor…cctor () [0x00000] in E:\SiqiLI\Unity Projects\New Unity Project\Library\PackageCache\com.unity.ide.visualstudio@2.0.1\Editor\VisualStudioEditor.cs:36
UnityEngine.Debug:Log(Object)
Microsoft.Unity.VisualStudio.Editor.VisualStudioEditor:.cctor() (at Library/PackageCache/com.unity.ide.visualstudio@2.0.1/Editor/VisualStudioEditor.cs:42)
System.Activator:CreateInstance(Type)
Unity.CodeEditor.CodeEditor:get_Current()
Unity.CodeEditor.CodeEditor:get_CurrentEditor()
UnityEditor.VisualStudioIntegration.UnityVSSupport:IsDefaultExternalCodeEditor()