zig-clap
zig-clap copied to clipboard
Does not compile for 0.15.0
Stack Trace:
install
└─ install requote
└─ zig build-exe requote Debug native 1 errors
/Users/jayansunil/.cache/zig/p/clap-0.11.0-oBajB-TnAQC7yPLnZRT5WzHZ_4Ly4dX2OILskli74b9H/clap.zig:148:42: error: missing struct field: allocator
var list = std.ArrayList(Param(Help)){
~~~~~~~~~~~~~~~~~~~~~~~~~~^
/opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/lib/std/array_list.zig:31:12: note: struct declared here
return struct {
^~~~~~
/Users/jayansunil/.cache/zig/p/clap-0.11.0-oBajB-TnAQC7yPLnZRT5WzHZ_4Ly4dX2OILskli74b9H/clap.zig:100:31: note: called at comptime here
_ = parseParamsIntoSliceEx(&res, str, &end) catch {
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
src/main.zig:21:53: note: called at comptime here
const params = comptime clap.parseParamsComptime(
~~~~~~~~~~~~~~~~~~~~~~~~^
referenced by:
callMain [inlined]: /opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/lib/std/start.zig:675:37
callMainWithArgs [inlined]: /opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/lib/std/start.zig:635:20
main: /opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/lib/std/start.zig:650:28
1 reference(s) hidden; use '-freference-trace=4' to see all references
error: the following command failed with 1 compilation errors:
/opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/zig build-exe -ODebug --dep lexer --dep writer --dep clap -Mroot=/Users/jayansunil/Dev/zig/requote/src/main.zig -ODebug -Mlexer=/Users/jayansunil/Dev/zig/requote/src/lexer.zig -ODebug -Mwriter=/Users/jayansunil/Dev/zig/requote/src/writer.zig -ODebug -Mclap=/Users/jayansunil/.cache/zig/p/clap-0.11.0-oBajB-TnAQC7yPLnZRT5WzHZ_4Ly4dX2OILskli74b9H/clap.zig --cache-dir .zig-cache --global-cache-dir /Users/jayansunil/.cache/zig --name requote --zig-lib-dir /opt/homebrew/Caskroom/zig@nightly/0.15.0-dev.703+597dd328e/zig-aarch64-macos-0.15.0-dev.703+597dd328e/lib/ --listen=-
Build Summary: 0/3 steps succeeded; 1 failed
0.15.0-dev.703+597dd328e
That's not Zig version 0.15.0. Looking up the commit hash really fast reveals a commit before 0.15.0 was release https://github.com/ziglang/zig/commit/597dd328e