Open RossComputerGuy opened 1 year ago
It would be helpful to see output of the crash with a debug build of the compiler.
Yeah, I'm trying to get a debug compiler build but I keep on running into issues. Tried both directly with CMake and I end up with things being named wrong in C++ code. Trying from a pre-built and I get missing headers.
Trying from a pre-built and I get missing headers.
this is a race condition in your build script
crash log
zig test neutron-docs Debug native: error: thread 647831 panic: attempt to unwrap error: PackageNotFound
/home/meghan/src/zig/src/Module.zig:4842:9: 0xd19adc in importFile (zig)
return error.PackageNotFound;
^
/home/meghan/src/zig/src/Autodoc.zig:933:71: 0xae6cf5 in walkInstruction (zig)
const new_file = self.module.importFile(file, path) catch unreachable;
^
/home/meghan/src/zig/src/Autodoc.zig:4346:36: 0xd1ce86 in walkRef (zig)
return self.walkInstruction(file, parent_scope, parent_src, zir_index, need_type);
^
/home/meghan/src/zig/src/Autodoc.zig:2122:21: 0xaf43f1 in walkInstruction (zig)
return res;
^
/home/meghan/src/zig/src/Autodoc.zig:3210:53: 0xd27dc4 in walkDecls (zig)
const walk_result = try self.walkInstruction(file, scope, decl_src, value_index, true);
^
/home/meghan/src/zig/src/Autodoc.zig:2910:53: 0xafd273 in walkInstruction (zig)
extra_index = try self.walkDecls(
^
/home/meghan/src/zig/src/Autodoc.zig:232:61: 0xae4022 in generateZirData (zig)
_ = try self.walkInstruction(file, &root_scope, .{}, Zir.main_struct_inst, false);
^
/home/meghan/src/zig/src/Compilation.zig:2054:44: 0xb0957e in update (zig)
try autodoc.generateZirData();
^
/home/meghan/src/zig/src/main.zig:3499:36: 0xb35528 in serve (zig)
try comp.update(main_progress_node);
^
/home/meghan/src/zig/src/main.zig:3305:31: 0x9d49eb in buildOutputType (zig)
test_exec_args.items,
^
/home/meghan/src/zig/src/main.zig:273:31: 0x9a82c4 in mainArgs (zig)
return buildOutputType(gpa, arena, args, .zig_test);
^
/home/meghan/src/zig/src/main.zig:211:20: 0x9a7775 in main (zig)
return mainArgs(gpa, arena, args);
^
/home/meghan/src/zig/lib/std/start.zig:617:37: 0x9a9e5c in main (zig)
const result = root.main() catch |err| {
^
???:?:?: 0x7efd78b1224d in ??? (???)
???:?:?: 0x7fffb3d34318 in ??? (???)
Oh thanks for getting me that, not sure what the issue exactly is or how to fix it.
Edit: I forgot to run addModule
for the dependencies and that fixed it. Maybe it should throw an error when a module is needed but not added?
Zig Version
0.11.0-dev.2160+49d37e2d1
Steps to Reproduce and Observed Behavior
Recently, my ability to generate documentation thru a test has broke with the new parallel builds update.
Link to relevant code
With
zig build
:Running the command directly (without listen):
Expected Behavior
Zig should throw an error of what actually went wrong or it should work just fine like it did in the past.