Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document can get out of sync when modified through external programs like git #1987

Open
Techatrix opened this issue Aug 2, 2024 · 2 comments
Labels
bug Something isn't working editor:vscode

Comments

@Techatrix
Copy link
Member

Techatrix commented Aug 2, 2024

Zig Version

0.14.0-dev.823+624fa8523

Zig Language Server Version

d8fa63a

Client / Code Editor / Extensions

VS Code with vscode-zig

Steps to Reproduce and Observed Behavior

  • open the ZLS repository in VS Code
  • git checkout master
  • open main.zig
  • restart ZLS
  • git checkout 0.12.0 (or any other commit that is very old)
  • open Server.zig (this needs to be as quickly as possible after the checkout)

Here is a video demo:

output_video.mp4

Expected Behavior

correctly keep the document in sync with the editor and file system.

Relevant log output

zls.json
info  (server): Client Info:      VSCodium-1.88.1
debug (server): Offset Encoding:  utf-16
info  (server): Workspace Folder: 'file:///home/techatrix/repos/zls'
info  (server): Set config option 'global_cache_path' to '/home/techatrix/.cache/zls'
debug (server): Took 3ms to process request-0-initialize on Thread 23604
debug (server): Dynamically registering method 'workspace/didChangeConfiguration'
debug (server): Took 1ms to process notification-initialized on Thread 23604
info  (store ): Loaded build file 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/main.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/main.zig'
debug (server): Took 5ms to process notification-textDocument/didOpen on Thread 23604
debug (server): Took 0ms to process response-"register-workspace/didChangeConfiguration" on Thread 23604
info  (server): Set config option 'semantic_tokens' to 'partial'
info  (server): Set config option 'builtin_path' to '/home/techatrix/.cache/zls/builtin.zig'
info  (server): Set config option 'zig_lib_path' to '/nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib'
info  (server): Set config option 'zig_exe_path' to '/nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/bin/zig'
info  (server): Set config option 'build_runner_path' to '/home/techatrix/.cache/zls/build_runner/a83a13b7964ed434f58d8168aeaf68bf/build_runner.zig'
debug (server): Took 15ms to process response-"i_haz_configuration" on Thread 23604
debug (server): Took 3ms to process request-1-textDocument/documentSymbol on Thread 23604
debug (server): Took 9ms to process request-2-textDocument/codeAction on Thread 23607
debug (server): Took 0ms to process response-"semantic_tokens_refresh" on Thread 23604
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/std.zig'
debug (store ): Opened document 'file:///home/techatrix/.cache/zls/builtin.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/zls.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/zls.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/.zig-cache/c/4c11a8c9f9d38b70a50aa85d72896747/options.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/tracy.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/tracy.zig'
debug (store ): Opened document 'file:///home/techatrix/.cache/zig/p/12209d2738a2e1dbd3781c2e5f01a2ea877dcfeea53efdfa1913247297d328e6b207/known-folders.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/binned_allocator.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/binned_allocator.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/log.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/builtin.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fs.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fs/File.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/debug.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/io.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/posix.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/mem.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/mem/Allocator.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fs/path.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fs/Dir.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/configuration.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/configuration.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/.zig-cache/c/cb38738a2b06d2970f903323ad5a61ba/options.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/stringify.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/process.zig'
debug (server): Took 2ms to process request-4-textDocument/foldingRange on Thread 23607
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/SemanticVersion.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/meta.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/heap.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/heap/general_purpose_allocator.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/debug.zig'
info  (store ): Loaded build file 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/build.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/src/lsp.zig' as 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/build.zig'
debug (store ): Opened document 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/src/lsp.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/Server.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/Server.zig'
debug (server): Took 352ms to process request-3-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 0ms to process request-5-textDocument/hover on Thread 23606
debug (server): Took 3ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-textDocument/didOpen on Thread 23604
debug (server): Took 12ms to process request-7-textDocument/documentSymbol on Thread 23606
debug (server): Took 18ms to process request-6-textDocument/codeAction on Thread 23605
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/Config.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/DocumentStore.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/DocumentStore.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/.zig-cache/o/ac2452cfe2ee2247a32b3ae7e28c97e9/lsp_types.zig' as 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/build.zig'
debug (store ): Opened document 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/.zig-cache/o/ac2452cfe2ee2247a32b3ae7e28c97e9/lsp_types.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/analysis.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/analysis.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/ast.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/offsets.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/zig.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/zig/Ast.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/diff.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/diff.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fifo.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/analyser/analyser.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/atomic.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/static.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/analyser/InternPool.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/analyser/InternPool.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/build_runner/BuildRunnerVersion.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/build_runner/BuildRunnerVersion.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/signature_help.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/signature_help.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/array_list.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/references.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/references.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/semantic_tokens.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/semantic_tokens.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/inlay_hints.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/inlay_hints.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/fmt.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/code_actions.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/code_actions.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/folding_range.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/folding_range.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/document_symbol.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/document_symbol.zig'
debug (server): Took 17ms to process request-10-textDocument/codeAction on Thread 23606
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/completions.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/completions.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/goto.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/goto.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/diagnostics.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/features/hover.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/diagnostics.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/hover.zig'
debug (server): Took 17ms to process request-12-textDocument/foldingRange on Thread 23606
debug (server): Took 20ms to process request-11-textDocument/foldingRange on Thread 23605
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/features/selection_range.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/Thread.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/Thread/Pool.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/Thread/WaitGroup.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/Thread/Mutex.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/heap/arena_allocator.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/crypto.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/crypto/tlcsprng.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/Random.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/dynamic.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/hash_map.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/array_hash_map.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/src/parser.zig' as 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/build.zig'
debug (store ): Opened document 'file:///home/techatrix/.cache/zig/p/1220518fd5cefa481497bb3484ffab48a42e69c31088e37f52ea361f9ce884d2131c/src/parser.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/crypto/siphash.zig'
debug (store ): Resolved build file of 'file:///home/techatrix/repos/zls/src/translate_c.zig' as 'file:///home/techatrix/repos/zls/build.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/translate_c.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/process/Child.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/hashmap.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/math.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/zig/tokenizer.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/scanner.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/time.zig'
debug (store ): Opened document 'file:///home/techatrix/repos/zls/src/lsp.zig'
debug (server): Took 512ms to process request-9-textDocument/semanticTokens/range on Thread 23608
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/os.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/os/windows.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/json/fmt.zig'
debug (server): Took 717ms to process request-8-textDocument/semanticTokens/full on Thread 23607
debug (server): Took 10ms to process request-13-textDocument/codeAction on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process request-14-textDocument/codeAction on Thread 23608
debug (server): Took 9ms to process request-15-textDocument/foldingRange on Thread 23607
debug (server): Took 7ms to process request-16-textDocument/foldingRange on Thread 23606
debug (server): Took 6ms to process request-18-textDocument/documentSymbol on Thread 23608
debug (server): Took 103ms to process request-17-textDocument/semanticTokens/full on Thread 23605
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process request-19-textDocument/codeAction on Thread 23606
debug (server): Took 7ms to process request-20-textDocument/foldingRange on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 21ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 8ms to process request-21-textDocument/foldingRange on Thread 23607
debug (server): Took 111ms to process request-22-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 24ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 8ms to process request-23-textDocument/foldingRange on Thread 23605
debug (server): Took 0ms to process request-24-textDocument/codeAction on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 21ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 16ms to process request-25-textDocument/foldingRange on Thread 23608
debug (server): Took 117ms to process request-26-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 9ms to process request-27-textDocument/foldingRange on Thread 23607
debug (server): Took 10ms to process request-28-textDocument/codeAction on Thread 23606
debug (server): Took 7ms to process request-29-textDocument/foldingRange on Thread 23608
debug (server): Took 6ms to process request-30-textDocument/documentSymbol on Thread 23605
debug (server): Took 10ms to process request-31-textDocument/codeAction on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 10ms to process request-32-textDocument/codeAction on Thread 23608
debug (server): Took 7ms to process request-33-textDocument/foldingRange on Thread 23605
debug (server): Took 8ms to process request-34-textDocument/foldingRange on Thread 23607
debug (server): Took 11ms to process request-36-textDocument/documentSymbol on Thread 23608
debug (server): Took 98ms to process request-35-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 23ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 11ms to process request-38-textDocument/codeAction on Thread 23605
debug (server): Took 106ms to process request-37-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-$/cancelRequest on Thread 23605
debug (server): Took 9ms to process request-39-textDocument/foldingRange on Thread 23608
debug (server): Took 11ms to process request-40-textDocument/codeAction on Thread 23606
debug (server): Took 10ms to process request-41-textDocument/foldingRange on Thread 23607
debug (server): Took 7ms to process request-42-textDocument/foldingRange on Thread 23605
debug (server): Took 9ms to process request-44-textDocument/documentSymbol on Thread 23606
debug (server): Took 109ms to process request-43-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 0ms to process request-45-textDocument/documentHighlight on Thread 23607
debug (server): Took 11ms to process request-46-textDocument/codeAction on Thread 23605
debug (server): Took 0ms to process request-47-textDocument/documentHighlight on Thread 23606
debug (server): Took 10ms to process request-48-textDocument/codeAction on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 14ms to process request-49-textDocument/codeAction on Thread 23605
debug (server): Took 7ms to process request-50-textDocument/foldingRange on Thread 23606
debug (server): Took 11ms to process request-51-textDocument/foldingRange on Thread 23608
debug (server): Took 98ms to process request-52-textDocument/semanticTokens/full on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 22ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 23ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 10ms to process request-53-textDocument/codeAction on Thread 23608
debug (server): Took 9ms to process request-54-textDocument/foldingRange on Thread 23607
debug (server): Took 10ms to process request-57-textDocument/foldingRange on Thread 23608
debug (server): Took 87ms to process request-55-textDocument/documentHighlight on Thread 23605
debug (server): Took 119ms to process request-56-textDocument/semanticTokens/full on Thread 23606
debug (server): Took 6ms to process request-58-textDocument/documentSymbol on Thread 23607
debug (server): Took 10ms to process request-59-textDocument/codeAction on Thread 23608
debug (server): Took 78ms to process request-60-textDocument/documentHighlight on Thread 23605
debug (server): Took 11ms to process request-61-textDocument/codeAction on Thread 23606
debug (server): Took 73ms to process request-62-textDocument/documentHighlight on Thread 23607
debug (server): Took 0ms to process request-63-textDocument/documentHighlight on Thread 23608
debug (server): Took 9ms to process request-64-textDocument/codeAction on Thread 23605
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 20ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 24ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 11ms to process request-65-textDocument/codeAction on Thread 23608
debug (server): Took 8ms to process request-66-textDocument/foldingRange on Thread 23605
debug (server): Took 7ms to process request-68-textDocument/foldingRange on Thread 23607
debug (server): Took 112ms to process request-67-textDocument/semanticTokens/full on Thread 23606
debug (server): Took 7ms to process request-69-textDocument/documentSymbol on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 9ms to process request-71-textDocument/codeAction on Thread 23605
debug (server): Took 102ms to process request-70-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 12ms to process request-72-textDocument/foldingRange on Thread 23607
debug (server): Took 7ms to process request-73-textDocument/foldingRange on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 21ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 12ms to process request-74-textDocument/codeAction on Thread 23607
debug (server): Took 7ms to process request-75-textDocument/foldingRange on Thread 23606
debug (server): Took 7ms to process request-77-textDocument/foldingRange on Thread 23608
debug (server): Took 98ms to process request-76-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 7ms to process request-78-textDocument/documentSymbol on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 10ms to process request-79-textDocument/codeAction on Thread 23608
debug (server): Took 7ms to process request-80-textDocument/foldingRange on Thread 23605
debug (server): Took 8ms to process request-81-textDocument/foldingRange on Thread 23607
debug (server): Took 6ms to process request-83-textDocument/documentSymbol on Thread 23608
debug (server): Took 99ms to process request-82-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 23ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process request-84-textDocument/codeAction on Thread 23607
debug (server): Took 7ms to process request-85-textDocument/foldingRange on Thread 23608
debug (server): Took 7ms to process request-86-textDocument/foldingRange on Thread 23606
debug (server): Took 9ms to process request-88-textDocument/documentSymbol on Thread 23607
debug (server): Took 99ms to process request-87-textDocument/semanticTokens/full on Thread 23605
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 128ms to process request-89-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 10ms to process request-90-textDocument/codeAction on Thread 23608
debug (server): Took 7ms to process request-91-textDocument/foldingRange on Thread 23606
debug (server): Took 7ms to process request-92-textDocument/foldingRange on Thread 23607
debug (server): Took 6ms to process request-93-textDocument/documentSymbol on Thread 23605
debug (server): Took 10ms to process request-94-textDocument/codeAction on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 9ms to process request-95-textDocument/codeAction on Thread 23605
debug (server): Took 7ms to process request-97-textDocument/foldingRange on Thread 23606
debug (server): Took 113ms to process request-96-textDocument/semanticTokens/full on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-$/cancelRequest on Thread 23606
debug (server): Took 12ms to process request-98-textDocument/foldingRange on Thread 23605
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 22ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 98ms to process request-99-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 13ms to process request-100-textDocument/codeAction on Thread 23607
debug (server): Took 8ms to process request-101-textDocument/foldingRange on Thread 23608
debug (server): Took 11ms to process request-102-textDocument/foldingRange on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 24ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 10ms to process request-103-textDocument/codeAction on Thread 23607
debug (server): Took 7ms to process request-104-textDocument/foldingRange on Thread 23608
debug (server): Took 7ms to process request-105-textDocument/foldingRange on Thread 23606
debug (server): Took 6ms to process request-107-textDocument/documentSymbol on Thread 23607
debug (server): Took 108ms to process request-106-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 14ms to process request-108-textDocument/codeAction on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-$/cancelRequest on Thread 23607
debug (server): Took 0ms to process request-109-textDocument/codeAction on Thread 23605
debug (server): Took 11ms to process request-110-textDocument/foldingRange on Thread 23608
debug (server): Took 7ms to process request-111-textDocument/foldingRange on Thread 23607
debug (server): Took 7ms to process request-113-textDocument/documentSymbol on Thread 23605
debug (server): Took 94ms to process request-112-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 13ms to process request-115-textDocument/codeAction on Thread 23606
debug (server): Took 13ms to process request-116-textDocument/foldingRange on Thread 23608
debug (server): Took 7ms to process request-117-textDocument/foldingRange on Thread 23607
debug (server): Took 110ms to process request-114-textDocument/semanticTokens/full on Thread 23605
debug (server): Took 8ms to process request-118-textDocument/documentSymbol on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 14ms to process request-119-textDocument/codeAction on Thread 23607
debug (server): Took 7ms to process request-120-textDocument/foldingRange on Thread 23605
debug (server): Took 8ms to process request-121-textDocument/foldingRange on Thread 23606
debug (server): Took 121ms to process request-122-textDocument/semanticTokens/full on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 114ms to process request-123-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 11ms to process request-124-textDocument/codeAction on Thread 23607
debug (server): Took 7ms to process request-125-textDocument/foldingRange on Thread 23605
debug (server): Took 7ms to process request-126-textDocument/foldingRange on Thread 23606
debug (server): Took 8ms to process request-127-textDocument/documentSymbol on Thread 23608
debug (server): Took 0ms to process request-128-textDocument/hover on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process request-129-textDocument/codeAction on Thread 23606
debug (server): Took 8ms to process request-130-textDocument/foldingRange on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 23ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-$/cancelRequest on Thread 23606
debug (server): Took 10ms to process request-131-textDocument/foldingRange on Thread 23605
debug (server): Took 96ms to process request-132-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 0ms to process request-133-textDocument/codeAction on Thread 23607
debug (server): Took 8ms to process request-134-textDocument/foldingRange on Thread 23606
debug (server): Took 12ms to process request-135-textDocument/foldingRange on Thread 23605
debug (server): Took 0ms to process request-136-textDocument/hover on Thread 23608
debug (server): Took 7ms to process request-137-textDocument/documentSymbol on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 5ms to process request-138-textDocument/hover on Thread 23605
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 21ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 123ms to process request-139-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process request-140-textDocument/codeAction on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 97ms to process request-141-textDocument/semanticTokens/full on Thread 23606
debug (server): Took 12ms to process request-142-textDocument/codeAction on Thread 23605
debug (server): Took 7ms to process request-143-textDocument/foldingRange on Thread 23608
debug (server): Took 7ms to process request-144-textDocument/foldingRange on Thread 23607
debug (server): Took 7ms to process request-145-textDocument/documentSymbol on Thread 23606
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/testing.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/BitStack.zig'
debug (store ): Opened document 'file:///nix/store/f7nizwgvjd3276g08bx5ns6ab2j9a5ff-zig-0.14.0-dev.823+624fa8523/lib/std/unicode.zig'
debug (server): Took 59ms to process request-146-textDocument/documentHighlight on Thread 23605
debug (server): Took 10ms to process request-147-textDocument/codeAction on Thread 23608
debug (server): Took 10ms to process request-148-textDocument/codeAction on Thread 23607
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 0ms to process notification-$/cancelRequest on Thread 23605
debug (server): Took 10ms to process request-149-textDocument/codeAction on Thread 23608
debug (server): Took 7ms to process request-150-textDocument/foldingRange on Thread 23607
debug (server): Took 9ms to process request-151-textDocument/foldingRange on Thread 23605
debug (server): Took 109ms to process request-152-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 16ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 108ms to process request-153-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 26ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 10ms to process request-154-textDocument/codeAction on Thread 23607
debug (server): Took 12ms to process request-155-textDocument/foldingRange on Thread 23605
debug (server): Took 8ms to process request-156-textDocument/foldingRange on Thread 23606
debug (server): Took 102ms to process request-157-textDocument/semanticTokens/full on Thread 23608
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 23ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 93ms to process request-158-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 0ms to process request-159-textDocument/codeAction on Thread 23607
debug (server): Took 8ms to process request-160-textDocument/foldingRange on Thread 23605
debug (server): Took 7ms to process request-161-textDocument/foldingRange on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 19ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 17ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 104ms to process request-162-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 18ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 20ms to process notification-textDocument/didChange on Thread 23604
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 22ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 98ms to process request-163-textDocument/semanticTokens/full on Thread 23606
warn  (store ): Document modified without being opened: file:///home/techatrix/repos/zls/src/Server.zig
debug (server): Took 20ms to process notification-textDocument/didChange on Thread 23604
debug (server): Took 14ms to process request-164-textDocument/codeAction on Thread 23607
debug (server): Took 8ms to process request-165-textDocument/foldingRange on Thread 23605
debug (server): Took 7ms to process request-166-textDocument/foldingRange on Thread 23606
debug (server): Took 7ms to process request-168-textDocument/documentSymbol on Thread 23607
debug (server): Took 104ms to process request-167-textDocument/semanticTokens/full on Thread 23608
debug (server): Took 9ms to process request-169-textDocument/codeAction on Thread 23605
debug (server): Took 12ms to process request-170-textDocument/codeAction on Thread 23606
debug (server): Took 12ms to process request-171-textDocument/codeAction on Thread 23607
debug (server): Took 9ms to process request-172-textDocument/codeAction on Thread 23608
debug (server): Took 3ms to process notification-textDocument/didChange on Thread 23604
@Techatrix Techatrix added bug Something isn't working editor:vscode labels Aug 2, 2024
@Techatrix
Copy link
Member Author

@paperdave Is the issue you have talked about?

@paperdave
Copy link

yes, this is exactly the issue im talking about. thank you for opening a bug with a specific reproduction.

other notes related are:

  • using "Revert selected ranges" in vscode might sometimes trigger it
  • i use auto-save with a very low number and sort of attribute that to it (lots of filesystem io). i'll turn this off to see if it has any affect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working editor:vscode
Projects
None yet
Development

No branches or pull requests

2 participants