Skip to content

1.9 new esp-idf terminal can't support bat build (VSC-1542) #1369

@huexpub

Description

@huexpub

OS

Windows

Operating System version

windows 11

Visual Studio Code version

No response

ESP-IDF version

5.3

Python version

3.11

Doctor command output

use bat run esp-idf build

Extension

No response

Description

vscode , new esp-idf terminal will every time show run espressif.esp-idf-extension-1.9.0\export.ps1 , yes ,it can run esp-idf ,but can't run build of bat(compile different types together)

@echo build task init
idf.py fullclean
idf.py -B build -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.prod1xxx" build
idf.py fullclean
idf.py -B build -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.prod2xxx" build
idf.py fullclean
idf.py -B build -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.prod3xxx" build
idf.py fullclean
idf.py -B build -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.prod4xxx" build
idf.py fullclean
idf.py -B build -D SDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.prod5xxx" build

in 1.8 ,it woks well , but change to 1.9 will show error like this

Cannot import module "esp_idf_monitor". This usually means that "idf.py" was not spawned within an ESP-IDF shell environment or the python virtual environment used by "idf.py" is corrupted.
Please use idf.py only in an ESP-IDF shell environment. If problem persists, please try to install ESP-IDF tools again as described in the Get Started guide.

Debug Message

back to 1.8 woks...

Other Steps to Reproduce

no

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

Labels

Issue Template IgnoredAuthor hasn't follow the issue templatebug-reportBug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)staleStale PR or Issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions