idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

Version 2.6.0 ESP-IDF Eclipse plugin still has indexer issues (IEP-752)

Open mbratch opened this issue 2 years ago • 3 comments

I simply cannot get rid of the myriad of GUI C++ errors in many of my project files. The project compiles fine, so the flagged issues are falsely claimed problems. I just upgraded to 2.6.0 of the plugin but the problem still persists.

Here's just one example below. Note all of the red indicators on the scroll bar. The specific error on the highlighted line is "Member declaration not found". The member is however defined in one of the included header files. In some cases, it claims it can't find one of the ESP-IDF standard header files (e.g., "esp_adc_cal.h") but as I say, it builds fine, so it can clearly find it for the build and the file exists.

image

I've tried doing a fullclean and every command available under the C/C++ Indexer menu item and nothing fixes it. It's been very frustrating because a lot of the great GUI features such as auto-completion or looking up a function or method simply don't work if it thinks there's an error associated with it.

To reproduce, I just have to open my project and observe.

Expected behavior I would expect reindexing at least to clear the errors. This actually used to work many months ago.... that is, I would get the false erros but used to be able to clear them with reindexing. THis hasn't worked in a long time.

Environment Information: See attached file. EclipseConfig.txt

ESP-IDF Tools Information: The comand "Help > Espressif Tools Manager > List Installed Tools" doesn't exist. I used "Espressif > ESP-IDF Tool Manager > List installed tools":

Executing C:\Users\mdbra\AppData\Local\Programs\Python\Python39\python.exe C:\Users\mdbra.espressif\frameworks\esp-idf-v4.4.2\tools\idf_tools.py list

  • xtensa-esp32-elf: Toolchain for Xtensa (ESP32) based on GCC
    • esp-2021r2-patch3-8.4.0 (recommended, installed)
  • xtensa-esp32s2-elf: Toolchain for Xtensa (ESP32-S2) based on GCC
    • esp-2021r2-patch3-8.4.0 (recommended, installed)
  • xtensa-esp32s3-elf: Toolchain for Xtensa (ESP32-S3) based on GCC
    • esp-2021r2-patch3-8.4.0 (recommended, installed)
  • xtensa-clang: LLVM for Xtensa (ESP32, ESP32-S2) based on clang (optional)
    • 12.0.1-d9341b81fc (recommended, installed)
  • riscv32-esp-elf: Toolchain for 32-bit RISC-V based on GCC
    • esp-2021r2-patch3-8.4.0 (recommended, installed)
  • esp32ulp-elf: Toolchain for ESP32 ULP coprocessor
    • 2.28.51-esp-20191205 (recommended, installed)
  • esp32s2ulp-elf: Toolchain for ESP32-S2 and ESP32-S3 ULP coprocessors
    • 2.28.51-esp-20191205 (recommended, installed)
  • cmake: CMake build system
    • 3.23.1 (recommended, installed)
  • openocd-esp32: OpenOCD for ESP32
    • v0.11.0-esp32-20220411 (recommended, installed)
  • ninja: Ninja build system
    • 1.10.2 (recommended, installed)
  • idf-exe: IDF wrapper tool for Windows
    • 1.0.3 (recommended, installed)
  • ccache: Ccache (compiler cache)
    • 4.3 (recommended, installed)
  • dfu-util: dfu-util (Device Firmware Upgrade Utilities)
    • 0.9 (recommended, installed)

IDF Eclipse Plugin Version: 2.6.0

Eclipse Error log: Attached EclipseError.log

mbratch avatar Aug 21 '22 19:08 mbratch