Skip to content

Inconsistent/incorrect search results and resolution of includes (IEP-1124) #862

@ammaree

Description

@ammaree

I have been having hassles with the plugin over the last 4 months, most of which I have simply ignored or tried to work around, but it is now getting worse. Starting with Eclipse 2023-03/06/09 and with each version of the plugin, religiously updated, I am consistently getting incorrect resolution of definitions.

All my source code starts with the exact same #include "hal_config.h" to ensure the hardware and software platforms are completely defined. Within this header a specific hardware platform and firmware configuration is defined

After upgrading today to Eclipse 2023-12 and Plugin 2.11.1.202310270725 I am nog getting additional problems.
If I do a text search for #define appUSE_ACTUATORS Eclipse finds 11 occurrences but only lists 7 below for selection.
Screenshot 2023-12-06 at 14 54 31

If I use F3 (Find Declarations) it finds 10 and not 11 with the important one (hal_dk41.h) missing:

Screenshot 2023-12-06 at 14 49 12

To make things worse, the process of resolving headers either does not accurately parse the headers or symbols defined and/or does not assign the correct values. Following the chain from 1) the source code to 2) the top level header and then 3) the 2nd level header...
1: Source code:

Screenshot 2023-12-06 at 15 00 46

2: Selection of the correct HW platform header

Screenshot 2023-12-06 at 15 02 52

3: Definitions in the HW platform header

Screenshot 2023-12-06 at 15 04 20

I have COMPLETELY removed all traces of Eclipse and the IDF plugin (including all my project configuration files) multiple times, reinstalled Eclipse according to the web site, symptoms remained the same. The code compiles correctly and functions as expected so I am 100% sure that cMake and the preprocessor/compiler finds the correct headers, definitions and values.

Lastly, the following warning/error occurs consistently:

Screenshot 2023-12-06 at 08 40 15

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions