platformio / platformio/platformio-core
Feature request: Make COMPILATIONDB_INCLUDE_TOOLCHAIN as compiledb flag
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.5k
- Forks
- 905
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Description
I am working with a lot of projects and my main IDE isn't VSCode, so I need compilation database to be generated for every project so the LSP would work. The problem is that every time I create/edit project I need to add script which will enable COMPILATIONDB_INCLUDE_TOOLCHAIN. In most cases I don't even need build scripts for anything else besides enabling this flag. I thought maybe it's a good idea to include this flag in pio run command? ( e.g. pio run -t compiledbtc (?) )
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how pio run parses targets and how COMPILATIONDB_INCLUDE_TOOLCHAIN is currently enabled through project scripts. Define the dedicated target or flag behavior, then verify that invoking it generates the compilation database with the toolchain for a project.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, embedded-iot
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100