zls icon indicating copy to clipboard operation
zls copied to clipboard

Configuration option to disable the build runner

Open pfgithub opened this issue 7 months ago • 3 comments

The build runner is really annoying to have enabled, especially in 0.16.0 - if you open a file within zig-pkg, it runs the build there and generates a new zig-pkg folder inside the existing zig-pkg folder when all you did was open a file. It will even download packages on its own. It also makes error underlines that don't go away until you restart zls.

pfgithub avatar Apr 15 '26 21:04 pfgithub

This issue also affected me. Because new dev versions of zig don't have the --build-runner argument, I can't work correctly with module links from build.zig (it just says unknow for the module type).

SergeyL-club avatar Jun 21 '26 10:06 SergeyL-club

Instead of disabling the build runner, the zig-pkg directory should be (recursively) looked up in a parent directory similar to how zig build looks for a build.zig file. This will likely need some upstream changes in the compiler as well.

techatrix avatar Jun 25 '26 20:06 techatrix

This issue also affected me. Because new dev versions of zig don't have the --build-runner argument, I can't work correctly with module links from build.zig (it just says unknow for the module type).

See #3208

techatrix avatar Jun 25 '26 20:06 techatrix