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-1597] preBuild wrongly used in project conf idf.preFlashTask #1441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brianignacio5
Copy link
Collaborator

Description

Prebuild Task being used in flash task as pre flash task in Project Configuration Editor

Fixes #1438

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. Click on ESP-IDF: Project Configuration Editor and add a profile with "preBuild": "idf.py set-target esp32p4". Save it
  2. Execute ESP-IDF: Select Project Configuration to select previously defined profile.
  3. Execute ESP-IDF: Flash Your Project. Previously you would see the prebuilt task being executed. In This PR, it should NOT be executed. Instead if you define "preFlash": "idf.py set-target esp32p4" in ESP-IDF: Project Configuration Editor it should run before flash as intended.
  • Expected behaviour:
    PreBuild tasks should NOT execute before flashing

  • Expected output:
    PreFlash task SHOULD execute before flashing.

How has this been tested?

Manual testing with steps above.

Test Configuration:

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

Checklist

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

@brianignacio5 brianignacio5 added this to the v1.10.0 milestone Feb 24, 2025
@brianignacio5 brianignacio5 self-assigned this Feb 24, 2025
Copy link

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.

@Fabricio-ESP Fabricio-ESP changed the title preBuild wrongly used in project conf idf.preFlashTask [VSC-1597] preBuild wrongly used in project conf idf.preFlashTask Feb 26, 2025
Copy link
Collaborator

@radurentea radurentea left a comment

Choose a reason for hiding this comment

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

LGTM

@brianignacio5 brianignacio5 added the bugfix Fixing some issue and bug in this PR label Mar 6, 2025
@Fabricio-ESP
Copy link
Collaborator

Confirmed working as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixing some issue and bug in this PR
Projects
None yet
3 participants