Replies: 3 comments 2 replies
|
This looks like a Zig/ZLS version-channel mismatch rather than a project config problem: ZLS hover text for builtins comes from metadata bundled into the ZLS binary, not live from the In the ZLS source, builtin hover docs are generated from <p>Deprecated. Equivalent to {#link|@trunc#}.</p>
I would first check which zig version
zls --version
which zlsThen compare that with your editor's ZLS path/extension setting. If ZLS came from a nightly/main artifact or was built from the current repository, use a matching Zig dev build. If you want Zig 0.16.0 docs and behavior, use the ZLS release/channel meant for Zig 0.16.0 and restart the editor so the old language server process is not still running. If your editor really is launching an official 0.16.0 ZLS binary and it still embeds the newer If this was just a mixed Zig/ZLS channel, marking this answered would help the next person check the language server binary first. |
|
You are not missing much. With those links, this no longer looks like ZLS pulling from the wrong branch. If So yes, I would report it against the Zig website/docs generation path rather than ZLS. The useful issue body is basically the three-way comparison you already made:
That keeps the report focused: ZLS is matching the tagged source docs, while the published 0.16.0 website docs appear stale or generated from the wrong input. |
|
Nice, that upstream issue and the local-doc note are useful. I agree this is better left as a Zig website/docs generation problem now; ZLS is matching the tagged source docs, and your Codeberg issue captures the mismatch clearly for anyone who lands here later. |
Uh oh!
There was an error while loading. Please reload this page.
I'm using zig and zls at version 0.16.0 (in screenshot). But when I take a look at the documentation for
@intFromFloat, for example, it says deprecated, which is true for master branch of zig, but not the 0.16.0 version.Please let me know if I'm missing something here.
Screenshot:

All reactions