-
-
Notifications
You must be signed in to change notification settings - Fork 412
Description
Zig Version
0.16.0-dev.2535+b5bd49460
ZLS Version
0.16.0-dev.201+a8c5850b
Client / Code Editor / Extensions
NVIM v0.12.0-dev-2221+ged8fbd2e29 /vim.lsp
Steps to Reproduce and Observed Behavior
Set up the neovim + zsl using the zsl manual.
I get a Failed Loading build configuration message.
Expected Behavior
I expect the LS to be fully functional, but only some features are available. For example, 'go to definition' works for standard library code, but it fails within project files.
Attach ZLS log output
I had to initialize Jujutsu in ~/.cache/zls to capture this issue, as zls.log is truncated every time it is written to.
3919: info ( main ): Starting ZLS 0.16.0-dev.201+a8c5850b @ '/usr/bin/zls'
3920: info ( main ): Log File: /home/@@@@@@@@@@/.cache/zls/zls.log (info)
3921: info (server): Client Info: Neovim (0.12.0-dev+ged8fbd2e29)
3922: info (server): added Workspace Folder: file:///home/@@@@@@@@@@/Projects/Gitlab/optzig
3923: info (server): Set config option 'enable_build_on_save' to true
3924: info (server): Set config option 'builtin_path' to "/home/@@@@@@@@@@/.cache/zls/builtin.zig"
3925: info (server): Set config option 'zig_lib_path' to "/usr/lib/zig"
3926: info (server): Set config option 'zig_exe_path' to "/usr/bin/zig"
3927: info (server): Set config option 'build_runner_path' to "/home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig"
3928: info (server): Set config option 'global_cache_path' to "/home/@@@@@@@@@@/.cache/zls"
3929: info (server): trying to start Build-On-Save for 'file:///home/@@@@@@@@@@/Projects/Gitlab/optzig'
3930: info (store ): Loaded build file 'file:///home/@@@@@@@@@@/Projects/Gitlab/optzig/build.zig'
3931: error ( diag ): failed to receive message from zig build-on-save runner: error.EndOfStream
3932: warn ( diag ): zig build-on-save runner exited with with code: 2and stderr:
3933: /home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig:533:34: error: member function expected 3 argument(s), found 2
3934: return try w.fs_watch.wait(gpa, switch (timeout) {
3935: ~~~~~~~~~~^~~~~
3936: /usr/lib/zig/std/Build/Watch.zig:966:5: note: function declared here
3937: pub fn wait(w: *Watch, gpa: Allocator, io: Io, timeout: Timeout) !WaitResult {
3938: ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3939: referenced by:
3940: main: /home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig:473:40
3941: callMain [inlined]: /usr/lib/zig/std/start.zig:678:88
3942: callMainWithArgs [inlined]: /usr/lib/zig/std/start.zig:629:20
3943: posixCallMainAndExit: /usr/lib/zig/std/start.zig:582:38
3944: 2 reference(s) hidden; use '-freference-trace=6' to see all references
3945:
3946: error (store ): Failed to execute build runner to collect build configuration, command:
3947: cd /home/@@@@@@@@@@/Projects/Gitlab/optzig;/usr/bin/zig build --build-runner /home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig --zig-lib-dir /usr/lib/zig
3948: Error: /home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig:533:34: error: member function expected 3 argument(s), found 2
3949: return try w.fs_watch.wait(gpa, switch (timeout) {
3950: ~~~~~~~~~~^~~~~
3951: /usr/lib/zig/std/Build/Watch.zig:966:5: note: function declared here
3952: pub fn wait(w: *Watch, gpa: Allocator, io: Io, timeout: Timeout) !WaitResult {
3953: ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3954: referenced by:
3955: main: /home/@@@@@@@@@@/.cache/zls/build_runner/6f7a18ca8cd044bf588304efaa67eee0/build_runner.zig:473:40
3956: callMain [inlined]: /usr/lib/zig/std/start.zig:678:88
3957: callMainWithArgs [inlined]: /usr/lib/zig/std/start.zig:629:20
3958: posixCallMainAndExit: /usr/lib/zig/std/start.zig:582:38
3959: 2 reference(s) hidden; use '-freference-trace=6' to see all references