cancel
Showing results for 
Search instead for 
Did you mean: 

Jumping to random file after pressing Run button

GeneralTao
Associate II

Hello. When I press to Run (Run main.c) button, STM32CubeIDE opens random file, possibly, from current repository, for example: startup_stm32l452xx.s, core_cm4.h etc...

Code is loading successful, but this side effect bothers me.

I would like to disable this function. How can I do it?

If you need more information about this behavior please, ask.

Thank you for reading.

131 REPLIES 131

Not working... If you do that, the only difference is that Eclipse still opens random files but without loading them, only showing a gray screen with:

AAlis23_0-1741531387858.png

Better than opening random files (since you can't accidentally change anything while writing), but it's not a solution.

 

overlaine
Associate

Same problem on OSX:

Version: 1.18.0
Build: 24413_20250227_1633 (UTC)

I can resolve this issue by disabling Live Expression in the Debugger settings (Misc).

CubeIDE_Debugger.png

Sakvoyage
Associate II

It still opens some random files on Debug, even when no exceptions happens. Very annoying. 

padawan
Senior II

The annoying thing is that the thread has been displayed as ‘solved’ for 5 years.

But it's not solved.

They wanted to solve it ‘asap’. (asap> never)
Padawan

Yes, it's the worst bug in Eclipse and also "dangerous" because sometimes while you're editing, it randomly opens a file, puts the focus on it, and you end up editing it by mistake. Usually you notice it, but it has happened to me that I didn't, and then I got compile errors because I had typed something random in that file. They MUST fix it NOW!

Sakvoyage
Associate II

I guess its time to give JetBrains Clion IDE a shot. VS Code also has STM32 plugin now.

Gaston_78
Associate II

We could open more Tickets around this topic. or send emails to support...
VScode us working but still it has any other kind of problems, so there's no any comfortable IDE platform for working with ST.. Everything around ST looks full of software bugs, ashame

Yes, just like when using the IDE or any other ST software product, it's easy to find a bug or a poor solution to a problem every few hours of use. Honestly, I sometimes can't understand how I spot things that are poorly done and no one has noticed or fixed them yet.

Gaston_78
Associate II

When I press to Run (Run main.c) button, STM32CubeIDE

OPENS RANDOM TABS FILE and CHANGE FOCUS.
This is happening since last 7 YEARS !!!!! Come on !!!

I ve opened a new Ticket .. tight now.. please support it. Maybe with a new one without "solution" somebody start to do something.
https://community.st.com/t5/stm32cubeide-mcus/opens-random-tabs-during-run-programming-in-stm32cubeide/td-p/798139