Skip to content

PIO Core 6.1.17 brakes compile_commands.json from compiledb #5090

Open
@Nathan-ma

Description

@Nathan-ma

Hi folks, no big deal, reporting an issue with 6.1.17.
After upgrading to 6.1.17, the clangd stopped working as expected; I just downgraded the core version back to 6.1.16 and everything is now working again.

OS: macOS
Basic .ini config:

[device]
platform = [email protected]
board = esp32dev
framework = arduino

.clangd:

CompileFlags:
  Remove: [-fno-tree-switch-conversion, -mtext-section-literals, -mlongcalls, -fstrict-volatile-bitfields]

My LSP when on 6.1.17, fails to find any Arduino framework lib like: WiFi, EEPROM, WiFiProv, etc.

Downgrading to 6.1.16 solves it right away:

pip install platformio==6.1.16

This is a great opportunity to start supporting version selection with the brew package manager.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions