cancel
Showing results for 
Search instead for 
Did you mean: 

Tried connecting to Github, now all source files are gone . . .

DLid.1
Associate II

Hello

I attempted to link my STM32 project with GitHub, following the guide
How to use Github with STM32cubeIDE in 2023 - Shady Electronics

I managed to complete all the steps, but for some reason, I couldn't push my project to the repository.

Initially, I decided to continue without syncing it to GitHub. However, I soon noticed that my entire project has vanished from its folder on my computer.

When I open STM32CubeIDE, I can still access the project, as illustrated here:

DLid1_0-1691321956219.png

Yet, when I navigate to the 'stm_projects' directory on my PC (where STM32CubeIDE indicates it should be), the project is missing:

DLid1_1-1691322009797.png

As evident, only the 'stm32wb5' project is present, which is also visible in the previous image.

When I attempt to compile and debug, an error message from Reset_Handler() states "source file not found". Surprisingly, it still compiles and operates without issues.

DLid1_2-1691322114499.png

Moreover, the GitHub repository I intended to push to doesn't show any record of the project.

DLid1_3-1691322182475.png

I even searched my PC for unique files from the project, like "w25_image.c" displayed in the first image. Sadly, I found no trace of it.

It's also missing from my GitHub. I'm growing increasingly concerned about potentially losing the entire project. Does anyone have insights or suggestions on this?

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

Right click a file -> Properties, then go to the Resources tab and it will show you the location of a file on your computer. That should let you find out where it is.

It's compiling, so it's there somewhere.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
Pavel A.
Evangelist III

Please go to the github web interface and try to find your project there. Do you see your commits and source files?

If it is not there, and it is not on your PC, then... it isn't anywhere ((  A precious experience point unlocked.

Unfortunately, almost every good advice here requires half dozen more advices, on how to do the first one. 

Suggestion: minimize your reliance on eclipse and its plugins. Choose a good, reliable, easy to use git GUI independent of Eclipse and use it.

(unfortunately my favorite git GUI has dumped their free user tier, so cannot recommend them any longer).

TDK
Guru

Right click a file -> Properties, then go to the Resources tab and it will show you the location of a file on your computer. That should let you find out where it is.

It's compiling, so it's there somewhere.

If you feel a post has answered your question, please click "Accept as Solution".
DLid.1
Associate II

Thanks! The project had been moved to AppData -> Roaming -> SPB_Data -> git