idf 6.0 安装后powershell运行不成功的问题解决。

mygod2012
Posts: 2
Joined: Sun Sep 08, 2024 4:43 pm

idf 6.0 安装后powershell运行不成功的问题解决。

Postby mygod2012 » Mon Jun 29, 2026 1:15 am

使用eim 工具 使用离线安装包(archive_v6.0.1_windows-x64.zst)安装的idf_v6.0.1版本,安装过程顺利没有报错,但是安装结束后运行IDF_v6.0.1_Powershell 弹窗如下错误:

所在位置 C:\Espressif\tools\Microsoft.v6.0.1.PowerShell_profile.ps1:87 字符: 1205
+ ... GGER\JLink;"C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtens ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
表达式或语句中包含意外的标记“C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin”。
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : UnexpectedToken

通过查看 C:\Espressif\tools\Microsoft.v6.0.1.PowerShell_profile.ps1的代码发现第87行中字符串的双引号位置不正确,在第1205列这个位置出现了异常的“"”,导致整行字符串被截断几部分。而且整行字符串中有多个下引号(“"”)。
去掉位置异常的“"”后,保存代码。再次运行IDF_v6.0.1_Powershell 就正常了。

Who is online

Users browsing this forum: No registered users and 2 guests