Eclipse Highlighter Not Seeing Project Defines From New Configuration

Asked by Andrew Neil

I am using Eclipse with GCC ARM Embedded - as described here:

http://gnuarmeclipse.livius.net/blog/install

(now redirects to http://gnuarmeclipse.github.io/ )

When I create a Project, the syntax highlighting correctly shows disabled #if conditional sections based on the settings in

Project Properties > Cross ARM C Compiler > Preprocessor > Defined symbols

When I create a new Build Configuration, and set that as the Active configuration, the highlighting continues to use the settings from the original configuration!

Closing & re-opening Eclipse; Clean; Refresh; Rebuild; Re-scanning the Index; Freshening All Files - none of these makes any difference!

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Jonathan Dumaresq
Solved:
Last query:
Last reply:
Revision history for this message
Thomas Preud'homme (thomas-preudhomme) said :
#1

Hi Andrew,

This project is only concerned with the ARM toolchain which does not include Eclipse. I therefore suggest you to ask again your question on an Eclipse support forum where you are more likely to find an answer.

Best regards.

Revision history for this message
Best Jonathan Dumaresq (jdumaresq) said :
#2

Hi Andrew,

Look into your indexer settings. You must use the "use active build configuration" setting.

Best Regards.

Revision history for this message
Andrew Neil (u-upuntu-s) said :
#3

@Thomas: Fair point - just wondering if any here had come across the issue in context.

@Jonathan: Thanks - that looks like exactly it!

Why would anyone want the indexer to use a configuration other than the Active one?!
(which appears to be the default)

For the benefit of anyone else reading this, note that you have the option of making this project-specific or global (Workspace).

Revision history for this message
Andrew Neil (u-upuntu-s) said :
#4

@Jonathan: Yes - that's the answer.

many thanks!

Revision history for this message
Andrew Neil (u-upuntu-s) said :
#5

Thanks Jonathan Dumaresq, that solved my question.