joachimschmidt557 / linenoize

A port of linenoise to zig
MIT License
55 stars 9 forks source link

compatibility: termios removed in zig 0.12 #25

Closed glyh closed 3 months ago

glyh commented 4 months ago
/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 commented 3 months ago

Fixed by #26