Skip to content

COMPILATIONDB_INCLUDE_TOOLCHAIN=True skips WiFi #5166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sakhnik opened this issue May 21, 2025 · 0 comments
Open

COMPILATIONDB_INCLUDE_TOOLCHAIN=True skips WiFi #5166

sakhnik opened this issue May 21, 2025 · 0 comments

Comments

@sakhnik
Copy link

sakhnik commented May 21, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants