-
-
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
PLATFORMIO_... environment variable causes a crash #3377
Comments
We would be thankful if you could use a development version of PlatformIO Core. in 99.999% it's very stable but there sometimes the cases which we didn't expect, such as platformio/platformio-core#3377 So, if you will see any issues with PlatformIO Core-dev, please report us and we will fix ASAP. Thanks!
Thanks for the report. This my fault, I didn't cover this use case in a test when multiline system evironment is used :( |
We would be thankful if you could use a development version of PlatformIO Core. in 99.999% it's very stable but there sometimes the cases which we didn't expect, such as platformio/platformio-core#3377 So, if you will see any issues with PlatformIO Core-dev, please report us and we will fix ASAP. Thanks!
- [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]>
A similar issue is present on version 4.3.4a4 when build_flags are set through extra_configs in platformio.ini. Though the resulting error is a RecurrsionError. |
Could you provide a simple project to reproduce this issue? |
I just realized that i'm trying to add buildflags. By build_flags = ${env.build_flags}...etc.
credentials.ini
|
So the issue is actually not about the build_flag in particular, it's about the re-referencing. |
It’s not a bug. You are referencing to the same scope multiple time and are making infinite recursion. Change env in credentials to something [wifi] and in main platformio.ini use $wifi |
Configuration
Operating system: Linux
PlatformIO Version (
platformio --version
):PlatformIO, version 4.2.0
Description of problem
For example,
PLATFORMIO_SRC_BUILD_FLAGS=-DFOO
will crash instantly2763853d8 seems to be the cause
Steps to Reproduce
pio run
to check that the project worksenv PLATFORMIO_SRC_BUILD_FLAGS='-DFOO' pio run
will instantly crashActual Results
The specific issue is shown by this line:
Full traceback:
Note about the trace: platformio penv is using git installation
Expected Results
No crash
If problems with PlatformIO Build System:
The content of
platformio.ini
:Source file to reproduce issue:
Additional info
First noticed this here:
https://travis-ci.org/xoseperez/espurna/jobs/649841340#L378
CI script uses PLATFORMIO_ variable to build
The text was updated successfully, but these errors were encountered: