idea中自带的Terminal可以很方便的执行cmd命令,突然有一天报了以下的错误:
Cannot open Local Terminal Failed to start [C:WindowsSystem32cmd.exe] in D:/code/code_git/bic_ep_points_pay 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_toolsIDEA202001_2libpty4j-nativewinx86_64winpty-agent.exe - D:program_toolsIDEA202001_2libpty4j-nativewinx86_64winpty.dll See your idea.log (Help | Show Log in Explorer) for the details.
解决办法:
1 退出杀毒软件,如360。
2 如果是360,可以在信任区中信任winpty-agent.exe和winpty.dll两个文件,并重启电脑;或者关闭 首页->安全防护中心->进程防护 按钮,不需要重启。