Page 1 of 1

windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Mon Aug 30, 2021 6:11 am
by changyue
windows下idf-tools安装进行到 “Switching branch”时失败
安装时选择的版本为4.2
4.3版本可以正常安装

Re: windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Wed Sep 01, 2021 1:41 am
by ESP_Gargamel
如果你能直接告知是离线安装,就更好了,从 log 中获取了此信息。
试了下确实有此问题,会反馈到内部。

Re: windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Wed Sep 01, 2021 7:45 am
by ESP_georgik
Thank you changyue for reporting the issue. We will investigate the problem.

Suggested possible workarounds:
- use Online installer to deploy 4.2.2 - https://dl.espressif.com/dl/esp-idf/
- use Offline installer, deploy 4.3, then open terminal and switch to branch manually:

Code: Select all

git checkout v4.2.2
install.bat
export.bat

Re: windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Wed Sep 01, 2021 10:48 am
by ESP_georgik
Unfortunately we were not able to simulate the error.

Please, provide output of command:

Code: Select all

git config --list --show-origin
The output could help us with diagnostics of the problem.

Re: windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Wed Sep 01, 2021 12:17 pm
by ESP_georgik
Meanwhile we identified the problem.
If the git does not have autocrlf set to true in global config the installation fails.
To workaround the problem it's possible to enter command:

Code: Select all

git config --global core.autocrlf true
After this correction the installation works without problem.
The new issue for this bug was created: https://github.com/espressif/idf-installer/issues/52

Re: windows下idf-tools安装进行到 “Switching branch”时失败

Posted: Wed Sep 01, 2021 1:26 pm
by ESP_georgik
We updated Offline installer, please test the following version:
https://github.com/espressif/idf-instal ... 11-beta-02

The installation of 4.2.2 should pass without problem.