-
-
Notifications
You must be signed in to change notification settings - Fork 418
Closed
Description
Hi,
- zig version: 0.7.0+6e2e747b0
- zls version: bf4f653
Running zig build config run into panic on my machine due to a weird path name while it was looking for zig.exe.
Output:
Welcome to the ZLS configuration wizard! (insert mage emoji here)
Looking for 'zig' in PATH...
reached unreachable code
C:\Users\sharp\dev\zig\lib\zig\std\os\windows.zig:113:37: 0x7ff73e3afc59 in std.os.windows.OpenFile (build.obj)
.OBJECT_NAME_INVALID => unreachable,
^
C:\Users\sharp\dev\zig\lib\zig\std\os.zig:4205:31: 0x7ff73e3d4bc0 in std.os.realpathW (build.obj)
^
C:\Users\sharp\dev\zig\lib\zig\std\os.zig:4153:25: 0x7ff73e3beecd in std.os.realpath (build.obj)
return realpathW(pathname_w.span(), out_buffer);
C:\Users\sharp\dev\zls\build.zig:39:75: 0x7ff73e3b9226 in .@build.config (build.obj)
zig_exe_path = try std.mem.dupe(allocator, u8, std.os.realpath(full_path, &buf) catch continue);
^
try self.makeFn(self);
^
C:\Users\sharp\dev\zig\lib\zig\std\build.zig:435:19: 0x7ff73e3a94c8 in std.build.Builder::std.build.Builder.makeOneStep (build.obj)
try s.make();
^
C:\Users\sharp\dev\zig\lib\zig\std\build.zig:390:33: 0x7ff73e39e77f in std.build.Builder::std.build.Builder.make (build.obj)
try self.makeOneStep(s);
^
C:\Users\sharp\dev\zig\lib\zig\std\special\build_runner.zig:133:17: 0x7ff73e384694 in main (build.obj)
builder.make(targets.span()) catch |err| {
^
C:\Users\sharp\dev\zig\lib\zig\std\start.zig:173:65: 0x7ff73e3819ae in std.start.WinStartup (build.obj)
std.os.windows.kernel32.ExitProcess(initEventLoopAndCallMain());
^
Unable to dump stack trace: FileNotFound
error: the following build command failed with exit code 2147483651:
I debugged and the problematic path was this: C:\Program Files (x86)\Gpg4win\..\GnuPG\bin\zig.exe
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels