-
Notifications
You must be signed in to change notification settings - Fork 123
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
fix: Terminal ESP-IDF Path conflict issues #979
Conversation
WalkthroughThe recent update enhances the Changes
Possibly related PRs
Poem
Recent review detailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review as they are similar to previous changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- bundles/com.espressif.idf.terminal.connector/src/com/espressif/idf/terminal/connector/launcher/IDFConsoleLauncherDelegate.java (1 hunks)
Additional comments not posted (1)
bundles/com.espressif.idf.terminal.connector/src/com/espressif/idf/terminal/connector/launcher/IDFConsoleLauncherDelegate.java (1)
385-385
: Ensure thePATH
environment variable is correctly modified.The change correctly prepends
idfExtraPaths
toenvValue
, ensuring that the paths added by the ESP-IDF terminal take precedence over the system path. This should resolve the path conflict issues as described in the PR.
Hi @igrr This PR will address the issue which you've mentioned https://jira.espressif.com:8443/browse/IEP-1296 |
@kolipakakondal hi ! Tested under: Issue is still persist. Terminal output:
PATH output -> IDE env python is still located in the end of the path list. andriifilippov@Andriis-MacBook-Pro Ert % echo $PATH Env variables from "Preferences -> Env" : /Users/andriifilippov/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin:/Users/andriifilippov/.espressif/tools/riscv32-esp-elf-gdb/14.2_20240403/riscv32-esp-elf-gdb/bin:/Users/andriifilippov/.espressif/tools/xtensa-esp-elf/esp-13.2.0_20230928/xtensa-esp-elf/bin:/Users/andriifilippov/.espressif/tools/esp-clang/16.0.1-fe4f10a809/esp-clang/bin:/Users/andriifilippov/.espressif/tools/riscv32-esp-elf/esp-13.2.0_20230928/riscv32-esp-elf/bin:/Users/andriifilippov/.espressif/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/Users/andriifilippov/.espressif/tools/cmake/3.24.0/CMake.app/Contents/bin:/Users/andriifilippov/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin:/Users/andriifilippov/.espressif/tools/ninja/1.11.1/:/Users/andriifilippov/.espressif/python_env/idf5.2_py3.9_env/bin:/Users/andriifilippov/Documents/e/v5.2.2/esp-idf/tools:/usr/bin:/bin:/usr/sbin:/sbin |
@sigmaaa @kolipakakondal hi ! Tested: Seems to be working. I'm only concerned that there are no system paths in the PATH at all |
Description
The problem:
Everything works fine when l'm building applications through launch bar icons, but it fails when using the idf.py command from the terminal.
The reason:
I've installed ESP-IDF using the IDF installer, which configures the IDF_PATH environment variable in the system path. However, when launching the ESP-IDF terminal, you're also setting IDF_PATH and tool paths. Since these are added to the end of the system path, they take precedence and causing the conflict.
Solution:
Instead of appending it to the end of the system path, adding the CDT build environment PATH to the front ensures it takes precedence
Fixes # (IEP-1249)
Type of change
How has this been tested?
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit
idfExtraPaths
are correctly prioritized in the terminal connector setup.PATH
resolution.