2022-02-03 11:04 PM
Hello,
We have a long-lived project that we develop in Atollic TrueStudio. It contains 4 nested projects; two C/C++ projects, and another two Eclipse projects for web development.
I have tried to import these projects using the "Import/General/Import Atollic TrueSTUDIO Project" feature, and have been mostly successful. (STM32CubeIDE version 1.8.0 from November 2021.)
Unfortunately I can't convert the second of the two C/C++ projects, and I can't figure out why.
The only message that I get is "Fail create backup of project files before conversion."
There is no log that I can find that provides more detail.
I've repeatedly tried with a variety of combination of the projects selected during the import attempt, and always with the same result.
I've noticed that the .project file is copied to .project_org, but the .cproject file is left untouched, suggesting that the .cproject file cannot be copied. The permissions on both files are -rw-rw-r-- for both files.
Is there a way to start STM32CubeIDE so that it provides more detailed information about the cause of this problem?
Thanks.
Solved! Go to Solution.
2022-02-04 06:05 AM
Thanks for those files, without this no chance to understand where the issue was !
Your project is actually defining resources filters:
Means that .cproject file is present on disk but hidden from the IDE scope, so no chance for the converter to proceed.
To get the converter working I had to edit the .project file, remove all <filteredResources>[...]</filteredResources> stuff, and import the project again.
Hope this will resolve your issue too.
2022-02-03 11:25 PM
In your workspace log file (<workspace_path>/.metadata/.log) you should have the related Java Stack Trace of the exception for "Fail create backup of project files before conversion.".
Could you paste it there ?
2022-02-03 11:37 PM
2022-02-03 11:44 PM
2022-02-03 11:45 PM
The converter actually fails because one of the 2 required files, .project and .cproject, is missing.
In your case here, error is about .cproject.
Edit: those files are project description files, internal stuff to get projects working, and storing all C/C++ settings. That is not your issue here but they must not be edited manually.
2022-02-03 11:52 PM
Hi Julien,
The file is not missing, I promise you. It is right there next to the .project file.
2022-02-03 11:54 PM
Here is the output of ls, after the failed attempt to migrate the project:
18:52 $ ls -a
. .. .cproject .gitignore post_build.sh .project .project_org .settings
2022-02-04 12:16 AM
No doubts I trust you ;)
This is indeed really weird, the core platform component behaves like if the file is not there whereas the exceptions above clearly state the file has been well parsed...
Can the project be shared by private message ?
2022-02-04 04:34 AM
Sent. Thank you.
2022-02-04 06:05 AM
Thanks for those files, without this no chance to understand where the issue was !
Your project is actually defining resources filters:
Means that .cproject file is present on disk but hidden from the IDE scope, so no chance for the converter to proceed.
To get the converter working I had to edit the .project file, remove all <filteredResources>[...]</filteredResources> stuff, and import the project again.
Hope this will resolve your issue too.