Closed devara-gheist closed 2 months ago
using ZVM i've tried zig build run using version 0.13.0 and master. The 0.13.0 got similar error messages to the 0.12.0 in the previous post, while master still encountering error:
/home/mxlinux/.cache/zig/p/12207c30c6fbcb8c7519719fc47ff9d0acca72a3557ec671984d16260bdf1c832740/build.zig:156:10: error: no field named 'Struct' in enum '@typeInfo(builtin.Type).@"union".tag_type.?'
.Struct => |info| info.fields,
~^~
/home/mxlinux/.zvm/master/lib/std/builtin.zig:259:18: note: enum declared here
pub const Type = union(enum) {
^~~~~
referenced by:
build: /home/mxlinux/.cache/zig/p/1220ffe0c1f7a7d3a7b6d87346e945bbf818cfb6c03601110d91a069ab7da741dd82/build.zig:48:66
runBuild__anon_60776: /home/mxlinux/.zvm/master/lib/std/Build.zig:2155:44
15 reference(s) hidden; use '-freference-trace=17' to see all references
Please advise.
sorry I posted in the wrong repo. This supposed to be in the main jetzig repo, I don't know how it got here. Cheers!
I'm using Zig version 0.12 and I followed the instruction both from Jetzig's youtube and website. Everything went fine until i execute: zig build run.
Got these error messages:
warning: [zmpl] Templates path not found:
src/app/mailers
- skipping. run └─ run demo └─ install └─ install demo └─ zig build-exe demo Debug native 6 errors /home/mxlinux/.cache/zig/p/1220efbc744de6e13e57ab9fa6370ea9690601e55ba6ced74179c081a295c99fd422/src/worker.zig:1388:57: error: no field named 'sec' in struct 'os.linux.x86_64.timeval' const timeout = std.mem.toBytes(std.posix.timeval{ .sec = 5, .usec = 0 }); ^~~ /home/mxlinux/.zig/lib/std/os/linux/x86_64.zig:274:28: note: struct declared here pub const timeval = extern struct {