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

WIndows issues #19

Open
Anulo2 opened this issue Nov 9, 2024 · 0 comments
Open

WIndows issues #19

Anulo2 opened this issue Nov 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Anulo2
Copy link

Anulo2 commented Nov 9, 2024

OS: Windows 11 Pro N 23H2
Zig version: 0.14.0-dev.1911+3bf89f55c
Tuile version: 0.1.3

I'm kinda new to Zig but found this library and thought it was interesting (I'm a pretty big fan of TUI's) and wanted to try it out.
Got the examples folder, replaced the dependencies in the build.zig.zon with

  .dependencies = .{
        .tuile = .{
            .url = "https://github.com/akarpovskii/tuile/archive/refs/tags/v0.1.3.tar.gz",
            .hash = "122097cec88e4270a2f14d1bcb85120cbe9a754c42faf5ad5a909c4f1d972e1c1f6c",
        },
    },

and ran zig build demo -Dbackend=crossterm

Instad of building the demo correectly it gives an error:

C:\Users\Anulo\AppData\Local\zig\p\122097cec88e4270a2f14d1bcb85120cbe9a754c42faf5ad5a909c4f1d972e1c1f6c\build.zig:123:37: error: no field named 'Enum' in union 'builtin.Type'
                const fields = info.Enum.fields;
                                    ^~~~
C:\Users\Anulo\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\builtin.zig:268:18: note: union declared here
pub const Type = union(enum) {
                 ^~~~~
referenced by:
    init: C:\Users\Anulo\AppData\Local\zig\p\122097cec88e4270a2f14d1bcb85120cbe9a754c42faf5ad5a909c4f1d972e1c1f6c\build.zig:104:40
    build: E:\Programmazione\Linguaggi_Programmazione\Zig\2024_11_09_TUI-tests\build.zig:7:55
    6 reference(s) hidden; use '-freference-trace=8' to see all references
C:\Users\Anulo\AppData\Local\zig\p\1220c7d071bdde500955b0d5b807cb1a66687b915a020c3e87496623243912c77bed\build.zig:210:42: error: no field named 'Struct' in union 'builtin.Type'
    inline for (@typeInfo(@TypeOf(args)).Struct.fields) |field| {
                                         ^~~~~~
C:\Users\Anulo\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\builtin.zig:268:18: note: union declared here
pub const Type = union(enum) {
                 ^~~~~
C:\Users\Anulo\AppData\Local\zig\p\1220c7d071bdde500955b0d5b807cb1a66687b915a020c3e87496623243912c77bed\build.zig:227:46: error: no field named 'Struct' in union 'builtin.Type'
    inline for (@typeInfo(@TypeOf(new_args)).Struct.fields) |field| {
                                             ^~~~~~
C:\Users\Anulo\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\builtin.zig:268:18: note: union declared here
pub const Type = union(enum) {
                 ^~~~~
C:\Users\Anulo\AppData\Local\zig\p\1220c7d071bdde500955b0d5b807cb1a66687b915a020c3e87496623243912c77bed\src\rust.zig:112:14: error: no field named 'aarch64_32' in enum 'Target.Cpu.Arch'
            .aarch64_32 => error.Unsupported,
            ~^~~~~~~~~~
C:\Users\Anulo\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\Target.zig:1207:22: note: enum declared here
    pub const Arch = enum {
                     ^~~~
C:\Users\Anulo\AppData\Local\zig\p\1220c7d071bdde500955b0d5b807cb1a66687b915a020c3e87496623243912c77bed\src\rust.zig:226:14: error: no field named 'kfreebsd' in enum 'Target.Os.Tag'
            .kfreebsd => .freebsd,
            ~^~~~~~~~
C:\Users\Anulo\AppData\Local\Microsoft\WinGet\Packages\zig.zig_Microsoft.Winget.Source_8wekyb3d8bbwe\zig-windows-x86_64-0.13.0\lib\std\Target.zig:18:21: note: enum declared here
    pub const Tag = enum {
                    ^~~~
@Anulo2 Anulo2 added the bug Something isn't working label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant