cancel
Showing results for 
Search instead for 
Did you mean: 

�?CubeIDE】Why delete my Src folder ?Why haven't you fix it for so long?

abbb.12
Associate II

Sorry,I really want to curse the CubeIDE/CubeMX development team�?�?�?�?�?�?�?

Because of you, the results of my work are gone three times�?�?�?�?

Not Once,Not Twice ,It is Three,Three,Three�?�?�?�?�?�?

For the first time, I thought I deleted it by mistake.

The second time, I thought my hard drive was broken.

For the third time, I found out that it was CubeIDE!!!

I searched on Google for a long time, and found that other people encountered it, but I didn’t give a solution. It just said it was a BUG. The next version was corrected. Believe it or not, I believe it anyway.

Almost a year has passed, and I found that this is still the case. I have used a lot of IDEs, Only CubeIDE will delete my files. And why not fix it, why?

This time, I have time to find why,.and finally found out that it was caused by clone the project. For example, copy the OBJ_A folder and rename it to OBJ_B, CubeIDE opens OBJ_B, open the ioc file, and modifies some things in CubeMX. Regenerate, Oh Yeah, at the moment of witnessing the miracle, the Core\Src folder in OBJ_A is gone. Like girlfriend who abandoned me, disappeared forever。

The solution is so simple: after copying, delete the .mxproject MX project file in OBJ_B.

CubeMX will recreate it when you open ioc file.

God, for such a simple question, why not fix it soon? Is it difficult to judge the path before opening it? Moreover, even if the path is wrong, why do you delete my files, if you want to delete them, why not put it to the recycle ?Why?

Don't ask me why I want to copy the project, why not create a new one, I have a lot of configuration, can I do it again? Other IDEs can, why not your CubeIDE?

My sincere regards! ! !​

------------------------------------------------------------------------------------------------

�?�自一个开�?�者的愤怒:

抱歉,我真的想问候一下CubeIDE / CubeMX开�?�团队�?�?�?�?�?�?�?�?

因为你们,我的工作�?果消失了三次,硬盘�?��?都找�?回�?�?�?�?

�?是一次,�?是两次,而是三次,三次,三次�?�?�?�?�?�?

第一次,我以为是我自己误删除了。

第二次,我以为是我硬盘�??了。

第三次,我�?�?�现是CubeIDE。

我在谷歌上�?�索了很久,�?�现也有其他人�?�到了,但是,没给出解决办法,�?�是说是BUG,下个版本修正,�?管你们信�?信,�??正我信了

快一年过去了,我�?�现还是这样,我使用了好多IDE,就你们会删除我的文件。而且为什么�?修正它,为什么?

这一次,我有空了,�?�了实验,终于�?�现了,是�?制项目造�?的,例如:OBJ_A 文件夹直接�?制一个,�?新命�??为OBJ_B, CubeIDE 打开OBJ_B,打开ioc文件,CubeMX中修改一些东西,�?新生�?,duang,�?�?奇迹的时刻,OBJ_A中的Core\Src文件夹没了,就�?抛弃你的女朋�?�,永远消失了。

解决办法也简�?�,就是�?制完,删除OBJ_B中的.mxproject MX项目文件。

�?新打开ioc文件,​.mxproject会被�?建。

MD,这么简�?�的一个问题,为什么�?修正,打开�?,判断一下路径很难�?�?而且,就算路径�?对,为啥你�?删除我的文件,你�?删除,放回收站也好呀。

�?�?问我为什么�?�?制项目,为什么�?新建,我一大堆�?置,难�?��?�?�一�??�?�?其他IDE�?�以,为什么你们CubeIDE�?�?�以。

献上我诚挚的问候�?�?�?​

17 REPLIES 17

I agree but sounds here issue is hopefully understood looking at such topic's posts: .mxproject is bad guy if some specific conditions which is project move (Thanks clone or copy or ...). If doing a project move at a point (which is fully valuable if real life) specific attention has to be set to such .mxproject file content.

I'll bring it up to the team. We're trying to make sure these cases shouldn't happen but not all cases have been found yet, it seems.

DavidAlfa
Senior II

I had this issue after updating to v1.5.1. It deleted files in projects that were closed!

It kept happening until I deleted everything related to Cube IDE, CubeMx, and JRE.

That means deleting all cube folders in the user folder and c:\.

It even kept happening until I uninstalled java and reinstalled again.

Not sure if that was the fix or just a lucky shot, but didn't happen again.

But I learned to not trust it, I use eGit and commit everything.

"I use eGit and commit everything" is definitively a good practice ;) whatever software bug or not.

I foresee myself project closing is not preventing at all some piece of IDE to act on (should be but depends how IDE contributions are written). If Eclipse world project closing is mainly aiming to improve runtime thinking hierarchical file search or workspace file indexing.

By then end our project data are files relying on a file system. Even is your project is closed .. still file system under the hood. If some IDE contributions are acting directly to file system not relying on common Eclipse workspace & project APIs ... project closure is not preventing anything.

DavidAlfa
Senior II

Well, for that you can set the git repository to a local folder that's linked to Gdrive or dropbox, or just use github.

That will be bomb-proof.

You know how it is, you start working in something and keep coding for 2 hours without noticing it.

Then suddenly something goes wrong and you lose everything. Then you learn to commit every 2 minutes!

GregKN
Associate II

Hello Nico 2010,

i did the same as you did, exporting my projects without touching them. All src folders were missing in the zip file, because they were deleted by STM32CubeIDE during export. This should never happen. And to blame eclipse for that behavior as others do is not correct. I'm working with several eclipse-based IDEs (e.g. CodeComposerStudio) and none has ever deleted files or folders without asking.

This is a major bug, nothing else.

P.S. I'm really happy for you that your installation is not affected.

@GregKN​ definitively not an Eclipse platform issue here. '.mxproject' file is pure STM metadata, issue here is coming from.

Use CubeIDE like a Bomb:face_with_tears_of_joy: