点击打开终端
- 发布:2021-05-14 11:11
- 更新:2021-05-14 11:11
- 阅读:554
产品分类: HbuilderX
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX版本号: 3.1.12
操作步骤:
预期结果:
终端打开
终端打开
实际结果:
终端不能打开
终端不能打开
bug描述:
已经修改绝对路径
if(isWin){
shell = 'C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe';
var osRelease = os.release();
var dotIndex = osRelease.indexOf('.');
if(dotIndex>0){
var fv = osRelease.substring(0,dotIndex);
if(fv>6){
shell = 'C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe';
}else{
shell = 'cmd.exe';
var ov = osRelease.substring(dotIndex);
dotIndex = ov.indexOf('.');
if(dotIndex>0){
var sv = ov.substring(0,dotIndex);
if(sv>1){
shell = 'C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe';
}
}
}
}
}else{
shell = 'bash';
}
报错日志:
2021-05-14 11:06:36.604 [INFO:] TerminalServer log begin
2021-05-14 11:06:36.606 [INFO:] standard out is: "powershell:false\n"
2021-05-14 11:06:36.607 [INFO:] hbuilderx handled result: "powershell:false\n"
2021-05-14 11:06:38.443 [INFO:] TerminalServer log begin
2021-05-14 11:06:38.444 [INFO:] standard out is: "hbuilderx:39994763:\u0001[270,8]\n"
2021-05-14 11:06:38.446 [INFO:] hbuilderx handled result: "\u0001[270,8]\n"
2021-05-14 11:06:38.447 [WARNING:] TerminalServer error: events.js:183
throw er; // Unhandled 'error' event
^
Error: connect ENOENT \.\pipe\winpty-conout-25584-2-1d7486e27e2b1d4-d4ae75c0e23501f07e89b3e47c321837
at Object._errnoException (util.js:1022:11)
at _exceptionWithHostPort (util.js:1044:20)
at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1198:14)
0 个回复