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.