Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails with zig 0.14-dev #1

Closed
begoon opened this issue Dec 24, 2024 · 3 comments
Closed

Compilation fails with zig 0.14-dev #1

begoon opened this issue Dec 24, 2024 · 3 comments

Comments

@begoon
Copy link

begoon commented Dec 24, 2024

run
└─ run main
   └─ zig build-exe main Debug native 1 errors
/Users/alexander/.cache/zig/p/12209a8a991121bba3b21f31d275588690dc7c0d7fa9c361fd892e782dd88e0fb2ba/src/lib.zig:100:46: error: no field named 'Enum' in union 'builtin.Type'
                    for (@typeInfo(AnsiCode).Enum.fields) |field| {
                                             ^~~~
/Users/alexander/.zig/lib/std/builtin.zig:556:18: note: union declared here
pub const Type = union(enum) {
                 ^~~~~
main.zig:17:34: note: called from here
    std.debug.print(chroma.format("{blue}{underline}Eventually{reset}, the {red}formatting{reset} looks like {130;43;122}{s}!\n"), .{"this"});
                    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    main: /Users/alexander/.zig/lib/std/start.zig:617:37
    comptime: /Users/alexander/.zig/lib/std/start.zig:58:30
    2 reference(s) hidden; use '-freference-trace=4' to see all references
@adia-dev
Copy link
Owner

Well breaking change in the new 0.14 version 🤷🏿
I fixed it and pushed it on the 0.14.x branch.

You can use:

zig fetch --save https://github.com/adia-dev/chroma-zig/archive/refs/heads/0.14.x.tar.gz

Don't hesitate to tell me if it works or if you still have issues with it 😄

@begoon
Copy link
Author

begoon commented Dec 24, 2024

@adia-dev I have just tested, and everything works with 0.14-dev. Thanks.

@begoon
Copy link
Author

begoon commented Dec 24, 2024

Fixed as described by @adia-dev above.

@begoon begoon closed this as completed Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants