zig icon indicating copy to clipboard operation
zig copied to clipboard

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software.

Results 2216 zig issues
Sort by recently updated
recently updated
newest added

To support this case: https://github.com/ziglang/zig/pull/15705#issuecomment-1551800247 Adding a `parseFromValue()` including a custom parse function means that we can parse complex json documents with polymorphic objects by using custom code to determine...

### Zig Version 0.11.0-dev.3653+1253d591b ### Steps to Reproduce and Observed Behavior ``` [meghan@nixos:~]$ uname -a Linux nixos 5.15.102 #1-NixOS SMP Mon Mar 13 09:20:37 UTC 2023 x86_64 GNU/Linux ``` ```...

bug
regression

#15970 was elegant, but ended up breaking another setup (like every previous variant of it) Relevant bug #16056 a bit ugly and only has code for the Elf linker, but...

The following test fails since NonCanonical is not handled ``` test "foo" { std.net.Ip4Address.resolveIp("1.1.1.1", 0) catch unreachable; } /usr/lib/zig/std/net.zig:240:60: error: switch must handle all possibilities if (parse(name, port)) |ip4| return...

closes #16000 I don't really understand this code, but it seems to fix it and the other test cases pass :shrug:

### Zig Version 0.11.0-dev.3380+7e0a02ee2 ### Steps to Reproduce and Observed Behavior On a computer running macOS 14 Sonoma (23A5257q): - zig init-exe && zig build-exe src/main.zig ```console MachO Flush... error(link):...

os-macos
arch-x86_64
arch-aarch64

The motivating case for this is that currently when a test fails the CI log will include ~5k lines of listing steps that succeeded.

Anecdote 1: The generic version is way more popular than the non-generic one in Zig codebase: git grep -w alignForward | wc -l 56 git grep -w alignForwardGeneric | wc...