Ran into the absolute weirdest error today. Can’t replicate anymore but replicated a lot of times before I fixed it permanently.
Running Studio version 22.10.5, made a new project on new Windows framework to demo Studio to a large audience and went with the classic RPAChallenge.
Made a preliminary version, ran it on debug, tested basic functionality and developed the rest of the workflow, ran it on debug again, except this time it ignored all my changes and ran the first version of the code I had compiled and ran.
Ran it through “run” instead of “debug,” and then it ran fine, taking my changes into account.
Later noticed that whenever I made a change to my workflow, when I hit “run” it would compile the project again, but when I hit “debug” it wasn’t recompiling. Due to this, debug would skip over any added activities and would step into activities that were no longer there. And if any properties were changed those were also ignored. This was consistent for “debug project” not working and for “run file” working correctly.
Killed studio, killed all UiPath processes, restarted studio, moved my project around in my directory structure, nothing worked, debug would still not re-compile when I made changes.
Then, I went and just added some random package to the project and clicked debug again, and it recompiled and worked as expected. And since I did that, it works and recompiles consistently upon changes to the project. Can’t replicate error anymore.
Just out of curiosity, does anyone know what the logic is like for UiPath to determine that changes have been made and there’s a need to recompile the project? Why it might be different when running from debug vs run?