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

compatibility: termios removed in zig 0.12 #25

Closed
glyh opened this issue Jun 24, 2024 · 1 comment
Closed

compatibility: termios removed in zig 0.12 #25

glyh opened this issue Jun 24, 2024 · 1 comment

Comments

@glyh
Copy link

glyh commented Jun 24, 2024

/home/lyh/.cache/zig/p/1220b7658283f34fcf9bae428ab8fe17f79e219e06754363d9ed03eca2461c703a91/src/term.zig:8:40: error: root struct of file 'os' has no member named 'termios'
const termios = if (!is_windows) std.os.termios else struct { inMode: w.DWORD, outMode: w.DWORD };
                                 ~~~~~~^~~~~~~~
/usr/lib/zig/std/os.zig:1:1: note: struct declared here
//! This file contains thin wrappers around OS-specific APIs, with these
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
referenced by:
    enableRawMode: /home/lyh/.cache/zig/p/1220b7658283f34fcf9bae428ab8fe17f79e219e06754363d9ed03eca2461c703a91/src/term.zig:37:44
    enableRawMode: /home/lyh/.cache/zig/p/1220b7658283f34fcf9bae428ab8fe17f79e219e06754363d9ed03eca2461c703a91/src/main.zig:10:27
    remaining reference traces hidden; use '-freference-trace' to see all reference traces
error: the following command failed with 1 compilation errors:
/usr/bin/zig build-exe -ODebug --dep linenoise -Mroot=/home/lyh/Documents/Knowledge/Computer Science/Programming Languages/Macros/mal/src/main.zig --dep wcwidth -Mlinenoise=/home/lyh/.cache/zig/p/1220b7658283f34fcf9bae428ab8fe17f79e219e06754363d9ed03eca2461c703a91/src/main.zig -Mwcwidth=/home/lyh/.cache/zig/p/122033a86b93c9340971cc7b81de98a2d4ad5ee35724723bb7165655be0b4d95098b/src/main.zig --cache-dir /home/lyh/Documents/Knowledge/Computer Science/Programming Languages/Macros/mal/zig-cache --global-cache-dir /home/lyh/.cache/zig --name mal --listen=- 
Build Summary: 0/5 steps succeeded; 1 failed (disable with --summary none)
run transitive failure
└─ run mal transitive failure
   ├─ zig build-exe mal Debug native 1 errors
   └─ install transitive failure
      └─ install mal transitive failure
         └─ zig build-exe mal Debug native (reused)
error: the following build command failed with exit code 1:
/home/lyh/Documents/Knowledge/Computer Science/Programming Languages/Macros/mal/zig-cache/o/28a6499e26842dc5680e32be865ef1f1/build /usr/bin/zig /home/lyh/Documents/Knowledge/Computer Science/Programming Languages/Macros/mal /home/lyh/Documents/Knowledge/Computer Science/Programming Languages/Macros/mal/zig-cache /home/lyh/.cache/zig --seed 0x23fac0ad -Z769883b3d3451957 run
@joachimschmidt557
Copy link
Owner

Fixed by #26

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