Home Game Development visual studio – Can’t start Unity project, none of the scripts load and materials are pink: JSON parse error: The document is empty

visual studio – Can’t start Unity project, none of the scripts load and materials are pink: JSON parse error: The document is empty

0
visual studio – Can’t start Unity project, none of the scripts load and materials are pink: JSON parse error: The document is empty

[ad_1]

I am trying to open a project from a company, the problem is, nobody has this problem except me, so one can replicate it.

When i open the project i get the following issues:

enter image description here

There seems to be a file that it cannot be parsed, which makes none of the components to be loaded, an a visual studio solution to not be created. I do not have any sln’s, so i cannot make or edit any scripts.

I have both Visual Studio Editor and Visual Studio Code Editor. Everytime i tried to reinstall any of these, the JSON parse error would pop up again.

When i go to External Tools in Preferences, Microsoft Visual Studio shows as (Internal) instead of it’s actual version.enter image description here

My theory is that this JSON file error, that i cannot track what file is from, does not let me generate any csproj or sln, which does not let me start the project. Regenerate project files is also not an option either.

This is the full error, but i cannot make anything out of it.

ArgumentException: JSON parse error: The document is empty.
UnityEditor.EditorJsonUtility.FromJsonOverwrite (System.String json, System.Object objectToOverwrite) (at :0)
UnityEditor.Scripting.ScriptCompilation.UnityBeeDriver.RecreateDagDirectoryIfNeeded (NiceIO.NPath dagDirectory) (at :0)
UnityEditor.Scripting.ScriptCompilation.UnityBeeDriver.BuildRequestFor (Bee.BeeDriver.RunnableProgram buildProgram, System.String dagName, System.String dagDirectory, System.Boolean useScriptUpdater, System.String projectDirectory, UnityEditor.Scripting.ScriptCompilation.ILPostProcessingProgram ilpp, UnityEditor.Scripting.ScriptCompilation.UnityBeeDriver+CacheMode cacheMode, Bee.BeeDriver.StdOutMode stdoutMode, Bee.BeeDriver.RunnableProgram beeBackendProgram) (at :0)
UnityEditor.Scripting.ScriptCompilation.UnityBeeDriver.BuildRequestFor (Bee.BeeDriver.RunnableProgram buildProgram, UnityEditor.Scripting.ScriptCompilation.EditorCompilation editorCompilation, System.String dagName, UnityEditor.Scripting.ScriptCompilation.UnityBeeDriver+CacheMode cacheMode, System.String dagDirectory, System.Boolean useScriptUpdater) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScriptsWithSettings (UnityEditor.Scripting.ScriptCompilation.ScriptAssemblySettings scriptAssemblySettings) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions editorScriptCompilationOptions, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform, System.Int32 subtarget, System.String[] extraScriptingDefines) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform, System.Int32 subtarget, System.String[] extraScriptingDefines, System.Boolean allowBlocking) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.TickCompilationPipeline (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform, System.Int32 subtarget, System.String[] extraScriptingDefines, System.Boolean allowBlocking) (at :0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:TickCompilationPipeline(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget, Int32, String[], Boolean)

Starting other projects seem to work, but this one specifically just doesn’t. I tried reinstalling the unity version (2022.3.5), reinstalling visual studio, the visual studio tools for unity on both ends, and nothing works.

Does anyone know what this could be? thanks in advance!

[ad_2]