create-esp32-app icon indicating copy to clipboard operation
create-esp32-app copied to clipboard

c_cpp_properties.json (non Issue)

Open versamodule opened this issue 5 years ago • 2 comments

This is not a issue, but you can shrink your c_cpp_properties.json file down by using "${IDF_PATH}/components/**"

instead of listing all the components folders line by line.

I.E...

{
    "env": {
        "MESSAGE":" MAC AND LINUX USERS!!!- change path from c:/... to ~/esp/... or as approirate for your enviroment",
        "IDF_TOOLS": "<%= IDF_TOOLS_PATH %>/tools",
        "IDF_PATH": "<%= IDF_PATH %>"
    },
    "configurations": [
        {
            "name": "esp32",
            "browse": {
                "path": [
                    "${workspaceFolder}",
                    "${IDF_PATH}",
                    "${IDF_TOOLS}"
                ],
                "limitSymbolsToIncludedHeaders": true
            },
            "includePath": [
                "${workspaceFolder}",
                "${workspaceFolder}/build/config",
                "${workspaceFolder}/build/bootloader/config",

                "${IDF_TOOLS}/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/8.2.0/include",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/xtensa-esp32-elf",

                "${IDF_TOOLS}/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/8.2.0/include",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0",
                "${IDF_TOOLS}/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/8.2.0/xtensa-esp32-elf",
                
                "${IDF_PATH}/components/**"
            ],
            "defines": [],
            "cStandard": "c11",
            "cppStandard": "c++17",
            "intelliSenseMode": "clang-x64"
        }
    ],
    "version": 4
}

versamodule avatar Feb 14 '20 05:02 versamodule

hi @versamodule Thanks, I tried this but I found that I lost intellisense on the include files. Do you experience the same?

Mair avatar Apr 29 '21 09:04 Mair

I have had that happen now and then. What I noticed was if you just go above "${IDF_PATH}/components/**" and hit enter a few times and save the file, it fixes it. If it happens again, I just go back in the file and remove the couple blank lines and save again.

Its been a long time, so I am not sure if adding this other line took care of it. I put this "${workspaceFolder}/**", just above "${workspaceFolder}/build/config",

versamodule avatar Apr 29 '21 12:04 versamodule