Skip to content

COMPILATIONDB_INCLUDE_TOOLCHAIN=True skips WiFi #5166

Open
@sakhnik

Description

@sakhnik

When I build the default compile db, I've got the following output and WiFi.h gets properly found:

Scanning dependencies...
Dependency Graph
|-- Adafruit NeoPixel @ 1.12.5
|-- arduino-timer @ 3.0.1
|-- WiFi @ 3.2.0

When I add env.Replace(COMPILATIONDB_INCLUDE_TOOLCHAIN=True) to extra_script.py,

Scanning dependencies...
Dependency Graph
|-- Adafruit NeoPixel @ 1.12.5
|-- arduino-timer @ 3.0.1
Warning! `COMPILATIONDB_INCLUDE_TOOLCHAIN` is scoping
Warning! `COMPILATIONDB_INCLUDE_TOOLCHAIN` is scoping

So I can have either WiFi.h found by clangd or <algorithm> but not both.
How could I have them both found by clangd?

[env:esp32c3]
platform = espressif32
board = esp32-c3-devkitm-1
framework = arduino
monitor_speed = 115200
extra_scripts = pre:extra_script.py
lib_deps = 
    adafruit/Adafruit NeoPixel@^1.11.0
    contrem/arduino-timer@^3.0.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions