Intellisense issue with Arduino ESP32 Project

Sysprogs forums Forums VisualGDB Intellisense issue with Arduino ESP32 Project

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37135
    suremicro
    Participant

    Hi, since upgrading to the Arduino 2.3.8 IDE from 1.8 recently, all VisualGDB Arduino projects show intellisense errors for the ‘default’ libraries – such as Wire or Serial.

    For example, a Wire command such as Wire.begin() the Wire portion is highlighted as an error with “[CLang Intellisense] Error: Use of undeclared identifier ‘Wire'” popup message. All serial commands such as Serial.println() has the Serial in purple and the error underscoring println() with “[CLang Intellisense] Error: No matching member function for call to ‘println'”. This being due to it recognising Serial as a constant.

    With the Clang debugging on hovering over any error, many errors are listed, such as:

    [+1:23:22.460] Previously missing esp_idf_version.h is still missing
    [+1:23:22.460] Previously missing soc/soc_caps.h is still missing
    [+1:23:22.460] Previously missing driver/gpio.h is still missing
    [+1:23:22.460] Previously missing soc/soc_caps.h is still missing
    [+1:23:22.460] Previously missing soc/soc_caps.h is still missing
    [+1:23:22.461] Previously missing soc/gpio_sig_map.h is still missing
    [+1:23:22.462] Previously missing esp_log.h is still missing
    [+1:23:22.462] Previously missing rom/ets_sys.h is still missing
    [+1:23:22.463] Previously missing esp_timer.h is still missing
    [+1:23:22.463] Previously missing freertos/event_groups.h is still missing
    [+1:23:22.463] Previously missing freertos/semphr.h is still missing
    [+1:23:22.464] Previously missing freertos/queue.h is still missing
    [+1:23:22.464] Previously missing freertos/task.h is still missing
    [+1:23:22.464] Previously missing freertos/FreeRTOS.h is still missing
    [+1:23:22.465] Previously missing esp_sleep.h is still missing

    The code still compiles correctly. All the Project Settings are the same as before. I uninstalled Arduino 1.8 before installing the new version.

    Visual Studio 2020 17.14.27, Arduino IDE 2.3.8, Visual GDB 6.0R8 5338, Windows 10

    ESP32 toolchain GCC 13.2.0; GDB 12.1, Arduino esp32 3.3.7

    Any ideas?

     

    • This topic was modified 1 month ago by suremicro.
    #37137
    suremicro
    Participant

    Additional information: The intellisense works for AVR boards and also ESP-IDF projects, it just seems to be an issue with Arduino ESP32.

    I have also uninstalled VisualGDB and Arduino, remove all references and settings I could find and installed both again with the same result.

    #37139
    support
    Keymaster

    Hi,

    No problem, we have found and fixed the root cause. Turns out, the latest version of the ESP32 Arduino package started using the -iprefix/-iwithprefixbefore gcc options to pass include directories to gcc. We have not seen anyone else use them before, so they were not supported by VisualGDB.

    We have added support for the options to this build: VisualGDB-6.1.103.5538.msi. It should now work out-of-the-box.

    #37140
    suremicro
    Participant

    Works perfectly. Thank you for your quick response and support.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.