microsoft / node-pty

Fork pseudoterminals in Node.JS
Other
1.42k stars 233 forks source link

Compilation Error: error C2362: "goto cleanup" in `winpty.cc#PtyStartProcess` skips initialization of "marshal" #683

Closed ShenHongFei closed 1 month ago

ShenHongFei commented 1 month ago

Environment details

Issue description

.../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(218,25): error C2362: “goto cleanup”跳过了“marshal”的初始化 [D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\build\pty.vcxproj] .../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(238,1): .../node-pty@1.0.0/node_modules/node-pty install: 参见“cleanup”的声明 .../node-pty@1.0.0/node_modules/node-pty install: .../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(209,8): error C2362: “goto cleanup”跳过了“spawnSuccess”的初始化 [D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\build\pty.vcxproj] .../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(238,1): .../node-pty@1.0.0/node_modules/node-pty install: 参见“cleanup”的声明 .../node-pty@1.0.0/node_modules/node-pty install: .../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(208,10): error C2362: “goto cleanup”跳过了“handle”的初始化 [D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\build\pty.vcxproj] .../node-pty@1.0.0/node_modules/node-pty install: D:\0\node_modules.pnpm\node-pty@1.0.0\node_modules\node-pty\src\win\winpty.cc(238,1): .../node-pty@1.0.0/node_modules/node-pty install: 参见“cleanup”的声明 .../node-pty@1.0.0/node_modules/node-pty install:

image

ShenHongFei commented 1 month ago

I saw that this problem has been fixed on the latest main branch. I hope the next release can be released as soon as possible.

image