-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.
Milestone
Description
Zig Version
0.16.0-dev.1204+389368392
Steps to Reproduce and Observed Behavior
After a clean build from Git via CMake, running zig std from the build directory fails:
$ ./stage3/bin/zig std
stage3/lib/zig/compiler/std-docs.zig:61:25: error: root source file struct 'std' has no member named 'net'
const address = std.net.Address.parseIp("127.0.0.1", listen_port) catch unreachable;
^~~
stage3/lib/zig/std/std.zig:1:1: note: struct declared here
pub const ArrayHashMap = array_hash_map.ArrayHashMap;
^~~
referenced by:
callMain [inlined]: stage3/lib/zig/std/start.zig:696:37
callMainWithArgs [inlined]: stage3/lib/zig/std/start.zig:656:20
posixCallMainAndExit: stage3/lib/zig/std/start.zig:612:36
2 reference(s) hidden; use '-freference-trace=5' to see all references
There are several other things that need fixing to get this working, but this is the first thing that spits out an error.
(I've reported this as a bug rather than provided a pull request because I suspect there will be yet more API breakage to come during the current std.Io -ification project.)
Expected Behavior
zig std should work as per the current (0.15.2) release and bring up the std module documentation in a web browser.
mike-git374, erffy and RohanVashisht1234
Metadata
Metadata
Assignees
Labels
bugObserved behavior contradicts documented or intended behaviorObserved behavior contradicts documented or intended behaviorregressionIt worked in a previous version of Zig, but stopped working.It worked in a previous version of Zig, but stopped working.