none
How to fix the includePath issue? RRS feed

  • General discussion

  • Hi, I just started with "code" and cannot fix the includePath problem:

    #include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (/home/MyAccount/.config/Code/User/Raumthermostat/Raumthermostat.ino).
    cannot open source file "limits.h" (dependency of "ESP8266WiFi.h")

    This is the c_cpp_properties.json content:
    {
        "configurations": [
            {
                "name": "Linux",
                "includePath": [
                    "/home/MyAccount.arduino15/packages/esp8266/tools/**",
                    "/home/MyAccount/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/**",
                    "/home/MyAccount/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/libraries/ESP8266WiFi/src",
                    "/home/MyAccount/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/tools/sdk/libc/xtensa-lx106-elf/include"
                ],
                "forcedInclude": [],
                "intelliSenseMode": "gcc-x64",
                "compilerPath": "/usr/bin/gcc",
                "cStandard": "c11",
                "cppStandard": "c++17"
            }
        ],
        "version": 4
    }
    I searched for the limits.h file and found it on different places with different sizes but all places are listed in the c_cpp_properties.json file - either it should be found because of the /** or because the directory is explicitly name.

    /home/MyAccount/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/lib/gcc/xtensa-lx106-elf/4.8.2/include-fixed/limits.h

    /home/MyAccount/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/lib/gcc/xtensa-lx106-elf/4.8.2/install-tools/include/limits.h /home/MyAccount/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/c++/4.8.2/tr1/limits.h /home/MyAccount/.arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/2.5.0-3-20ed2b9/xtensa-lx106-elf/include/limits.h /home/MyAccount/.arduino15/packages/esp8266/hardware/esp8266/2.5.0/tools/sdk/libc/xtensa-lx106-elf/include/limits.h

    In Ctrl+Shift+P: Arduino Boardmanager I selected and installed esp8266 2.5.0 package

    What can I do?

    • Edited by HobbyDev01 Wednesday, May 1, 2019 7:00 PM
    Monday, April 29, 2019 7:28 PM