OpenPLC_Editor icon indicating copy to clipboard operation
OpenPLC_Editor copied to clipboard

"Failed to clean the project build folder" error

Open bigjeff5 opened this issue 2 months ago • 2 comments

When recompiling, if I don't manually delete the build folder and all of its contents I get the following error:

Failed to clean the project build folder: C:\Users\username\OneDrive\Documents\PLC Programing\Workspace\FBD Project\build\extra_files Access is denied (Error Code: 13) Try to manually remove the build folder inside your project path if you have issues during compilation

When this happens, nothing can be compiled until you restart OpenPLC. I'm assuming one of the underlying python programs crashes and doesn't recover.

This is on a Windows 10 machine without Admin rights. Admin rights should not be needed, because everything is installed in my user share, but I suspect with admin rights this might not happen. I cannot test this at the moment, however.

I've included one of the bug reports for more info. It looks like the rmtree function in shutils.sys is the one having the issue. bug_report_2024_12_13__07-45-48.txt

bigjeff5 avatar Dec 13 '24 16:12 bigjeff5