Skip to main content
Associate II
August 6, 2025
Question

random file open when run the code

  • August 6, 2025
  • 3 replies
  • 676 views

Hello

im trying to run the code , but in the CUbeIDE there are multiple files are opening and pointing to some coding , its hazzle , tried to find a direct answer , ow to avoid this jumping file when run the code.

3 replies

TDK
Super User
August 6, 2025

It's annoying and there's no way to fix this.

 

"If you feel a post has answered your question, please click ""Accept as Solution""."
ThslAuthor
Associate II
August 6, 2025

oh 

Thank you for the information. I see—I'm currently using version 1.18. Does the new version exhibit the same behavior? It’s quite inconvenient during run and debugging, as the cursor jumps to different files and unrelated code locations. We then have to manually navigate back to the main file, which disrupts the workflow. Has ST acknowledged this issue, or are there any plans to address it in upcoming releases?

 

TDK
Super User
August 6, 2025

It is talked about occasionally. I doubt it will ever be fixed.

@mattias norlander Any plans to fix this?

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrew Neil
Super User
August 6, 2025

This is a long-standing and well-known issue:

Annoying open random file when I run my project

random file open when run the code

Jumping to random file after pressing Run button

etc, etc, etc, ...

 

It's not really random - it's the IDE going through the startup process before it reaches main().

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mattias norlander
ST Employee
August 7, 2025

Thanks for looping me in @TDK!

This is probably the most annoying bug we have in the Eclipse/CDT based STM32CubeIDE today. The issue has existed since v1.0. We did some analysis a few years ago on how to fix this. We brought up the issue in the monthly  community meetings with the Eclipse/CDT community experts. We could not find a simple fix that could be up-streamed. The launch sequence of our debug stack does not work well with Eclipse/CDT framework. 

Today the dev-team is fully focused on de-coupling CubeMX from CubeIDE tools (into stand-alone tools). I consider this higher priority for reasons mentioned in this thread (there are more reasons). Once the split of the tools is completed and matured, we can re-assess priorities and possibly try to attack this issue again. No promises made.  

As you know we are today focusing on VS Code and an accompanying growing CLI offering as our future. This bug does not exist in VS Code

Conclusion: We are aware. We agree that this has been annoying for far too long. But short-term priorities/bandwidth goes to tools split. Then we re-assess.

 

Feel free to challenge us!

TDK
Super User
August 7, 2025

Thanks for the explanation, @mattias norlander !

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