use idf tools export to get env vars #1343
Open
+113
−14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Use
idf_tools.py export --format key-value
to get ESP-IDF variables required in environment variables.This should fix missing
ESP_IDF_VERSION
from extension tasks and use PATH from idf_tools.py (which is already done but could replace extension implementation.)Type of change
Please delete options that are not relevant.
Steps to test this pull request
Probably the best way to verify that variables are present is to open
ESP-IDF: Open ESP-IDF Terminal
and doecho $ESP_IDF_VERSION
or other environment variable fromidf_tools.py export
output.You can also test with any command like
ESP-IDF: Build your project
but harder to see if variables are available.All variables from
idf_tools.py export --format key-value
should be available in extension commands likeESP-IDF: Open ESP-IDF Terminal
Test Configuration:
Checklist