Skip to main content
STria
Associate
May 28, 2019
Question

STM32CUBEIDE delete all of my files and folder

  • May 28, 2019
  • 8 replies
  • 8950 views

When I try to create stm32 project using CUBEIDE, I accidentally click "cancel". Then CUBEIDE delete the folder generated by them which it is good. After that, it delete all of my files inside one higher level parent directory. WTF!! This is severe bug. Also it can't be restored easily (nothing in recycle bin). Don't ask about using recovery program, some file is already corrupted (I already try it)

Imagine that you create file on C:\, does it will delete all of my files in drive C: how severe it is..:loudly_crying_face:

This topic has been closed for replies.

8 replies

Markus GIRDLAND
ST Employee
May 28, 2019

I'm not sure how I can reproduce this.

There are a few times I can click "Cancel" when creating a project but never after I've clicked the "Next" or "Finish" button.

Where in the flow did you click "Cancel"?

Tesla DeLorean
Guru
May 28, 2019

This type of failure is reported with sufficient frequency that clearly the "do no harm" edict has failed. In a system which is going to do a wholesale replacement it's is probably advisable for the tool to automatically archive files, so the user has recovery/rollback options, even if they blew through all the stop and warning signs.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ixox
Associate
May 28, 2019

Aouch that just happened to me :downcast_face_with_sweat:

I imported a TrueStudio 9.3 project into stm32cubeide 1.0.0.

Everything was fine until i made a modification in CubeMx and regenerated code !!!

0690X000008a6nNQAQ.png

I had a code generation error then All my files and folder were deleted.

Yes i have a recent backup but that's really frightening !

Xavier

Markus GIRDLAND
ST Employee
May 29, 2019

This seems to be two different issues, one at project creation and one when you generate new code because of changes to the .ioc file. Perhaps they have the same root cause, I'm not sure.

As @Community member​ mentioned I believe some sort of an archive function similar to the importer might be good.

Do you have a way to reliably recreate the problem? Either if you have a project where it happens you and you're able to send it to me or if you can write a step-by-step.

Ixox
Associate
May 30, 2019

Thanks Markus for your reply.

It happened once just after i installed stm32cubeide.

It didn't happen again since.

Doesn't the error message help you ? I have no idea why i had it but it seems linked to my project folder deletion.

Ixox
Associate
June 8, 2019

This just happened to me a second time.

My saturday afternoon of work all LOST !

I would say 4 or 5 houres !!

Once again, code generation -> error -> EACH SINGLE FILES OF THE PROJECT FOLDER has been deleted.

The ioc file is recreated !!!!!

Ixox
Associate
June 8, 2019

I found a way to reproduce almost everytime time.

I open stm32cubeide with my project.

I edit the cubemx (ioc) file, for example i remove a global interupt on a USART.

Than just after, i directly clik on the hammer ('build' config).

Then a popup shows up asking if i want to generate code. I Just click yest =>>>>> The drama happens.

JJug
Visitor II
August 13, 2019

Hi Markus, check my problem here.

https://community.st.com/s/question/0D50X0000Ap1NYTSQ2/bug-stm32cubeide-deleted-all-my-source-code-generate-code-on-imported-project

I did uninstal 1.7.0 manualy and then tried to build solution. IDE (1.0.2) then asked me to install back 1.7.0 and after that I got message that Ixox posted screenshot up there. After that the code was lost.

Cartu38 OpenDev
Graduate II
October 15, 2019

Sounds lacking firmware packs at a time may have lead to such behavior pain. Definitively a bug.

Sounds some improvements have been done fixing such issue Thanks STM32CubeIDE V1.1.0 just released on st.com

ABucs.1
Visitor II
January 30, 2020

This was happens to me as well; I started today STM32Cube1.2.1 and try to start a new project in my software directory. Due to some proxy settings, the application hangs when try to download STM32L4 pack. As a result all files and folders from software were deleted!!! Just 2 files remain there .project and an ioc file.

I have no recent backup so i assume I lost all projects....

Very serious bug! I'm not sure if I'll continue using STM32Cube IDE.

I'm very disappointed ST!

ABucs.1
Visitor II
January 31, 2020

I've lost all my files and folders from software directory by using for 1'st time STMCubeIDE V1.2.1 by trying to create a new project.

All Keil works gone!

It's a very severe bug! :(

JJug
Visitor II
January 31, 2020

Hope you have backup. Do not restart computer, create a project folder with identical name as your lost project, inside create main.c file, then go to file history tab in windows explorer and check if windows backed up your main.c. This only works with Windows 10 and only if you had file history enabled. It saved me month of work.

They should realy fix this by now.

Tesla DeLorean
Guru
January 31, 2020

If they'd done it properly ALL the stuff would be in the Recycle Bin, which could then be recovered. Any version of Windows from the last decade or more would have facilitated that.

The blind/blanket delete of something is awfully bad form..

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
km.1
Associate
July 7, 2021

Hi,

Yep I just got done by this bug too.

I was changing the .ioc file to a slightly different chip.

I creates a new project, and imported the old one, then I saved this over my original project.

Upon code generation it deleted every single file, including source files, git files, changes to st code in the user section, everything!

And it was permanently deleted, not present in the recycle bin.

This is the worst software on the face of the earth!

Now I must attempt to recover somehow (which is failing) or start from scratch.

Two thumbs down, and one finger up ST.