platformio / platformio/platformio-core

Feature request: Make COMPILATIONDB_INCLUDE_TOOLCHAIN as compiledb flag

Open
#4,769 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature integration
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.