-
Notifications
You must be signed in to change notification settings - Fork 133
IEP-1644 Release 3.7.0 regression testing: Terminal does not work #1325
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
Conversation
WalkthroughUpdates IDFUtil.getSystemEnv to detect and use the correct PATH key ("PATH" or "Path"), merge Homebrew paths, and write back the final PATH using the selected key. Introduces keyPath tracking, fallback logic, and consistent environment mutation across differing OS conventions. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant C as Caller
participant U as IDFUtil.getSystemEnv
participant E as System Environment
C->>U: Request environment map
U->>E: Read entries for "PATH" and "Path"
alt "PATH" present
U->>U: keyPath = "PATH"
else "Path" present
U->>U: keyPath = "Path"
else
U->>U: keyPath = "PATH" (default)
end
U->>U: Merge Homebrew paths into env[keyPath]
U->>E: Write merged PATH back using keyPath
U-->>C: Return updated environment map
note right of U: Ensures consistent PATH mutation across OS conventions
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: build_macos
- GitHub Check: build
- GitHub Check: build_windows
🔇 Additional comments (1)
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java (1)
924-924: Good: Using the detected PATH key.Correctly writes the merged PATH back using the detected key rather than a hardcoded
"PATH". This ensures consistency across different OS conventions once the key detection logic (lines 903-909) is corrected.
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java
Outdated
Show resolved
Hide resolved
sigmaaa
left a comment
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.
Self reviewed
kolipakakondal
left a comment
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.
LGTM
|
@sigmaaa hi ! Tested under: able to use |
Description
The issue was caused by retrieving the PATH key, which doesn’t exist on Windows, leading to a new conflicting variable. Fixed by fetching the existing key (PATH or Path) based on the platform.
Fixes # (IEP-1644)
Type of change
Please delete options that are not relevant.
How has this been tested?
Install tools -> open terminal -> run idf.py commands
Test Configuration:
Dependent components impacted by this PR:
Checklist
Summary by CodeRabbit