STM32CubeIDE: Icon Decorators: exclude resource from build
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 8:46 AM
Hi,
I'm seeing some odd behavior with the icon decorators on excluded source files:
- Create a new STM32 project with everything as default
- Build the project ... all good
- Add a source file, say demo1.c that contains a single function
- Add another source file, say, demo2.c, that contains a single function
- Create two new build configurations, say, Demo1 and Demo2
- Set Demo1 as the active configuration and exclude resource demo2.c
- Set Demo2 as the active configuration and exclude demo1.c
- Build the Demo1 configuration ... look in the console output to prove it built demo1.c and excluded demo2.c
- Build the Demo2 configuration ... look in the console output to prove it built demo2.c and excluded demo1.c
- ...but the icon decorators are not showing the excluded resources
This is with STM32CubeIDE v1.4.2
Any ideas?
Thanks
Solved! Go to Solution.
- Labels:
-
STM32CubeIDE
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-12 1: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-25 9: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 ?) ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-26 3:16 AM
Seems fixed in STM32CubeIDE v1.5.0. Thanks for investigating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-26 3: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-15 7: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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-12-15 9: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):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-01-12 1: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.
