Skip to content

zls 0.14 build on save diagnostic not refreshing on macOS 15.3.1 #2221

Open
@Sped0n

Description

@Sped0n

Zig Version

0.14.0

ZLS Version

0.14.0

Client / Code Editor / Extensions

nvim 0.10.4 with nvim-lspconfig

Steps to Reproduce and Observed Behavior

  1. clone https://github.com/Sped0n/zh (commit 13832c3)
  2. open src/input.zig, go to line 143, change .pop() to .popOrNull()
  3. save file, no build on save error appeared (it works in 0.13)
  4. restart lsp, it give build on save error (zls: no field or member function named 'popOrNull' in 'array_list.ArrayListAligned(u8,null)')
  5. change .popOrNull() back to .pop(), then save
  6. after saved, build on save error persist (doesnt refresh)
  7. restart lsp, build on save error no longer shows

Expected Behavior

build on save diagnostic could refresh normally after save

Relevant log output

----- zls log -----
info  ( main ): Starting ZLS      0.14.0 @ '/Users/spedon/.local/share/mise/installs/zls/0.14.0/zls'
info  ( main ): Log File:         /Users/spedon/Library/Caches/zls/zls.log (info)
info  (server): Client Info:      Neovim-0.10.4
info  (server): Autofix Mode:     source.fixall
info  (server): added Workspace Folder: file:///Users/spedon/eden/zig/zh
info  (server): Set config option 'builtin_path' to "/Users/spedon/Library/Caches/zls/builtin.zig"
info  (server): Set config option 'zig_lib_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/lib"
info  (server): Set config option 'zig_exe_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/bin/zig"
info  (server): Set config option 'build_runner_path' to "/Users/spedon/Library/Caches/zls/build_runner/66ed948cb34b142db738951608c6140d/build_runner.zig"
info  (server): Set config option 'global_cache_path' to "/Users/spedon/Library/Caches/zls"
info  (server): Loaded config:      /Users/spedon/Library/Application Support/zls.json
info  (server): Set config option 'enable_build_on_save' to true
info  (store ): Loaded build file 'file:///Users/spedon/eden/zig/zh/build.zig'
info  (server): trying to start Build-On-Save for 'file:///Users/spedon/eden/zig/zh'
info  ( main ): Starting ZLS      0.14.0 @ '/Users/spedon/.local/share/mise/installs/zls/0.14.0/zls'
info  ( main ): Log File:         /Users/spedon/Library/Caches/zls/zls.log (info)
info  (server): Client Info:      Neovim-0.10.4
info  (server): Autofix Mode:     source.fixall
info  (server): added Workspace Folder: file:///Users/spedon/eden/zig/zh
info  (server): Set config option 'builtin_path' to "/Users/spedon/Library/Caches/zls/builtin.zig"
info  (server): Set config option 'zig_lib_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/lib"
info  (server): Set config option 'zig_exe_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/bin/zig"
info  (server): Set config option 'build_runner_path' to "/Users/spedon/Library/Caches/zls/build_runner/66ed948cb34b142db738951608c6140d/build_runner.zig"
info  (server): Set config option 'global_cache_path' to "/Users/spedon/Library/Caches/zls"
info  (server): Loaded config:      /Users/spedon/Library/Application Support/zls.json
info  (server): Set config option 'enable_build_on_save' to true
info  (store ): Loaded build file 'file:///Users/spedon/eden/zig/zh/build.zig'
info  (server): trying to start Build-On-Save for 'file:///Users/spedon/eden/zig/zh'
info  ( main ): Starting ZLS      0.14.0 @ '/Users/spedon/.local/share/mise/installs/zls/0.14.0/zls'
info  ( main ): Log File:         /Users/spedon/Library/Caches/zls/zls.log (info)
info  (server): Client Info:      Neovim-0.10.4
info  (server): Autofix Mode:     source.fixall
info  (server): added Workspace Folder: file:///Users/spedon/eden/zig/zh
info  (server): Set config option 'builtin_path' to "/Users/spedon/Library/Caches/zls/builtin.zig"
info  (server): Set config option 'zig_lib_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/lib"
info  (server): Set config option 'zig_exe_path' to "/Users/spedon/.local/share/mise/installs/zig/0.14.0/bin/zig"
info  (server): Set config option 'build_runner_path' to "/Users/spedon/Library/Caches/zls/build_runner/66ed948cb34b142db738951608c6140d/build_runner.zig"
info  (server): Set config option 'global_cache_path' to "/Users/spedon/Library/Caches/zls"
info  (server): Loaded config:      /Users/spedon/Library/Application Support/zls.json
info  (server): Set config option 'enable_build_on_save' to true
info  (store ): Loaded build file 'file:///Users/spedon/eden/zig/zh/build.zig'
info  (server): trying to start Build-On-Save for 'file:///Users/spedon/eden/zig/zh'

lsplog.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions