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

Helix : thread 'main' pannicked at ... #11922

Closed
pierrelgol opened this issue Oct 21, 2024 · 3 comments
Closed

Helix : thread 'main' pannicked at ... #11922

pierrelgol opened this issue Oct 21, 2024 · 3 comments
Labels
C-bug Category: This is a bug

Comments

@pierrelgol
Copy link

Summary

So when trying to use Helix, and creating a zig file (main.zig) using the autocomplete crashes the whole program. I can reproduce the crash consistently if you have any questions please let me know.

Reproduction Steps

I tried this:

  1. hx main.zig (doesn't exist yet)
  2. autocomplete the first suggestion of zsl (std that expand into -> const std = @import("std");`
  3. C-x for bringing autcomplete pop up on the next line
  4. select first suggestions

I expected this to happen:

to give the the autocomplete and carry on working.

Instead, this happened:

thread 'main' panicked at /usr/share/cargo/registry/ropey-1.6.1/src/slice.rs:656:9:
Attempt to slice past end of RopeSlice: slice end 29, RopeSlice length 28
stack backtrace:
   0:     0x55dd41bea57b - <unknown>
   1:     0x55dd4107be0b - <unknown>
   2:     0x55dd41be6153 - <unknown>
   3:     0x55dd41bec4fa - <unknown>
   4:     0x55dd41bec147 - <unknown>
   5:     0x55dd419ce1b5 - <unknown>
   6:     0x55dd41becd78 - <unknown>
   7:     0x55dd41beca67 - <unknown>
   8:     0x55dd41beaa49 - <unknown>
   9:     0x55dd41bec6f4 - <unknown>
  10:     0x55dd40f946e3 - <unknown>
  11:     0x55dd413cbb1a - <unknown>
  12:     0x55dd414611ce - <unknown>
  13:     0x55dd4183e984 - <unknown>
  14:     0x55dd4183cf4a - <unknown>
  15:     0x55dd4185e52f - <unknown>
  16:     0x55dd4183ee9f - <unknown>
  17:     0x55dd41850a91 - <unknown>
  18:     0x55dd417f3be5 - <unknown>
  19:     0x55dd419c2d5f - <unknown>
  20:     0x55dd41a378df - <unknown>
  21:     0x55dd41a34805 - <unknown>
  22:     0x55dd419df996 - <unknown>
  23:     0x55dd419df831 - <unknown>
  24:     0x55dd41bdcc45 - <unknown>
  25:     0x55dd41a3a634 - <unknown>
  26:     0x7f9757e9d088 - __libc_start_call_main
  27:     0x7f9757e9d14b - __libc_start_main@@GLIBC_2.34
  28:     0x55dd41002d45 - <unknown>
  29:                0x0 - <unknown>

Helix log

~/.cache/helix/helix.log
OS:

Linux 42 6.11.3-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 10 22:31:19 UTC 2024 x86_64 GNU/Linux

SYSTEM :

Architecture:                         x86_64
CPU op-mode(s):                       32-bit, 64-bit
Address sizes:                        48 bits physical, 48 bits virtual
Byte Order:                           Little Endian
CPU(s):                               16
On-line CPU(s) list:                  0-15
Vendor ID:                            AuthenticAMD
Model name:                           AMD Ryzen 7 6800HS with Radeon Graphics
CPU family:                           25
Model:                                68
Thread(s) per core:                   2
Core(s) per socket:                   8
Socket(s):                            1
Stepping:                             1
Frequency boost:                      disabled
CPU(s) scaling MHz:                   61%
CPU max MHz:                          3201.0000
CPU min MHz:                          400.0000
BogoMIPS:                             6387.88
Flags:                                fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb cat_l3 cdp_l3 hw_pstate ssbd mba ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid cqm rdt_a rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local user_shstk clzero irperf xsaveerptr rdpru wbnoinvd cppc arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif v_spec_ctrl umip pku ospke vaes vpclmulqdq rdpid overflow_recov succor smca fsrm debug_swap
Virtualization:                       AMD-V
L1d cache:                            256 KiB (8 instances)
L1i cache:                            256 KiB (8 instances)
L2 cache:                             4 MiB (8 instances)
L3 cache:                             16 MiB (1 instance)
NUMA node(s):                         1
NUMA node0 CPU(s):                    0-15
Vulnerability Gather data sampling:   Not affected
Vulnerability Itlb multihit:          Not affected
Vulnerability L1tf:                   Not affected
Vulnerability Mds:                    Not affected
Vulnerability Meltdown:               Not affected
Vulnerability Mmio stale data:        Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed:               Not affected
Vulnerability Spec rstack overflow:   Vulnerable: Safe RET, no microcode
Vulnerability Spec store bypass:      Mitigation; Speculative Store Bypass disabled via prctl
Vulnerability Spectre v1:             Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2:             Mitigation; Retpolines; IBPB conditional; IBRS_FW; STIBP always-on; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds:                  Not affected
Vulnerability Tsx async abort:        Not affected
description: Notebook

TERMINAL EMULATOR : 

Ghostty 0.1.0-main+0084103f

Build Config
  - Zig version: 0.13.0
  - build mode : builtin.OptimizeMode.ReleaseFast
  - app runtime: apprt.Runtime.gtk
  - font engine: font.main.Backend.fontconfig_freetype
  - renderer   : renderer.OpenGL
  - libxev     : main.Backend.io_uring
  - GTK version:
    build      : 4.14.5
    runtime    : 4.14.5
  - libadwaita : enabled
    build      : 1.5.4
    runtime    : 1.5.4

RUST :

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/pollivie/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.82.0 (f6e511eec 2024-10-15)

HELIX LOG -vvv :

2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/Dockerfile.*", re: "(?-u)^.*/Dockerfile\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('D'), Literal('o'), Literal('c'), Literal('k'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/dockerfile.*", re: "(?-u)^.*/dockerfile\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('d'), Literal('o'), Literal('c'), Literal('k'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/Containerfile.*", re: "(?-u)^.*/Containerfile\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('C'), Literal('o'), Literal('n'), Literal('t'), Literal('a'), Literal('i'), Literal('n'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/containerfile.*", re: "(?-u)^.*/containerfile\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('c'), Literal('o'), Literal('n'), Literal('t'), Literal('a'), Literal('i'), Literal('n'), Literal('e'), Literal('r'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/.*ignore", re: "(?-u)^.*/\\..*ignore$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), ZeroOrMore, Literal('i'), Literal('g'), Literal('n'), Literal('o'), Literal('r'), Literal('e')]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/BUILD.*", re: "(?-u)^.*/BUILD\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('B'), Literal('U'), Literal('I'), Literal('L'), Literal('D'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/.env.*", re: "(?-u)^.*/\\.env\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), Literal('e'), Literal('n'), Literal('v'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/.envrc.*", re: "(?-u)^.*/\\.envrc\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('.'), Literal('e'), Literal('n'), Literal('v'), Literal('r'), Literal('c'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/conf/*/*.{inc,conf}", re: "(?-u)^.*/conf/.*/.*\\.(?:conf|inc)$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('c'), Literal('o'), Literal('n'), Literal('f'), Literal('/'), ZeroOrMore, Literal('/'), ZeroOrMore, Literal('.'), Alternates([Tokens([Literal('c'), Literal('o'), Literal('n'), Literal('f')]), Tokens([Literal('i'), Literal('n'), Literal('c')])])]) }
2024-10-21T10:57:36.184 globset [DEBUG] glob converted to regex: Glob { glob: "*/Jenkinsfile.*", re: "(?-u)^.*/Jenkinsfile\\..*$", opts: GlobOptions { case_insensitive: false, literal_separator: false, backslash_escape: true, empty_alternates: false }, tokens: Tokens([ZeroOrMore, Literal('/'), Literal('J'), Literal('e'), Literal('n'), Literal('k'), Literal('i'), Literal('n'), Literal('s'), Literal('f'), Literal('i'), Literal('l'), Literal('e'), Literal('.'), ZeroOrMore]) }
2024-10-21T10:57:36.184 globset [DEBUG] built glob set; 1 literals, 0 basenames, 0 extensions, 0 prefixes, 127 suffixes, 9 required extensions, 10 regexes
2024-10-21T10:57:36.190 helix_view::clipboard [DEBUG] Using xsel to interact with the system and selection (primary) clipboard
2024-10-21T10:57:36.215 helix_vcs [DEBUG] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/pollivie/workspace/experiment/metaprogramming",
        },
    ),
}
2024-10-21T10:57:36.215 helix_vcs [DEBUG] failed to open diff base for /home/pollivie/workspace/experiment/metaprogramming/main.zig
2024-10-21T10:57:36.215 helix_vcs [DEBUG] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/pollivie/workspace/experiment/metaprogramming",
        },
    ),
}
2024-10-21T10:57:36.215 helix_vcs [DEBUG] failed to obtain current head name for /home/pollivie/workspace/experiment/metaprogramming/main.zig
2024-10-21T10:57:36.215 helix_view::editor [DEBUG] editor status: Loaded 1 file.
2024-10-21T10:57:36.216 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"positionEncodings":["utf-8","utf-32","utf-16"]},"textDocument":{"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"isPreferredSupport":true,"resolveSupport":{"properties":["edit","command"]}},"completion":{"completionItem":{"deprecatedSupport":true,"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{}},"formatting":{"dynamicRegistration":false},"hover":{"contentFormat":["markdown"]},"inlayHint":{"dynamicRegistration":false},"publishDiagnostics":{"tagSupport":{"valueSet":[1,2]},"versionSupport":true},"rename":{"dynamicRegistration":false,"honorsChangeAnnotations":false,"prepareSupport":true},"signatureHelp":{"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown"],"parameterInformation":{"labelOffsetSupport":true}}}},"window":{"workDoneProgress":true},"workspace":{"applyEdit":true,"configuration":true,"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":false},"executeCommand":{"dynamicRegistration":false},"fileOperations":{"didRename":true,"willRename":true},"inlayHint":{"refreshSupport":false},"symbol":{"dynamicRegistration":false},"workspaceEdit":{"documentChanges":true,"failureHandling":"abort","normalizesLineEndings":false,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"helix","version":"24.7 (079f5442)"},"processId":728166,"rootPath":"/home/pollivie/workspace/experiment/metaprogramming","rootUri":null,"workspaceFolders":[]},"id":0}
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  ( main ): Starting ZLS      0.14.0-dev.169+66f0f90 @ '/home/pollivie/local/bin/zls'\n"
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  ( main ): Message Tracing:  false\n"
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  ( main ): Log Level:        info\n"
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  ( main ): Log File:         /home/pollivie/.cache/zls/zls.log\n"
2024-10-21T10:57:36.216 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE
2024-10-21T10:57:36.216 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  (server): Client Info:      helix-24.7 (079f5442)\n"
2024-10-21T10:57:36.216 helix_lsp::transport [ERROR] zls err <- "info  (server): Loaded config:      /home/pollivie/.config/zls.json\n"
2024-10-21T10:57:36.216 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is supported in this terminal (checked in 278.071µs)
2024-10-21T10:57:36.216 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:36.216 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:36.217 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:36.218 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:36.218 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:36.229 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'enable_autofix' to true\n"
2024-10-21T10:57:36.229 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'inlay_hints_show_parameter_name' to false\n"
2024-10-21T10:57:36.229 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'inlay_hints_hide_redundant_param_names' to true\n"
2024-10-21T10:57:36.229 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'warn_style' to true\n"
2024-10-21T10:57:36.230 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'builtin_path' to \"/home/pollivie/.cache/zls/builtin.zig\"\n"
2024-10-21T10:57:36.230 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'zig_lib_path' to \"/home/pollivie/zig/0.14.0-dev.1951+857383689/files/lib\"\n"
2024-10-21T10:57:36.230 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'zig_exe_path' to \"/home/pollivie/local/bin/zig\"\n"
2024-10-21T10:57:36.230 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'build_runner_path' to \"/home/pollivie/.cache/zls/build_runner/4ebeb852873127b5ece4bcd8e405fc28/build_runner.zig\"\n"
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"positionEncoding":"utf-8","textDocumentSync":{"openClose":true,"change":2,"willSave":true,"willSaveWaitUntil":true,"save":true},"completionProvider":{"triggerCharacters":[".",":","@","]","/"],"resolveProvider":false,"completionItem":{"labelDetailsSupport":true}},"hoverProvider":true,"signatureHelpProvider":{"triggerCharacters":["("],"retriggerCharacters":[","]},"declarationProvider":true,"definitionProvider":true,"typeDefinitionProvider":true,"implementationProvider":false,"referencesProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"codeActionProvider":true,"colorProvider":false,"workspaceSymbolProvider":false,"documentFormattingProvider":true,"documentRangeFormattingProvider":false,"renameProvider":true,"foldingRangeProvider":true,"selectionRangeProvider":true,"semanticTokensProvider":{"legend":{"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator","errorTag","builtin","label","keywordLiteral"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","generic","_"]},"range":true,"full":true},"inlayHintProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"serverInfo":{"name":"zls","version":"0.14.0-dev.169+66f0f90"}}}
2024-10-21T10:57:36.230 helix_lsp::transport [ERROR] zls err <- "info  (server): Set config option 'global_cache_path' to \"/home/pollivie/.cache/zls\"\n"
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls <- {"capabilities":{"codeActionProvider":true,"colorProvider":false,"completionProvider":{"completionItem":{"labelDetailsSupport":true},"resolveProvider":false,"triggerCharacters":[".",":","@","]","/"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":false,"inlayHintProvider":true,"positionEncoding":"utf-8","referencesProvider":true,"renameProvider":true,"selectionRangeProvider":true,"semanticTokensProvider":{"full":true,"legend":{"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary","generic","_"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator","errorTag","builtin","label","keywordLiteral"]},"range":true},"signatureHelpProvider":{"retriggerCharacters":[","],"triggerCharacters":["("]},"textDocumentSync":{"change":2,"openClose":true,"save":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinitionProvider":true,"workspace":{"workspaceFolders":{"changeNotifications":true,"supported":true}},"workspaceSymbolProvider":false},"serverInfo":{"name":"zls","version":"0.14.0-dev.169+66f0f90"}}
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2024-10-21T10:57:36.230 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: None, method: "initialized", params: None })))
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":"i_haz_configuration","method":"workspace/configuration","params":{"items":[{"section":"zls.enable_snippets"},{"section":"zls.enable_argument_placeholders"},{"section":"zls.enable_build_on_save"},{"section":"zls.build_on_save_args"},{"section":"zls.enable_autofix"},{"section":"zls.semantic_tokens"},{"section":"zls.inlay_hints_show_variable_type_hints"},{"section":"zls.inlay_hints_show_struct_literal_field_type"},{"section":"zls.inlay_hints_show_parameter_name"},{"section":"zls.inlay_hints_show_builtin"},{"section":"zls.inlay_hints_exclude_single_argument"},{"section":"zls.inlay_hints_hide_redundant_param_names"},{"section":"zls.inlay_hints_hide_redundant_param_names_last_token"},{"section":"zls.warn_style"},{"section":"zls.highlight_global_var_declarations"},{"section":"zls.skip_std_references"},{"section":"zls.prefer_ast_check_as_child_process"},{"section":"zls.builtin_path"},{"section":"zls.zig_lib_path"},{"section":"zls.zig_exe_path"},{"section":"zls.build_runner_path"},{"section":"zls.global_cache_path"},{"section":"zls.completion_label_details"}]}}
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"zig","text":"\n","uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","version":0}}}
2024-10-21T10:57:36.230 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), MethodCall(MethodCall { jsonrpc: Some(V2), method: "workspace/configuration", params: Map({"items": Array [Object {"section": String("zls.enable_snippets")}, Object {"section": String("zls.enable_argument_placeholders")}, Object {"section": String("zls.enable_build_on_save")}, Object {"section": String("zls.build_on_save_args")}, Object {"section": String("zls.enable_autofix")}, Object {"section": String("zls.semantic_tokens")}, Object {"section": String("zls.inlay_hints_show_variable_type_hints")}, Object {"section": String("zls.inlay_hints_show_struct_literal_field_type")}, Object {"section": String("zls.inlay_hints_show_parameter_name")}, Object {"section": String("zls.inlay_hints_show_builtin")}, Object {"section": String("zls.inlay_hints_exclude_single_argument")}, Object {"section": String("zls.inlay_hints_hide_redundant_param_names")}, Object {"section": String("zls.inlay_hints_hide_redundant_param_names_last_token")}, Object {"section": String("zls.warn_style")}, Object {"section": String("zls.highlight_global_var_declarations")}, Object {"section": String("zls.skip_std_references")}, Object {"section": String("zls.prefer_ast_check_as_child_process")}, Object {"section": String("zls.builtin_path")}, Object {"section": String("zls.zig_lib_path")}, Object {"section": String("zls.zig_exe_path")}, Object {"section": String("zls.build_runner_path")}, Object {"section": String("zls.global_cache_path")}, Object {"section": String("zls.completion_label_details")}]}), id: Str("i_haz_configuration") })))
2024-10-21T10:57:36.230 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","result":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"id":"i_haz_configuration"}
2024-10-21T10:57:36.235 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","diagnostics":[]}}
2024-10-21T10:57:36.235 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [], "uri": String("file:///home/pollivie/workspace/experiment/metaprogramming/main.zig")}) })))
2024-10-21T10:57:36.240 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":"semantic_tokens_refresh","method":"workspace/semanticTokens/refresh"}
2024-10-21T10:57:36.240 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), MethodCall(MethodCall { jsonrpc: Some(V2), method: "workspace/semanticTokens/refresh", params: None, id: Str("semantic_tokens_refresh") })))
2024-10-21T10:57:36.240 helix_term::application [ERROR] Language Server: Method workspace/semanticTokens/refresh not found in request semantic_tokens_refresh
2024-10-21T10:57:36.240 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found: workspace/semanticTokens/refresh"},"id":"semantic_tokens_refresh"}
2024-10-21T10:57:36.240 helix_lsp::transport [ERROR] zls err <- "error (server): Error response for 'semantic_tokens_refresh': lsp.JsonRPCMessage.Response.Error.Code.method_not_found, Method not found: workspace/semanticTokens/refresh\n"
2024-10-21T10:57:36.264 helix_term::application [DEBUG] received editor event: Redraw
2024-10-21T10:57:36.264 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:36.264 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.278 helix_term::commands [TRACE] entering insert mode with sel: Selection { ranges: [Range { anchor: 0, head: 1, old_visual_position: None }], primary_index: 0 }, text: "\n"
2024-10-21T10:57:37.278 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.278 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.284 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":0,"line":0},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":1}
2024-10-21T10:57:37.284 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.284 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.284 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":1,"result":{"isIncomplete":false,"items":[{"label":"std","kind":15,"detail":"const std = @import(\"std\");","insertText":"const std = @import(\"std\");","insertTextFormat":2},{"label":"root","kind":15,"detail":"const root = @import(\"root\");","insertText":"const root = @import(\"root\");","insertTextFormat":2},{"label":"import","kind":15,"detail":"const $1 = @import(\"$2\")","insertText":"const $1 = @import(\"$2\")","insertTextFormat":2},{"label":"fn","kind":15,"detail":"fn ${1:name}($2) ${3:!void} {$0}","insertText":"fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2},{"label":"pub fn","kind":15,"detail":"pub fn ${1:name}($2) ${3:!void} {$0}","insertText":"pub fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2},{"label":"struct","kind":15,"detail":"const $1 = struct {$0};","insertText":"const $1 = struct {$0};","insertTextFormat":2},{"label":"error set","kind":15,"detail":"const ${1:Error} = error {$0};","insertText":"const ${1:Error} = error {$0};","insertTextFormat":2},{"label":"enum","kind":15,"detail":"const $1 = enum {$0};","insertText":"const $1 = enum {$0};","insertTextFormat":2},{"label":"union","kind":15,"detail":"const $1 = union {$0};","insertText":"const $1 = union {$0};","insertTextFormat":2},{"label":"union tagged","kind":15,"detail":"const $1 = union(${2:enum}) {$0};","insertText":"const $1 = union(${2:enum}) {$0};","insertTextFormat":2},{"label":"test","kind":15,"detail":"test \"$1\" {$0}","insertText":"test \"$1\" {$0}","insertTextFormat":2},{"label":"main","kind":15,"detail":"pub fn main() !void {$0}","insertText":"pub fn main() !void {$0}","insertTextFormat":2},{"label":"std_options","kind":15,"detail":"pub const std_options: std.Options = .{$0};","insertText":"pub const std_options: std.Options = .{$0};","insertTextFormat":2},{"label":"panic","kind":15,"detail":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertText":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertTextFormat":2}]}}
2024-10-21T10:57:37.284 helix_lsp::transport [INFO] zls <- {"isIncomplete":false,"items":[{"detail":"const std = @import(\"std\");","insertText":"const std = @import(\"std\");","insertTextFormat":2,"kind":15,"label":"std"},{"detail":"const root = @import(\"root\");","insertText":"const root = @import(\"root\");","insertTextFormat":2,"kind":15,"label":"root"},{"detail":"const $1 = @import(\"$2\")","insertText":"const $1 = @import(\"$2\")","insertTextFormat":2,"kind":15,"label":"import"},{"detail":"fn ${1:name}($2) ${3:!void} {$0}","insertText":"fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2,"kind":15,"label":"fn"},{"detail":"pub fn ${1:name}($2) ${3:!void} {$0}","insertText":"pub fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2,"kind":15,"label":"pub fn"},{"detail":"const $1 = struct {$0};","insertText":"const $1 = struct {$0};","insertTextFormat":2,"kind":15,"label":"struct"},{"detail":"const ${1:Error} = error {$0};","insertText":"const ${1:Error} = error {$0};","insertTextFormat":2,"kind":15,"label":"error set"},{"detail":"const $1 = enum {$0};","insertText":"const $1 = enum {$0};","insertTextFormat":2,"kind":15,"label":"enum"},{"detail":"const $1 = union {$0};","insertText":"const $1 = union {$0};","insertTextFormat":2,"kind":15,"label":"union"},{"detail":"const $1 = union(${2:enum}) {$0};","insertText":"const $1 = union(${2:enum}) {$0};","insertTextFormat":2,"kind":15,"label":"union tagged"},{"detail":"test \"$1\" {$0}","insertText":"test \"$1\" {$0}","insertTextFormat":2,"kind":15,"label":"test"},{"detail":"pub fn main() !void {$0}","insertText":"pub fn main() !void {$0}","insertTextFormat":2,"kind":15,"label":"main"},{"detail":"pub const std_options: std.Options = .{$0};","insertText":"pub const std_options: std.Options = .{$0};","insertTextFormat":2,"kind":15,"label":"std_options"},{"detail":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertText":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertTextFormat":2,"kind":15,"label":"panic"}]}
2024-10-21T10:57:37.285 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.285 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.285 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:37.285 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":1},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":2}
2024-10-21T10:57:37.286 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":2,"result":[]}
2024-10-21T10:57:37.286 helix_lsp::transport [INFO] zls <- []
2024-10-21T10:57:37.286 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.286 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.399 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":0,"line":0},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":3}
2024-10-21T10:57:37.399 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.400 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.400 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":3,"result":null}
2024-10-21T10:57:37.400 helix_lsp::transport [INFO] zls <- null
2024-10-21T10:57:37.400 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:37.400 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:38.310 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:38.310 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:38.316 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:38.316 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":27,"line":0},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":4}
2024-10-21T10:57:38.316 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":4,"result":[]}
2024-10-21T10:57:38.316 helix_lsp::transport [INFO] zls <- []
2024-10-21T10:57:38.316 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:38.316 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-10-21T10:57:38.639 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":0,"line":1},"start":{"character":0,"line":0}},"text":"const std = @import(\"std\");"}],"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","version":3}}}
2024-10-21T10:57:38.639 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.639 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.645 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:38.645 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":27,"line":0},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":5}
2024-10-21T10:57:38.645 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","diagnostics":[]}}
2024-10-21T10:57:38.646 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [], "uri": String("file:///home/pollivie/workspace/experiment/metaprogramming/main.zig")}) })))
2024-10-21T10:57:38.646 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":5,"result":[{"position":{"line":0,"character":9},"label":": type","kind":1,"paddingLeft":false,"paddingRight":false}]}
2024-10-21T10:57:38.646 helix_lsp::transport [INFO] zls <- [{"kind":1,"label":": type","paddingLeft":false,"paddingRight":false,"position":{"character":9,"line":0}}]
2024-10-21T10:57:38.646 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.646 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.680 helix_term::application [DEBUG] received editor event: Redraw
2024-10-21T10:57:38.680 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.680 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.760 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":0,"line":0},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":6}
2024-10-21T10:57:38.760 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.760 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.760 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":6,"result":null}
2024-10-21T10:57:38.760 helix_lsp::transport [INFO] zls <- null
2024-10-21T10:57:38.760 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.760 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-10-21T10:57:38.955 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:38.955 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:38.961 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:39.237 helix_core::indent [TRACE] indent result = IndentQueryResult { indent_captures: {}, extend_captures: {} }
2024-10-21T10:57:39.237 helix_core::indent [TRACE] indent result = IndentQueryResult { indent_captures: {}, extend_captures: {} }
2024-10-21T10:57:39.237 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":27,"line":0},"start":{"character":27,"line":0}},"text":"\n"}],"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","version":4}}}
2024-10-21T10:57:39.237 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.237 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.242 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:39.242 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":1},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":7}
2024-10-21T10:57:39.242 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":7,"result":[{"position":{"line":0,"character":9},"label":": type","kind":1,"paddingLeft":false,"paddingRight":false}]}
2024-10-21T10:57:39.242 helix_lsp::transport [INFO] zls <- [{"kind":1,"label":": type","paddingLeft":false,"paddingRight":false,"position":{"character":9,"line":0}}]
2024-10-21T10:57:39.242 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.242 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.243 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig","diagnostics":[]}}
2024-10-21T10:57:39.243 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [], "uri": String("file:///home/pollivie/workspace/experiment/metaprogramming/main.zig")}) })))
2024-10-21T10:57:39.278 helix_term::application [DEBUG] received editor event: Redraw
2024-10-21T10:57:39.278 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.278 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.358 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":0,"line":1},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":8}
2024-10-21T10:57:39.358 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.358 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":8,"result":null}
2024-10-21T10:57:39.358 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.358 helix_lsp::transport [INFO] zls <- null
2024-10-21T10:57:39.359 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.359 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.738 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.738 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.739 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.739 helix_lsp::transport [INFO] zls -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":0,"line":1},"textDocument":{"uri":"file:///home/pollivie/workspace/experiment/metaprogramming/main.zig"}},"id":9}
2024-10-21T10:57:39.739 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.739 helix_lsp::transport [INFO] zls <- {"jsonrpc":"2.0","id":9,"result":{"isIncomplete":false,"items":[{"label":"std","kind":15,"detail":"const std = @import(\"std\");","insertText":"const std = @import(\"std\");","insertTextFormat":2},{"label":"root","kind":15,"detail":"const root = @import(\"root\");","insertText":"const root = @import(\"root\");","insertTextFormat":2},{"label":"import","kind":15,"detail":"const $1 = @import(\"$2\")","insertText":"const $1 = @import(\"$2\")","insertTextFormat":2},{"label":"fn","kind":15,"detail":"fn ${1:name}($2) ${3:!void} {$0}","insertText":"fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2},{"label":"pub fn","kind":15,"detail":"pub fn ${1:name}($2) ${3:!void} {$0}","insertText":"pub fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2},{"label":"struct","kind":15,"detail":"const $1 = struct {$0};","insertText":"const $1 = struct {$0};","insertTextFormat":2},{"label":"error set","kind":15,"detail":"const ${1:Error} = error {$0};","insertText":"const ${1:Error} = error {$0};","insertTextFormat":2},{"label":"enum","kind":15,"detail":"const $1 = enum {$0};","insertText":"const $1 = enum {$0};","insertTextFormat":2},{"label":"union","kind":15,"detail":"const $1 = union {$0};","insertText":"const $1 = union {$0};","insertTextFormat":2},{"label":"union tagged","kind":15,"detail":"const $1 = union(${2:enum}) {$0};","insertText":"const $1 = union(${2:enum}) {$0};","insertTextFormat":2},{"label":"test","kind":15,"detail":"test \"$1\" {$0}","insertText":"test \"$1\" {$0}","insertTextFormat":2},{"label":"main","kind":15,"detail":"pub fn main() !void {$0}","insertText":"pub fn main() !void {$0}","insertTextFormat":2},{"label":"std_options","kind":15,"detail":"pub const std_options: std.Options = .{$0};","insertText":"pub const std_options: std.Options = .{$0};","insertTextFormat":2},{"label":"panic","kind":15,"detail":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertText":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertTextFormat":2}]}}
2024-10-21T10:57:39.739 helix_lsp::transport [INFO] zls <- {"isIncomplete":false,"items":[{"detail":"const std = @import(\"std\");","insertText":"const std = @import(\"std\");","insertTextFormat":2,"kind":15,"label":"std"},{"detail":"const root = @import(\"root\");","insertText":"const root = @import(\"root\");","insertTextFormat":2,"kind":15,"label":"root"},{"detail":"const $1 = @import(\"$2\")","insertText":"const $1 = @import(\"$2\")","insertTextFormat":2,"kind":15,"label":"import"},{"detail":"fn ${1:name}($2) ${3:!void} {$0}","insertText":"fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2,"kind":15,"label":"fn"},{"detail":"pub fn ${1:name}($2) ${3:!void} {$0}","insertText":"pub fn ${1:name}($2) ${3:!void} {$0}","insertTextFormat":2,"kind":15,"label":"pub fn"},{"detail":"const $1 = struct {$0};","insertText":"const $1 = struct {$0};","insertTextFormat":2,"kind":15,"label":"struct"},{"detail":"const ${1:Error} = error {$0};","insertText":"const ${1:Error} = error {$0};","insertTextFormat":2,"kind":15,"label":"error set"},{"detail":"const $1 = enum {$0};","insertText":"const $1 = enum {$0};","insertTextFormat":2,"kind":15,"label":"enum"},{"detail":"const $1 = union {$0};","insertText":"const $1 = union {$0};","insertTextFormat":2,"kind":15,"label":"union"},{"detail":"const $1 = union(${2:enum}) {$0};","insertText":"const $1 = union(${2:enum}) {$0};","insertTextFormat":2,"kind":15,"label":"union tagged"},{"detail":"test \"$1\" {$0}","insertText":"test \"$1\" {$0}","insertTextFormat":2,"kind":15,"label":"test"},{"detail":"pub fn main() !void {$0}","insertText":"pub fn main() !void {$0}","insertTextFormat":2,"kind":15,"label":"main"},{"detail":"pub const std_options: std.Options = .{$0};","insertText":"pub const std_options: std.Options = .{$0};","insertTextFormat":2,"kind":15,"label":"std_options"},{"detail":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertText":"pub fn panic(\n    msg: []const u8,\n    trace: ?*std.builtin.StackTrace,\n    ret_addr: ?usize,\n) noreturn {$0}","insertTextFormat":2,"kind":15,"label":"panic"}]}
2024-10-21T10:57:39.739 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.739 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 2
2024-10-21T10:57:39.744 helix_term::application [DEBUG] received editor event: IdleTimer
2024-10-21T10:57:40.204 helix_lsp::transport [ERROR] zls err: <- StreamClosed
2024-10-21T10:57:40.204 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: start_thread
  10: __clone3)



Platform

Linux

Terminal Emulator

ghostty

Installation Method

dnf package manager on fedora

Helix Version

helix 24.7 (079f544)

@pierrelgol pierrelgol added the C-bug Category: This is a bug label Oct 21, 2024
@woojiq
Copy link
Contributor

woojiq commented Oct 21, 2024

General suggestions:

  1. Try on master (few month have been passed, probably this issue is already fixed)
  2. Reproduce with the debug build to read backtrace.

@RoloEdits
Copy link
Contributor

This could have been fixed in #11266

@pierrelgol
Copy link
Author

I can confirm that I can't reproduce this issue after building from source helix. So #11266 must have fixed the problem. I'm closing this issue right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants