Comments (4)
Interesting! The issue I have is the opposite! The latest stable release version as of today is 0.11, and I installed it through my OS package manager (pacman, on Arch Linux). And in this version, zig init
is an unknown command:
error: unknown command: init
But, the commands init-exe
and init-lib
do exist, and running the former does work:
❯ zig init-exe
info: Created build.zig
info: Created src/main.zig
info: Next, try `zig build --help` or `zig build run`
Which matches the version of the docs you linked to! But, the current master
has the docs:
www.ziglang.org/content/learn/getting-started.en.md
Lines 116 to 134 in b66e89a
Which makes me think that the docs have been updated to some newer version (e.g 0.12) that isn't stable yet, and can result in confusing behaviour for new users 😅
from www.ziglang.org.
I'm curious what the reason was to merge
init-exe
andinit-lib
?
Couldn't find anything so far 😇
from www.ziglang.org.
this issue still persists in 0.12 init works. It would be nice to get a deprecation notice
from www.ziglang.org.
I'm curious what the reason was to merge init-exe
and init-lib
?
Couldn't find anything so far 😇
from www.ziglang.org.
Related Issues (20)
- No new dev release on the website HOT 1
- Wrong fact in the "Why Zig When There is Already C++, D, and Rust?" article HOT 1
- Spelling mistake in the build.zig.zon example file HOT 3
- Language names inside the footer are broken in the middle of the word
- Build Tarballs is failing
- The `Options for Conditional Compilation` code snippet encounters an error HOT 2
- Hard-to-read text in `why_zig_rust_d_cpp` HOT 3
- Discrepancy between @src when invoked via `zig build` or in project code HOT 1
- 0.12.0 release notes link to llvm 16 release notes HOT 1
- signing keys on https://ziglang.org/download/ HOT 2
- Putting 0.12 Release above master on the download page HOT 1
- Zig Standard library documentation in 0.12 language reference linking to master HOT 1
- Mark current stable release in download.json HOT 6
- hugo serve: Error executing zigdoctest for [assets/.../1-simple-executable/build.zig]: AccessDenied HOT 1
- ziglang.org/download/index.json is often out of date HOT 1
- Typo: a small typo in the Russian version of the documentation HOT 1
- Language Reference: `master` hyperlink broken when `0.13.0` is selected. HOT 1
- In-Depth Overview states that "The reference Zig compiler is not completely self-hosted yet" this is not true anymore HOT 1
- Re-design home (landing) page HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from www.ziglang.org.