2020-11-25 08:46 AM
Hi,
I'm seeing some odd behavior with the icon decorators on excluded source files:
This is with STM32CubeIDE v1.4.2
Any ideas?
Thanks
Solved! Go to Solution.
2021-01-12 01:49 AM
This problem was finally solved by changing a setting in the C/C++ indexer.
Window > Preferences > C/C++ General > Indexer:
Selecting "Use active build configuration" makes the excluded resource icon decorators behave as expected.
2020-11-25 09:52 AM
Works for me if 1.5.0 release at least. Decorator is well set in sync. with exclusion & active build configuration.
Maybe some overlapping deorator(s) in your case (have you already some decoration on which may hide exclusion one ?) ?
2020-11-26 03:16 AM
Seems fixed in STM32CubeIDE v1.5.0. Thanks for investigating.
2020-11-26 03:56 AM
First guess was a CDT issue. At least facing same issue if 2020.03 Eclipse / CTD platform.
SM32CubeIDE 1.5.0 is relying now on 2020.06 platform.
2020-12-15 07:05 AM
Can I ask this question again please? I've been using STM32CubeIDE v1.5.0 for a few weeks now with no problems but suddenly the build configurations are no longer showing the correct decorator icons. I've attached a sample minimum project that shows this problem on two different Windows 10 PCs running STM32CubeIDE v1.5.0. The project has two build configurations called "Config1" and "Config2":
The project explorer looks like this when configuration Config1 is selected. The box highlights a source folder that contains excluded resources:
Here's the build output for Config1 showing the resources are correctly excluded:
Here's the build output for Config2 showing the resources are correctly excluded:
...but the project explorer view hasn't changed. It's still showing the excluded resources for Config1 when I expect to see the excluded resources for Config2. I hope someone can repeat this from the attached project and let me know if I'm configuring the project wrong or if there's a problem with STM32CubeIDE. Thanks for any help.
2020-12-15 09:38 AM
According to me common Eclipse behavior here. You not see what you're compiling if Project Tree view but active build configuration setup.
Let's play with active configuration setup (many way but project contextual project menu is good one):
2021-01-12 01:49 AM
This problem was finally solved by changing a setting in the C/C++ indexer.
Window > Preferences > C/C++ General > Indexer:
Selecting "Use active build configuration" makes the excluded resource icon decorators behave as expected.