You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zed is gaining popularity and I was quite surprised that none of the IDE plugins is able to generate something Zed can parse to get all include paths and symbol navigation correct.
I'm a total amateur messing around with a little C for some ESP and Arduino projects, so I have no clue how to get Zed up-and-running with my PlatformIO projects.
If I can generate the needed files by hand that would be no problem either, but a plugin would be most welcome!
Reacted by Andrew Wason, Screeching Bagel, Vladimir Petrov, zc he, Marza4, Matteo Battistutta, Joel Kurian, Aizhan Talasbekova, 1Muggle, Nasser and 3 more
Technically you can use compiledb along with clangd (which i believe zed has support for) and it should just work as well, although you would have to use the pio cli instead of having a "PlatformIO IDE"-like experience.
Hi @MrHaroldA, thank you for digging into this and for confirming what works — that's genuinely helpful for anyone who lands on this issue!
To add the underlying reason it "just works": Zed relies on clangd for C/C++, and clangd reads a compile_commands.json to resolve includes and symbols. PlatformIO can generate exactly that file with pio run -t compiledb (documented here: https://docs.platformio.org/en/latest/integration/compile_commands.html), which is why a regenerate-and-reload gives you full navigation, as you and @highjeans found. Dedicated editor/IDE integrations are maintained as separate projects outside platformio-core, so a built-in Zed plugin isn't something that would live in Core itself.
Your suggestion to mention the compiledb workflow in the docs is a good one and would make a nice, focused addition. Since the practical path is already covered, I think this can be closed — but thank you very much for raising it and helping map out the Zed story!
Activity
highjeans commentedon Feb 18, 2026
Technically you can use compiledb along with clangd (which i believe zed has support for) and it should just work as well, although you would have to use the pio cli instead of having a "PlatformIO IDE"-like experience.
MrHaroldA commentedon Feb 24, 2026
A
platformio run -t compiledb(and a restart of Zed) does indeed fix the symbol navigation!Is this something that should be added to Platformio's documentation?
JamBalaya56562 commentedon Jul 5, 2026
Hi @MrHaroldA, thank you for digging into this and for confirming what works — that's genuinely helpful for anyone who lands on this issue!
To add the underlying reason it "just works": Zed relies on
clangdfor C/C++, andclangdreads acompile_commands.jsonto resolve includes and symbols. PlatformIO can generate exactly that file withpio run -t compiledb(documented here: https://docs.platformio.org/en/latest/integration/compile_commands.html), which is why a regenerate-and-reload gives you full navigation, as you and @highjeans found. Dedicated editor/IDE integrations are maintained as separate projects outside platformio-core, so a built-in Zed plugin isn't something that would live in Core itself.Your suggestion to mention the
compiledbworkflow in the docs is a good one and would make a nice, focused addition. Since the practical path is already covered, I think this can be closed — but thank you very much for raising it and helping map out the Zed story!