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

changyue
Posts: 1
Joined: Mon Aug 30, 2021 5:51 am

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

Postby changyue » Mon Aug 30, 2021 6:11 am

windows下idf-tools安装进行到 “Switching branch”时失败
安装时选择的版本为4.2
4.3版本可以正常安装
Attachments
失败.png
失败.png (19.53 KiB) Viewed 6299 times
Setup Log 2021-08-30 #001.txt
(9.5 MiB) Downloaded 476 times

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

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

Postby ESP_Gargamel » Wed Sep 01, 2021 1:41 am

如果你能直接告知是离线安装,就更好了,从 log 中获取了此信息。
试了下确实有此问题,会反馈到内部。

ESP_georgik
Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

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

Postby ESP_georgik » Wed Sep 01, 2021 7:45 am

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
- Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems

ESP_georgik
Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

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

Postby ESP_georgik » Wed Sep 01, 2021 10:48 am

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.
- Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems

ESP_georgik
Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

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

Postby ESP_georgik » Wed Sep 01, 2021 12:17 pm

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
- Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems

ESP_georgik
Posts: 21
Joined: Fri Nov 06, 2020 8:23 am
Location: Brno
Contact:

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

Postby ESP_georgik » Wed Sep 01, 2021 1:26 pm

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.
- Juraj Michálek
Senior Embedded Software Engineer at Espressif Systems

Who is online

Users browsing this forum: No registered users and 41 guests