i was getting the same error too a few min ago, managed to fix it by closing the engine and building the code from visual studio. then opened the engine and the code would build just fine from there too
ERROR: Unable to patch action graph - unexpected executable in compile action (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe)
[Edit 1]
Iām getting the same error in UE 5.0.0 release. (Not Early Access or Preview)
PS: Using Jetbrains Rider IDE and have Rider Link plugin installed in the game.
[Edit 2]
I got it working by Running the engine from my IDE.
Got the idea after reading another post in forum. Someone got it working after using āQuick Restartā button which can be enabled if you disable instancing form Settings. Link to post for Troubleshooting Live Coding.
Can you please explain how to run the engine from within the IDE? I am having the EXACT same problem as you had and itās driving me crazy!
EDIT: Nevermind. I figured it out. You just click the āRunā button in the top right corner of Rider. I just didnāt see it. Itās actually working now! Thank you!
Unfortunately, I have exactly the same problem with UE5.0.0 (final version).
First, I had the
ERROR: Unhandled exception: Dependency file āā¦GameModeBase.cpp.jsonā version (ā1.2ā) is not supported version error with Visual Studio 2022, then I downgraded to VS 2019, deleted the Intermediate folder, regenerated the solution with rightclicking the uproject file, then I had this ERROR: Unable to patch action graph - unexpected executable in compile action (C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\rc.exe)
but only in the Live Coding screen when I start the build process from UE5.
When I start the build in VS2019, itās successful. I am following Alexandra Kropovaās Unreal Master C++ Class tutorial, I am an experienced C++ programmer, but so far I wasnāt able to make my project running.
I had this problem when moving my project files from one folder to another. I donāt know if that was what you did, but if it was here it is what worked for me:
First thing I did: I had to search in every project file that had the old directory pointing to and change it to the new directory.
You can search for it in VS Code using the Edit > Replace in files.
Example:
Second thing I did was to run again the build directly from the VS Code in:
Terminal ā Run Build Task
Also, I had to choose the āEditor Win64 Development Buildā option to work.
After that, I reopened the UE Editor and everything was working just fine, including the Live Code.
to be honest I am not sure what fixed it for me but I also did the restart which still showed the error. Then I closed the UE editor had the solution build from within rider and then launched the editor from rider. I donāt know why it bogged it in the first place but rebuilding and then starting from rider seemed to have done the trick.
I was stuck with this issue for a day and tried every method possible on the net, turns out I had to click on āProjectEditor Win64 Development Buildā instead of āProject Win64 Development Buildā :'DDDDD
If you are using rider with riderlink plugin installed and live-coding being enable, you will have to click the āRun/Debugā button, the triangle one or the bug in rider to run unreal editor.
Then you can use live-coding or debug c++ code in rider. Itās a little bit complicated though.