Skip to content
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

[VSC-1534] Fix Install Extension Python Requirements #1360

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

radurentea
Copy link
Collaborator

Description

Bug: Constraints File Path Mismatch

The extension currently searches for ESP-IDF constraint files using the full version number (including patch version), but ESP-IDF only uses major.minor versions in the filename.

Example:

  • Current code looks for: espidf.constraints.v5.3.1
  • Actual ESP-IDF filename: espidf.constraints.v5.3

This PR fixes the version parsing to correctly match ESP-IDF's constraint file naming convention.

This PR changes this behavior.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Steps to test this pull request

Provide a list of steps to test changes in this PR and required output

  1. Have a project created with v5.3.1 of esp-idf.
  2. Build + select device target
  3. Use the command from ESP-IDF Explorer: Advanced > Install Extension Python Requirements
  4. Try to change device target (it should work)

Before this bugfix, changing the device target would not work because of the error in the logs: The following Python requirements are not satisfied

How has this been tested?

As described above

Test Configuration:

  • ESP-IDF Version: 5.3.1
  • OS (Windows,Linux and macOS): Windows

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

@radurentea radurentea self-assigned this Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

Download the artifacts for this pull request:
You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension.

Copy link
Collaborator

@brianignacio5 brianignacio5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@radurentea radurentea merged commit d6e300f into master Dec 5, 2024
6 checks passed
brianignacio5 added a commit that referenced this pull request Dec 10, 2024
* Add changelog for 1.9.0 release

* add flash monitor redirect in buildFlashMonitor command

* add validation for getEnvVarsFromIdfTools

* add IDF_PYTHON_ENV_PATH validation

* Bugfix/walkthrough documentation (#1354)

* Update post-installation step

* Collapse all menus except commands

* update activation init check settings

remove extension settings await

use showOnBoarding to show welcome page

increase timeout of notifications

increase notification timeout

disable show info message on check extension setting

fix lint

rm console log

* Use major + minor versions, remove patch version (#1360)

* add cmd pwsh idf py autocomplete

* add scripts to prettier ignore

* update changelog

* move scripts to root folder

* add bypass execution policy for powershell windows

---------

Co-authored-by: Radu <radu.rentea@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants