Hi folks,
today VSCode suddenly started to throw errors when OmniSharp is loading. Auto-formatting is not working anymore, also there is no indicator on a tab if the file has unsaved changes. When loading, Omnisharp is complaining about not being able to resolve some assemblies. There are actually no files at the locations where OmniSharp is looking for them:
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Assembly-CSharp-firstpass.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\FullscreenEditor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinInspector.CompatibilityLayer.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinInspector.CompatibilityLayer.Editor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinValidator.dll'
[info]: OmniSharp.MSBuild.ProjectManager
Update project: Assembly-CSharp-firstpass
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\FullscreenEditor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinInspector.CompatibilityLayer.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinInspector.CompatibilityLayer.Editor.dll'
[warn]: OmniSharp.MSBuild.ProjectManager
Unable to resolve assembly 'c:\Projects\WickedLands\Temp\bin\Debug\Sirenix.OdinValidator.dll'
I did not change any settings in Unity but only fixed some bugs and added some a few new scripts. I’m on 1.1.3 of the Visual Studio Code Editor package as 1.1.4 does not seem to work as well (see here ). I deleted the cs project files and restarted Unity, reinstalled the VSCode C# extension, reverted my changes that I did, switched the API compatibility level to 4.x and back, switched between different versions of the Visual Studio Code Editor package, updated to the latest release of OmniSharp (as suggested here ), sacrificed some cookies to the god of game development while jumping on one leg, but no combination of these (and some more) things did help.
Any help is greatly appreciated!