Idea Terminal报错为 :

Cannot open Local Terminal
Failed to start [cmd.exe] in F:\workspace\webstorm\ui_old

Error starting winpty: ConnectNamedPipe failed: Windows error 232
This error can occur due to antivirus blocking winpty from creating a pty. Please exclude the following files in your antivirus:
 - D:\Program Files\JetBrains\WebStorm 2019.3.4\lib\pty4j-native\win\x86_64\winpty-agent.exe
 - D:\Program Files\JetBrains\WebStorm 2019.3.4\lib\pty4j-native\win\x86_64\winpty.dll


See your idea.log (Help | Show Log in Explorer) for the details.

原因,360安全防护中的进程防护处于安全考虑禁止了其他进程获取cmd的权限,如果需要放开此权限,可以如下设置:

方法一、临时管理进程防护

 

 

 

 

取消上述进程防护后,到idea中打开Terminal点+号重新打开一个窗口即可。

方法二、添加信任(需要重启)

将Terminal中提示的两个文件添加为信任白名单,

 - D:\Program Files\JetBrains\WebStorm 2019.3.4\lib\pty4j-native\win\x86_64\winpty-agent.exe
 - D:\Program Files\JetBrains\WebStorm 2019.3.4\lib\pty4j-native\win\x86_64\winpty.dll

操作如下:

 

 

此方法,添加后未生效,尝试的方法一,Terminal可用了,然后我又把进程防护打开了。重启试了一下,白名单生效了。

所以觉得重启后也许就生效了。有个瑕疵就是,刚打开Terminal时依然如上提示错误,但是点+号可以正常代开终端。

现在我是只添加了白名单,360中的进程防护是开启状态,这样安全和效率并存,爽歪歪。

 

 

 

GitHub 加速计划 / term / terminal
11
0
下载
The new Windows Terminal and the original Windows console host, all in the same place!
最近提交(Master分支:8 个月前 )
0568173a This requires us to delay-sign the assembly with a public key (the snk file), and then later submit it for strong naming. This is separate from code signing, and has to take place before it. The snk file does not contain any private key material. This cannot merge until we are approved to use this new signing "key code". 5 小时前
a233b18d sources and sources.dep goo mostly. 5 小时前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐