2024-11-19 10:10 AM
Trying to update a test project from MC Workbench, I get the error "Fail to copy Extra folders" and generation fails.
Log shows:
2024-11-19 12:40:56,300 ERROR [Wb2MxProcess.copyExtraFolders] Fail to copy Extra folders
These are the steps to reproduce:
- Create new project in MC Workbench. I used STEVAL32G4 board
- Save, Generate Project
- Optional - Open in CubeMX, Generate Code
- In CubeIDE, "Import Existing Projects into Workspace". Unchecked "Copy projects into Workspace"
- Importing seems to break it
- Go back to MC Workbench and Generate Project again
Additional:
- If I go back to CubeMX and Generate Code after MC Workbench fail, it will break the project in IDE.
"13:08:48 Build Failed. 2702 errors, 135 warnings. (took 4s.875ms)"
Am I doing something wrong with the import?
Please advise why MC Workbench breaks my project after I import to CubeIDE.
Thank you
Solved! Go to Solution.
2024-11-20 12:44 PM
After much time spent trying different things, I think this is caused by the fact that my project and files are in my synchronized One Drive folder.
Is there a setting in One Drive that causes this, or blocks CubeMX from accessing these folders. The project generates fine for the first time, but breaks after trying to overwrite.
2024-11-20 12:44 PM
After much time spent trying different things, I think this is caused by the fact that my project and files are in my synchronized One Drive folder.
Is there a setting in One Drive that causes this, or blocks CubeMX from accessing these folders. The project generates fine for the first time, but breaks after trying to overwrite.
2024-11-21 01:40 AM
Hi @Frakk2136 ,
could you please try to double-click on the STM32CubeIDE generated ".project" file, this will import directly your whole project without issues.
Otherwise, if you want to import your project into STM32CubeIDE GUI, you should :
- got to File menu -> Open Projects from File System
- Select your STM32CubeIDE folder as Import Source directory
- Finish
Kind regards
2024-11-21 09:06 AM
Thank you,
Unfortunately the problem still exists, it doesn't matter how I open it in the IDE.
After testing I could also reproduce it without opening in the IDE.
So far my solution is to keep my project on Desktop and work out of that folder.
This is most likely some sort of interference between One Drive and CubeMX.
2024-11-27 11:41 AM
After much frustration and trial and error I found a way to stop the fails with One-Drive.
After the first time the project is generated in MC Workbench, I navigate to the project and delete the "ftl" folder.
If I don't the generation will keep failing. By deleting it after it generates for some reason it fixes the failures.
2024-11-28 12:43 AM
Hi @Frakk2136 ,
this is a strange behavior, the ftl folder is mandatory for the project generation, this has not to be deleted.
Regards
2024-11-28 07:51 AM
The ftl folder is regenerated if it is not there. The reason this error occurs is because it "Fail to copy Extra folders", meaning the ftl folder is the extra folder.
I think initially it is generated, One-Drive then synchronizes it, when done a green checkmark appears on the folder icon. I suspect it is this synchronization process that puts some sort of lock on it that prevents MC Workbench copying over it.