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

esp-idf tool installation fails due to ERROR: MSys/Minggw is not supported (VSC-1020) #856

Closed
1 task done
stsgil opened this issue Dec 16, 2022 · 7 comments
Closed
1 task done
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)

Comments

@stsgil
Copy link

stsgil commented Dec 16, 2022

OS

Windows

Operating System version

Windows 10

Visual Studio Code version

1.74.1

ESP-IDF version

5.0

Python version

3.10.9

Doctor command output

Don't know, nothing happens when I run this command

Extension

esp_idf_vsc_ext.log

Description

ESP-IDF tool installation fails with, because I guess it finds MinGW64 through my git bash, which is not supported?

This is my Nth attempt at installing this stuff. Before I had MSYS installed, I was able to successfully configure/install everything, but when I tried to build my project, I got the same error.
Potentially something is wrong with my environment variable setup / I need msys after all? But in the readme for this extension, msys is not listed in the pre-requisites for Windows, I feel like you could at least provide some references to IDF documentation for those, who have no experience with this whole infrastructure.

Debug Message

ERROR: MSys/Mingw is not supported. Please follow the getting started guide of the documentation to set up a supported environment
Command failed: "C:\Users\Stas\.espressif\tools\idf-python\3.8.7\python.exe" "C:\Users\Stas\esp\esp-idf\tools\idf_tools.py" install-python-env

Other Steps to Reproduce

No response

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

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@stsgil stsgil added the bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue) label Dec 16, 2022
@github-actions github-actions bot changed the title esp-idf tool installation fails due to ERROR: MSys/Minggw is not supported esp-idf tool installation fails due to ERROR: MSys/Minggw is not supported (VSC-1020) Dec 16, 2022
@stsgil
Copy link
Author

stsgil commented Dec 16, 2022

Sorry if i sound a bit emotional. To add:
esp-idf docs say "please install idf through the IDE extension" (https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/index.html)
I also tried installing the esp-idf using the online installer 2.17 and then option "use existing idf" in the extension setup wizard, but I had a similar error, it failed to build mconf-idf because "no MSYS2"

@stsgil stsgil closed this as completed Dec 19, 2022
@stsgil
Copy link
Author

stsgil commented Dec 19, 2022

I had some stale path variables in my vscode extension settings and i probably provided wrong IDF_PATH and IDF_TOOLS_PATH

@kongzhongfeima
Copy link

same error

@johnosbb
Copy link

johnosbb commented Aug 4, 2024

same error installing on Windows

@brianignacio5
Copy link
Collaborator

This error is triggered in ESP-IDF idf.py here: https://github.com/espressif/esp-idf/blob/master/tools/idf_tools.py#L3240

It seems there is an environment variable MSYSTEM in your setup that is being detected as MSys/Mingw

@MartyMcFlyInTheSky
Copy link

MartyMcFlyInTheSky commented Oct 18, 2024

Uninstall MSYS2 and restart your computer. This env variable is set under C:\msys64\msys2_shell.cmd which is (I believe) executed for bootstrapping. Also don't use bash to execute the setup app (in case you somehow don't install it from vscode IDE), since bash always has MSYSTEM set to MINGW64.

@henryfung3a27
Copy link

On Windows, setting the VSCode default terminal profile to anything other than Git Bash solved for me. i.e. in VSCode settings.json, comment out

  // "terminal.integrated.defaultProfile.windows": "Git Bash",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-report Bug Report from users on Github (don't use this tag manually, its supposed to be used via the issue)
Projects
None yet
Development

No branches or pull requests

6 participants