Build error from the moment i make a (simple) change in c++

Hey guys, from the moment i make change in c++, for example a boolean from true to false or somehing like that. When i want to build i get this error:

The command ““C:\Program Files\Epic Games\UE_5.4\Engine\Build\BatchFiles\Build.bat” ChuckleTheChickenEditor Win64 DebugGame -Project=“C:\Users\davym\Desktop\ChuckleTheChicken\ChuckleTheChicken\ChuckleTheChicken.uproject” -WaitMutex -FromMsBuild -architecture=x64” exited with code 6.

I have deleted bin, saved, vs,.. folders and regenerate project files. After this, it compiles. (when i dont make changes in c++) but when i make one, it get the error above.

Someone have a solution for this?

Thanks in advance

Make sure the editor is closed when you compile manually. I noticed it says DebugGame, try changing the target to Development Editor X64 in visual studio and see if you have the same issue.