-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
PIO fails to generate compile_commands.json for an MBED project #3378
Comments
Hi @asmfreak ! Thanks for the report. I followed every step you described above and wasn't able to reproduce the issue neither on Ubuntu 18.04 nor on Windows. Is there anything special about your environment? |
My setup should be pretty standard.
Should I try recreating the venv with Python 3? |
Thanks for the report! The PIO Core 4.2.1 is planned for release today. |
- [x] Have you followed the [guidelines for contributing](https://github.com/Homebrew/homebrew-core/blob/master/CONTRIBUTING.md)? - [x] Have you checked that there aren't other open [pull requests](https://github.com/Homebrew/homebrew-core/pulls) for the same formula update/change? - [x] Have you built your formula locally with `brew install --build-from-source <formula>`, where `<formula>` is the name of the formula you're submitting? - [x] Is your test running fine `brew test <formula>`, where `<formula>` is the name of the formula you're submitting? - [x] Does your build pass `brew audit --strict <formula>` (after doing `brew install <formula>`)? ----- * Improved VSCode template with special ``forceInclude`` field for direct includes via ``-include`` flag ([issue #3379](platformio/platformio-core#3379)) * Improved support of PIO Home on card-sized PC (Raspberry Pi, etc.) ([issue #3313](platformio/platformio-core#3313)) * Froze "marshmallow" dependency to 2.X for Python 2 ([issue #3380](platformio/platformio-core#3380)) * Fixed "TypeError: unsupported operand type(s)" when system environment variable is used by project configuration parser ([issue #3377](platformio/platformio-core#3377)) * Fixed an issue when Library Dependency Finder (LDF) ignores custom "libLDFMode" and "libCompatMode" options in [library.json](http://docs.platformio.org/page/librarymanager/config.html) * Fixed an issue when generating of compilation database "compile_commands.json" does not work with Python 2.7 ([issue #3378](platformio/platformio-core#3378)) Closes #50367. Signed-off-by: Rui Chen <[email protected]>
What kind of issue is this?
If you’ve found a bug, please provide an information below.
You can erase any parts of this template not applicable to your Issue.
Configuration
Operating system:
PlatformIO Version (
platformio --version
):Description of problem
This is a continuation of #2990. Compilation DB fails to be generated if used on MBED project.
Steps to Reproduce
mkdir someproject
pio project init
platformio.ini
from belowmbed_app.json
from belowpio -t compiledb
Actual Results
Expected Results
Generated
compile_commands.json
If problems with PlatformIO Build System:
The content of
platformio.ini
:mbed_app.json
The text was updated successfully, but these errors were encountered: