cancel
Showing results for 
Search instead for 
Did you mean: 

CubeIDE 2.1.0 always builds *all* files

kekon
Associate III

I've just installed the new STM32CubeIDE 2.1.0 and I came across some issues that didn't exist in previous versions.

First, I noticed that the compiler always compiles all the source files even though only one source file was modified. 

I have large project with many source files and it takes about 2 minutes to compile all files. It's very annoying.

Second, when launchinig debug session all the source files are compiled again. It didn't work that way in previous versions of STM32CubeIDE. If the files were compiled previously, the debug session was launched immediately.

Is it possible to change this behavior but turning off some options or do I have to install older version of STM32CubeIDE ?

 

19 REPLIES 19

As I answered in the other post, I found that disabling "Refresh and poll using native hook" in workspace settings, make the problem go away.

After the update I got this option enabled by default. 

I was suggested to turn this on to get better performance in last releases but saw the issue and revert back by disable it.

Hello all ,

Thank you @vaualbus for your help .

@kekon could you please try to disable the option "Refresh and poll using native hook" as suggested?

You can find this option under Window → Preferences. In the search field, type "workspace".

IDE.png

I will be waiting for your feedback .

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

It seems to work properly now, thanks a lot !

Just out of curiosity - what does the "Refresh using native hooks or polling" option do ?


@kekon wrote:

what does the "Refresh using native hooks or polling" option do ?


See this description in the other thread.

Also my guess as to why it's happened - perhaps @Ghofrane GSOURI could confirm/deny?

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.

Hello @kekon 

Could you please share your project for further investigation, or at least provide a more detailed scenario that allows us to reproduce the issue?

THX

Ghofrane

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello, 

I've already solved the problem the way you suggested in previous post (written at 2026-03-02 11:57 PM)


@kekon wrote:

Hello, 

I've already solved the problem the way you suggested in previous post (written at 2026-03-02 11:57 PM)


So please accept it as solution.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.
Andrew Neil
Super User

@kekon 

STM32CubeIDE 2.1.1 released - last week; might be worth a try?

@Ghofrane GSOURI should that release fix this issue?

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.

Hi,

I've just installed it, and I'm in the process of testing. There are some issues (but not very important now) with recognizing C++20 (and later versions) syntax by Eclipse. When writing source code for C++ modules for example, all the source code lines are marked as syntax error. Someone said this would never be corrected... Is that true ?

 

I noted that specifically in relation to the topic of this thread - "CubeIDE 2.1.0 always builds *all* files".

 

If you want to raise other issues, please start a new thread.

But note: https://community.st.com/t5/stm32cubeide-mcus/c-c-indexer-and-compilers-c23-support/m-p/886808/highlight/true#M41397

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.