zls
zls copied to clipboard
loadBuildConfiguration hangs on windows
Zig Version
0.15.0-dev.646+ef35c3d5f
ZLS Version
0.15.0-dev.129+bb6d6473
Client / Code Editor / Extensions
vscode 1.100.2
Steps to Reproduce and Observed Behavior
Taking this code path https://github.com/zigtools/zls/blob/f6580bf87eaf67bd37d776f04d780016f121e647/src/Server.zig#L1056 I've "zig.path" set to "zig" and Build-on-Save enabled.
Loading build configuration notification never ends and zig-childprocesses hang indefinitely.
dir /b \\.\pipe\\zig*
zig-childprocess-17776-11
zig-childprocess-17776-12
zig-childprocess-17776-13
zig-childprocess-17776-14
The issue seems to be related to: https://github.com/zigtools/zls/blob/f6580bf87eaf67bd37d776f04d780016f121e647/src/DocumentStore.zig#L1265-L1270
Expected Behavior
child processes to end
Relevant log output
I investigated this issue and it appears to be caused by a bug in std.process.Child. See https://github.com/ziglang/zig/issues/24009