zls icon indicating copy to clipboard operation
zls copied to clipboard

Tracking issue for regressions regarding the Zig build system protocol

Open techatrix opened this issue 1 month ago • 3 comments

During the Zig 0.17 development cycle, the separation of maker process and configurer process has broken critical build system integration features in ZLS. Some of them have since been restored using the build system protocol but various regressions remain:

  • @import resolution for packages in build files ziglang/zig#36387
  • @import resolution in modules that are only accessible using std.Build.Dependency.module ziglang/zig#36388
  • @import resolution to install prefix relative files (unclear whether this is a legitimate use case)
  • file watching doesn't work on windows ziglang/zig#37236 (changes are only detected through the editor)

These are anticipated to be resolved during the 0.18 release cycle. Or in Zig/ZLS 0.17.1 depending on Zig's prioritization of the given issues.

techatrix avatar Oct 14 '26 17:10 techatrix

What about compile error reporting that used to be provied by build_on_save? Is that something zls won't be able to do anymore?

EDIT: Nevermind, it works. I just needed to remove the build_on_save configuration from config of zls.

psznm avatar Oct 14 '26 17:10 psznm

It seems that zls.build.json is no longer used, although still present in the documentation: https://zigtools.org/zls/configure/per-build/

bandithedoge avatar Oct 23 '26 10:10 bandithedoge

7. It seems that zls.build.json is no longer used, although still present in the documentation: https://zigtools.org/zls/configure/per-build/

Fixed in df433bf60563ba891fb497c32a335f19b4a03d0c.

techatrix avatar Oct 24 '26 20:10 techatrix