Skip to content

Eclipse 2022-09 with ESP-IDF Release v5.0 examples compile problem, not resolving all symbols (IEP-823) #643

@Hoiss

Description

@Hoiss

Describe the bug
No compile possible of any Espressif IDF example project due to unresolved symbols from components directory.

To Reproduce
Steps to reproduce the behavior:

  1. Fresh install of eclipse 2022-09 on Linux (current Ubuntu)
  2. Follow readme to install the ESP-IDF and configure Eclipse with the plugins
  3. create a new Espressif IDF project, chose hello_world as an example
  4. compile the project -> 3 errors:
    Symbol 'CHIP_FEATURE_BLE' could not be resolved hello_world_main.c /hello_world/main line 26 Semantic Error Symbol 'CHIP_FEATURE_BT' could not be resolved hello_world_main.c /hello_world/main line 25 Semantic Error Symbol 'CHIP_FEATURE_EMB_FLASH' could not be resolved hello_world_main.c /hello_world/main line 37 Semantic
    Please note that these symbols in the hello_world_main.c are marked red as not resolvable. But you can follow them by right clicking and Open Declaration.

Expected behavior
Compile without errors, all symbols resolvable

Screenshot:
eclipseerror

Espressif-IDE Product Information:
info.txt

Eclipse Error log:
eclipse.log

Additional example info:
Trying another example (bleprph), it also gives me the following compile error:
CMake Error at /home/trigo/sub/8-ESP32/ESP-IDF/esp-idf-v5.0/tools/cmake/project.cmake:243 (message): Directory specified in EXTRA_COMPONENT_DIRS doesn't exist: /home/trigo/sub/8-ESP32/eclipseworkspace/common/nimble_peripheral_utils Call Stack (most recent call first): /home/trigo/sub/8-ESP32/ESP-IDF/esp-idf-v5.0/tools/cmake/project.cmake:327 (__project_init) CMakeLists.txt:10 (project) bleprph com.espressif.idf.core.internal.CMakeErrorParser CMake Problem
It seems EXTRA_COMPONENT_DIRS is the problem, it points to the wrong directory which indeed doesn't exist.

How to proceed?
I can't compile any code at the moment.
It seems it misses the ESP-IDF components directory as include, I can find the needed files in the /home/trigo/sub/8-ESP32/ESP-IDF/esp-idf-v5.0/components directory.
Is this problem related to Eclipse 2022-09?
Looking around I found some guys added e.g. a missed path in the project properties. But I don't have the option there to set this:
image
Shouldn't it originally work without manual inclusion?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions