I verified Visual Studio which for some reason deleted Unreal. So then I reinstalled Unreal and now I get a different error:
Could not spawn process C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX64\x64\link.exe. Error: 267
Failed to link patch (0.000s) (Exit code: 0xFFFFFFFF)
Yes I have installed C++ on Visual Studio.
Turns out the problem is most likely to be with live coding.
Because everything compiles successfully with visual studio code build tasks and manual compile in unreal.
And yes I did reinstall the engine, visual studio, verified all the files, like 3 times over the past 2 days.
But I have no idea why only live coding has issues…
Still get the same error while using live coding:
Could not spawn process C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX64\x64\link.exe. Error: 267
Failed to link patch (0.000s) (Exit code: 0xFFFFFFFF)