Tracking issue for regressions regarding the Zig build system protocol
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:
@importresolution for packages in build files ziglang/zig#36387@importresolution in modules that are only accessible usingstd.Build.Dependency.moduleziglang/zig#36388@importresolution 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.
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.
It seems that zls.build.json is no longer used, although still present in the documentation: https://zigtools.org/zls/configure/per-build/
7. It seems that
zls.build.jsonis no longer used, although still present in the documentation: https://zigtools.org/zls/configure/per-build/
Fixed in df433bf60563ba891fb497c32a335f19b4a03d0c.