-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
env.BoardConfig() does not work for custom boards in extra scripts of libraries. #3264
Closed
1 task done
Comments
Please re-test with |
unfortunately it didn't solve the problem, I still get the same error.
|
Please re-run Thanks for the report! |
yep that fixed it, thanks for the quick respons! |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What kind of issue is this?
If you’ve found a bug, please provide an information below.
Configuration
Operating system: OSX 10.14.6
PlatformIO Version (
platformio --version
): PlatformIO, version 4.1.0Description of problem
I have a library with an extraScript. This script wants to read the current BoardConfig using
env.BoardConfig()
. However when I use a custom board, which' definition lives in the 'boards' folder of my project root folder, env.BoardConfig() in my library script does not work anymore and throws an error:UnknownBoard: Unknown board ID 'myboard'
.Steps to Reproduce
Actual Results
throws error:
UnknownBoard: Unknown board ID 'myboard'
.Expected Results
returns the correct current board config
Additional info
I think the culprit is
platformio-core/platformio/project/config.py
Line 376 in 3c796ca
get_optional_dir("boards")
platformio-core/platformio/managers/platform.py
Line 619 in 3c796ca
The text was updated successfully, but these errors were encountered: