Skip to content

Conversation

@radurentea
Copy link
Collaborator

Description

When installing an ESP-IDF version, our extension supports two primary methods:

  1. Downloading pre-packaged zip files for stable, official releases (e.g., v5.0.9).
  2. Cloning the repository recursively for active development branches (e.g., master or release/x.x).

This fix extends support to development branches ending in "-dev" (e.g., v5.5-dev). Prior to this change, the extension would incorrectly attempt a zip file download for these versions, which are not provided. Now, -dev branches will be correctly installed via repository cloning.

Fixes #1577

Type of change

Please delete options that are not relevant.

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

Steps to test this pull request

Try to install the following version (make sure to have "Show all ESP-IDF Tags" ticked):
image

Should be tested for with stable and official releases as well.

How has this been tested?

As described above

Test Configuration:

  • ESP-IDF Version: 6.0
  • 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

For cloning I've also added tags containing "-dev" at the end
From testing it seems that version retrieve the name without the file extension (e.g. it will retrieve "v5.5-dev" instead of "v5.5-dev.zip").
@radurentea radurentea added this to the v1.11.0 milestone Jun 3, 2025
@radurentea radurentea self-assigned this Jun 3, 2025
@github-actions
Copy link

github-actions bot commented Jun 3, 2025

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

Copy link
Collaborator

@Fabricio-ESP Fabricio-ESP left a comment

Choose a reason for hiding this comment

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

Confirmed installation of dev branch is correctly directed to git clone.

@brianignacio5 brianignacio5 merged commit 1577ff5 into master Jun 11, 2025
6 checks passed
@brianignacio5 brianignacio5 deleted the bugfix/cloning-dev-branches branch June 11, 2025 04:00
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.

Can't download ESP-IDF v5.5-dev (VSC-1708)

4 participants