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

Complete using LSP texlab for Latex is broken #12044

Open
pozix604 opened this issue Nov 9, 2024 · 5 comments · May be fixed by #12214
Open

Complete using LSP texlab for Latex is broken #12044

pozix604 opened this issue Nov 9, 2024 · 5 comments · May be fixed by #12214
Labels
C-bug Category: This is a bug S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.

Comments

@pozix604
Copy link

pozix604 commented Nov 9, 2024

Summary

Completion is incorrect, but texlab itself works in other editors, e.g. vim + ale.

Screencast.from.2024-11-09.09-09-18.webm

Expected behavior is as shown in the video at https://github.com/latex-lsp/texlab.

Same error with texlab versions from crates.io 4.3.2 and github 5.12.0.

Reproduction Steps

  1. hx --health latex --> OK
  2. hx test.tex
  3. Type \documen

See attached video.

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Debian 12

Terminal Emulator

Gnome Terminal

Installation Method

AppImage

Helix Version

24.07

@pozix604 pozix604 added the C-bug Category: This is a bug label Nov 9, 2024
@Daniel-Cunningham011
Copy link

Not sure if this issue is still being worked on, but I could not gather logs on my Debian 12 WSL. However, the issue is also reproducible on Windows 11. I'm new to this project, so I am not sure if the logs will be the same on Debian 12. If they are different, can you submit them? Here are the logs on Windows 11:

2024-11-21T19:10:01.719 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:10:01.719 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:13:08.851 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:13:08.851 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:15:57.638 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:15:57.638 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:18:12.800 helix_lsp::transport [ERROR] texlab err: <- StreamClosed
2024-11-21T19:19:49.280 helix_lsp::transport [ERROR] err: <- Other(failed to send a message to server

Caused by:
    channel closed)
2024-11-21T19:19:49.280 helix_lsp::transport [ERROR] texlab err: <- StreamClosed

@johkneisl
Copy link

I can reproduce this.
However, when I open an existing LaTeX file that already has a preamble + some content,
completion with texlab works as expected.
So it doesn't seem fundamentally broken.

@kirawi
Copy link
Member

kirawi commented Nov 26, 2024

Run hx -v and retrieve the logs with the given repro steps if possible.

@kirawi kirawi added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Nov 26, 2024
@catarial
Copy link

catarial commented Nov 27, 2024

helix version: 24.07
texlab version: 5.21.0
platform: Arch Linux

helix-12044.mp4

I'm able to reproduce the issue but completion works after deleting docum and typing it again

Helix logs
2024-11-27T11:02:49.650 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 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-11-27T11:02:49.651 globset [DEBUG] built glob set; 1 literals, 0 basenames, 0 extensions, 0 prefixes, 129 suffixes, 9 required extensions, 10 regexes
2024-11-27T11:02:49.658 helix_view::clipboard [DEBUG] Using wl-copy+wl-paste to interact with the system and selection (primary) clipboard
2024-11-27T11:02:49.884 helix_vcs [DEBUG] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/aria",
        },
    ),
}
2024-11-27T11:02:49.884 helix_vcs [DEBUG] failed to open diff base for /home/aria/test.tex
2024-11-27T11:02:49.884 helix_vcs [DEBUG] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/aria",
        },
    ),
}
2024-11-27T11:02:49.884 helix_vcs [DEBUG] failed to obtain current head name for /home/aria/test.tex
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555139851904), interests=READABLE | WRITABLE
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555139909120), interests=READABLE | WRITABLE
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555137554432), interests=READABLE | WRITABLE
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555139854208), interests=READABLE
2024-11-27T11:02:49.885 helix_view::editor [DEBUG] editor status: Loaded 1 file.
2024-11-27T11:02:49.885 helix_lsp::client [INFO] Using custom LSP config: {"texlab":{"build":{"forwardSearchAfter":true,"onSave":true},"forwardSearch":{"args":["--unique","file:%p#src:%l%f"],"executable":"okular"}}}
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555137874688), interests=READABLE | WRITABLE
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(110555138243072), interests=READABLE | WRITABLE
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(0), interests=READABLE
2024-11-27T11:02:49.885 helix_lsp::transport [INFO] texlab -> {"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"},"initializationOptions":{"texlab":{"build":{"forwardSearchAfter":true,"onSave":true},"forwardSearch":{"args":["--unique","file:%p#src:%l%f"],"executable":"okular"}}},"processId":12884,"rootPath":"/home/aria","rootUri":null,"workspaceFolders":[]},"id":0}
2024-11-27T11:02:49.885 mio::poll [TRACE] registering event source with poller: token=Token(1), interests=READABLE
2024-11-27T11:02:49.886 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":["\\","{","}","@","/"," "]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentSymbolProvider":true,"executeCommandProvider":{"commands":["texlab.cleanAuxiliary","texlab.cleanArtifacts","texlab.changeEnvironment","texlab.findEnvironments","texlab.showDependencyGraph","texlab.cancelBuild"]},"foldingRangeProvider":true,"hoverProvider":true,"inlayHintProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"textDocumentSync":{"change":2,"openClose":true,"save":{"includeText":false}},"workspaceSymbolProvider":true},"serverInfo":{"name":"TexLab","version":"5.21.0"}}}
2024-11-27T11:02:49.886 helix_lsp::transport [INFO] texlab <- {"capabilities":{"completionProvider":{"resolveProvider":true,"triggerCharacters":["\\","{","}","@","/"," "]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentSymbolProvider":true,"executeCommandProvider":{"commands":["texlab.cleanAuxiliary","texlab.cleanArtifacts","texlab.changeEnvironment","texlab.findEnvironments","texlab.showDependencyGraph","texlab.cancelBuild"]},"foldingRangeProvider":true,"hoverProvider":true,"inlayHintProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"textDocumentSync":{"change":2,"openClose":true,"save":{"includeText":false}},"workspaceSymbolProvider":true},"serverInfo":{"name":"TexLab","version":"5.21.0"}}
2024-11-27T11:02:49.886 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2024-11-27T11:02:49.887 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":1,"method":"workspace/configuration","params":{"items":[{"section":"texlab"}]}}
2024-11-27T11:02:49.888 helix_tui::backend::crossterm [DEBUG] The keyboard enhancement protocol is supported in this terminal (checked in 3.352868ms)
2024-11-27T11:02:49.889 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:49.890 helix_term::application [DEBUG] received editor event: LanguageServerMessage((LanguageServerId(1v1), Notification(Notification { jsonrpc: None, method: "initialized", params: None })))
2024-11-27T11:02:49.890 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("texlab")}]}), id: Num(1) })))
2024-11-27T11:02:49.890 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"texlab":{"build":{"forwardSearchAfter":true,"onSave":true},"forwardSearch":{"args":["--unique","file:%p#src:%l%f"],"executable":"okular"}}}}}
2024-11-27T11:02:49.890 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"latex","text":"\n","uri":"file:///home/aria/test.tex","version":0}}}
2024-11-27T11:02:49.890 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","result":[{"build":{"forwardSearchAfter":true,"onSave":true},"forwardSearch":{"args":["--unique","file:%p#src:%l%f"],"executable":"okular"}}],"id":1}
2024-11-27T11:02:49.890 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":2,"method":"workspace/configuration","params":{"items":[{"section":"texlab"}]}}
2024-11-27T11:02:49.890 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("texlab")}]}), id: Num(2) })))
2024-11-27T11:02:49.890 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","result":[{"build":{"forwardSearchAfter":true,"onSave":true},"forwardSearch":{"args":["--unique","file:%p#src:%l%f"],"executable":"okular"}}],"id":2}
2024-11-27T11:02:49.909 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:49.909 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.388 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:50.388 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/aria/test.tex")}) })))
2024-11-27T11:02:50.423 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:50.423 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.529 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-11-27T11:02:50.529 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.651 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.781 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":0,"line":0},"textDocument":{"uri":"file:///home/aria/test.tex"}},"id":1}
2024-11-27T11:02:50.781 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.782 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":1,"result":{"isIncomplete":false,"items":[]}}
2024-11-27T11:02:50.782 helix_lsp::transport [INFO] texlab <- {"isIncomplete":false,"items":[]}
2024-11-27T11:02:50.782 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:50.829 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 1,
            head: 0,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:50.829 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":0,"line":0},"start":{"character":0,"line":0}},"text":"\\"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":1}}}
2024-11-27T11:02:50.829 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.836 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerCharacter":"\\","triggerKind":2},"position":{"character":1,"line":0},"textDocument":{"uri":"file:///home/aria/test.tex"}},"id":2}
2024-11-27T11:02:50.836 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.950 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:50.990 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":2,"result":{"isIncomplete":true,"items":[{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"(","preselect":false,"sortText":"00","textEdit":{"newText":"($0\\)","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"[","preselect":false,"sortText":"01","textEdit":{"newText":"[$0\\]","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"{","preselect":false,"sortText":"02","textEdit":{"newText":"{$0\\\\}","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"!","preselect":false,"sortText":"03","textEdit":{"newText":"!","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"\"","preselect":false,"sortText":"04","textEdit":{"newText":"\"","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"#","preselect":false,"sortText":"05","textEdit":{"newText":"#","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"$, built-in","kind":1,"label":"$","preselect":false,"sortText":"06","textEdit":{"newText":"$","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"%","preselect":false,"sortText":"07","textEdit":{"newText":"%","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"&","preselect":false,"sortText":"08","textEdit":{"newText":"&","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"'","preselect":false,"sortText":"09","textEdit":{"newText":"'","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"*","preselect":false,"sortText":"10","textEdit":{"newText":"*","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"+","preselect":false,"sortText":"11","textEdit":{"newText":"+","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":",","preselect":false,"sortText":"12","textEdit":{"newText":",","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"-","preselect":false,"sortText":"13","textEdit":{"newText":"-","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":".","preselect":false,"sortText":"14","textEdit":{"newText":".","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"/","preselect":false,"sortText":"15","textEdit":{"newText":"/","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":":","preselect":false,"sortText":"16","textEdit":{"newText":":","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"<","preselect":false,"sortText":"17","textEdit":{"newText":"<","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"=","preselect":false,"sortText":"18","textEdit":{"newText":"=","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":">","preselect":false,"sortText":"19","textEdit":{"newText":">","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"?","preselect":false,"sortText":"20","textEdit":{"newText":"?","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"A","preselect":false,"sortText":"21","textEdit":{"newText":"A","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AA","preselect":false,"sortText":"22","textEdit":{"newText":"AA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AE","preselect":false,"sortText":"23","textEdit":{"newText":"AE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Alph","preselect":false,"sortText":"24","textEdit":{"newText":"Alph","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Arrowvert","preselect":false,"sortText":"25","textEdit":{"newText":"Arrowvert","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDocument","preselect":false,"sortText":"26","textEdit":{"newText":"AtBeginDocument","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDvi","preselect":false,"sortText":"27","textEdit":{"newText":"AtBeginDvi","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndDocument","preselect":false,"sortText":"28","textEdit":{"newText":"AtEndDocument","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndOfClass","preselect":false,"sortText":"29","textEdit":{"newText":"AtEndOfClass","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndOfPackage","preselect":false,"sortText":"30","textEdit":{"newText":"AtEndOfPackage","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Big","preselect":false,"sortText":"31","textEdit":{"newText":"Big","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigg","preselect":false,"sortText":"32","textEdit":{"newText":"Bigg","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggl","preselect":false,"sortText":"33","textEdit":{"newText":"Biggl","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggm","preselect":false,"sortText":"34","textEdit":{"newText":"Biggm","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggr","preselect":false,"sortText":"35","textEdit":{"newText":"Biggr","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigl","preselect":false,"sortText":"36","textEdit":{"newText":"Bigl","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigm","preselect":false,"sortText":"37","textEdit":{"newText":"Bigm","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigr","preselect":false,"sortText":"38","textEdit":{"newText":"Bigr","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Box","preselect":false,"sortText":"39","textEdit":{"newText":"Box","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRA","preselect":false,"sortText":"40","textEdit":{"newText":"CYRA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHCH","preselect":false,"sortText":"41","textEdit":{"newText":"CYRABHCH","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHCHDSC","preselect":false,"sortText":"42","textEdit":{"newText":"CYRABHCHDSC","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHDZE","preselect":false,"sortText":"43","textEdit":{"newText":"CYRABHDZE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHHA","preselect":false,"sortText":"44","textEdit":{"newText":"CYRABHHA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRAE","preselect":false,"sortText":"45","textEdit":{"newText":"CYRAE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRB","preselect":false,"sortText":"46","textEdit":{"newText":"CYRB","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRBYUS","preselect":false,"sortText":"47","textEdit":{"newText":"CYRBYUS","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRC","preselect":false,"sortText":"48","textEdit":{"newText":"CYRC","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRCH","preselect":false,"sortText":"49","textEdit":{"newText":"CYRCH","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}}]}}
2024-11-27T11:02:50.991 helix_lsp::transport [INFO] texlab <- {"isIncomplete":true,"items":[{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"(","preselect":false,"sortText":"00","textEdit":{"newText":"($0\\)","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"[","preselect":false,"sortText":"01","textEdit":{"newText":"[$0\\]","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","insertTextFormat":2,"kind":1,"label":"{","preselect":false,"sortText":"02","textEdit":{"newText":"{$0\\\\}","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"!","preselect":false,"sortText":"03","textEdit":{"newText":"!","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"\"","preselect":false,"sortText":"04","textEdit":{"newText":"\"","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"#","preselect":false,"sortText":"05","textEdit":{"newText":"#","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"$, built-in","kind":1,"label":"$","preselect":false,"sortText":"06","textEdit":{"newText":"$","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"%","preselect":false,"sortText":"07","textEdit":{"newText":"%","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"&","preselect":false,"sortText":"08","textEdit":{"newText":"&","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"'","preselect":false,"sortText":"09","textEdit":{"newText":"'","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"*","preselect":false,"sortText":"10","textEdit":{"newText":"*","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"+","preselect":false,"sortText":"11","textEdit":{"newText":"+","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":",","preselect":false,"sortText":"12","textEdit":{"newText":",","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"-","preselect":false,"sortText":"13","textEdit":{"newText":"-","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":".","preselect":false,"sortText":"14","textEdit":{"newText":".","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"/","preselect":false,"sortText":"15","textEdit":{"newText":"/","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":":","preselect":false,"sortText":"16","textEdit":{"newText":":","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"<","preselect":false,"sortText":"17","textEdit":{"newText":"<","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"=","preselect":false,"sortText":"18","textEdit":{"newText":"=","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":">","preselect":false,"sortText":"19","textEdit":{"newText":">","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"?","preselect":false,"sortText":"20","textEdit":{"newText":"?","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"A","preselect":false,"sortText":"21","textEdit":{"newText":"A","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AA","preselect":false,"sortText":"22","textEdit":{"newText":"AA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AE","preselect":false,"sortText":"23","textEdit":{"newText":"AE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Alph","preselect":false,"sortText":"24","textEdit":{"newText":"Alph","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Arrowvert","preselect":false,"sortText":"25","textEdit":{"newText":"Arrowvert","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDocument","preselect":false,"sortText":"26","textEdit":{"newText":"AtBeginDocument","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDvi","preselect":false,"sortText":"27","textEdit":{"newText":"AtBeginDvi","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndDocument","preselect":false,"sortText":"28","textEdit":{"newText":"AtEndDocument","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndOfClass","preselect":false,"sortText":"29","textEdit":{"newText":"AtEndOfClass","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndOfPackage","preselect":false,"sortText":"30","textEdit":{"newText":"AtEndOfPackage","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Big","preselect":false,"sortText":"31","textEdit":{"newText":"Big","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigg","preselect":false,"sortText":"32","textEdit":{"newText":"Bigg","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggl","preselect":false,"sortText":"33","textEdit":{"newText":"Biggl","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggm","preselect":false,"sortText":"34","textEdit":{"newText":"Biggm","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Biggr","preselect":false,"sortText":"35","textEdit":{"newText":"Biggr","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigl","preselect":false,"sortText":"36","textEdit":{"newText":"Bigl","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigm","preselect":false,"sortText":"37","textEdit":{"newText":"Bigm","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Bigr","preselect":false,"sortText":"38","textEdit":{"newText":"Bigr","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"Box","preselect":false,"sortText":"39","textEdit":{"newText":"Box","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRA","preselect":false,"sortText":"40","textEdit":{"newText":"CYRA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHCH","preselect":false,"sortText":"41","textEdit":{"newText":"CYRABHCH","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHCHDSC","preselect":false,"sortText":"42","textEdit":{"newText":"CYRABHCHDSC","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHDZE","preselect":false,"sortText":"43","textEdit":{"newText":"CYRABHDZE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRABHHA","preselect":false,"sortText":"44","textEdit":{"newText":"CYRABHHA","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRAE","preselect":false,"sortText":"45","textEdit":{"newText":"CYRAE","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRB","preselect":false,"sortText":"46","textEdit":{"newText":"CYRB","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRBYUS","preselect":false,"sortText":"47","textEdit":{"newText":"CYRBYUS","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRC","preselect":false,"sortText":"48","textEdit":{"newText":"CYRC","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"CYRCH","preselect":false,"sortText":"49","textEdit":{"newText":"CYRCH","range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}}}}]}
2024-11-27T11:02:50.991 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.081 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:51.130 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:51.130 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/aria/test.tex")}) })))
2024-11-27T11:02:51.165 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:51.165 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.260 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 2,
            head: 1,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:51.260 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}},"text":"d"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":2}}}
2024-11-27T11:02:51.260 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.382 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.400 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 3,
            head: 2,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:51.400 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":2,"line":0},"start":{"character":2,"line":0}},"text":"o"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":3}}}
2024-11-27T11:02:51.400 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.522 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.523 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 4,
            head: 3,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:51.523 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":3,"line":0},"start":{"character":3,"line":0}},"text":"c"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":4}}}
2024-11-27T11:02:51.523 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.561 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:51.561 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/aria/test.tex")}) })))
2024-11-27T11:02:51.596 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:51.596 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.625 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 5,
            head: 4,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:51.625 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":4,"line":0},"start":{"character":4,"line":0}},"text":"u"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":5}}}
2024-11-27T11:02:51.625 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.747 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.835 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 6,
            head: 5,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:51.835 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":5,"line":0},"start":{"character":5,"line":0}},"text":"m"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":6}}}
2024-11-27T11:02:51.835 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:51.957 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:52.087 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:52.890 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}},"text":""}],"textDocument":{"uri":"file:///home/aria/test.tex","version":7}}}
2024-11-27T11:02:52.890 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:52.939 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:52.940 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/aria/test.tex")}) })))
2024-11-27T11:02:52.975 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:52.975 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.010 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.140 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:53.258 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 2,
            head: 1,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:53.258 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":1,"line":0},"start":{"character":1,"line":0}},"text":"d"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":8}}}
2024-11-27T11:02:53.258 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.368 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 3,
            head: 2,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:53.369 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":2,"line":0},"start":{"character":2,"line":0}},"text":"o"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":9}}}
2024-11-27T11:02:53.369 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.440 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:53.440 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/aria/test.tex")}) })))
2024-11-27T11:02:53.468 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 4,
            head: 3,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:53.468 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":3,"line":0},"start":{"character":3,"line":0}},"text":"c"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":10}}}
2024-11-27T11:02:53.468 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.474 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:53.475 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.553 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 5,
            head: 4,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:53.554 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":4,"line":0},"start":{"character":4,"line":0}},"text":"u"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":11}}}
2024-11-27T11:02:53.554 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.559 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:53.559 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/aria/test.tex")}) })))
2024-11-27T11:02:53.594 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:53.594 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.670 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:53.670 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/aria/test.tex")}) })))
2024-11-27T11:02:53.674 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.704 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:53.705 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.741 helix_core::auto_pairs [TRACE] autopairs hook selection: Selection {
    ranges: [
        Range {
            anchor: 6,
            head: 5,
            old_visual_position: None,
        },
    ],
    primary_index: 0,
}
2024-11-27T11:02:53.742 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":5,"line":0},"start":{"character":5,"line":0}},"text":"m"}],"textDocument":{"uri":"file:///home/aria/test.tex","version":12}}}
2024-11-27T11:02:53.742 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.769 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:53.770 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/aria/test.tex")}) })))
2024-11-27T11:02:53.804 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:53.804 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.855 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///home/aria/test.tex"}}
2024-11-27T11:02:53.855 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/aria/test.tex")}) })))
2024-11-27T11:02:53.862 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.889 helix_term::application [DEBUG] received editor event: Redraw
2024-11-27T11:02:53.890 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.993 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":6,"line":0},"textDocument":{"uri":"file:///home/aria/test.tex"}},"id":3}
2024-11-27T11:02:53.993 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:53.994 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:53.995 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":3,"result":{"isIncomplete":false,"items":[{"detail":"built-in","kind":1,"label":"document","preselect":false,"sortText":"00","textEdit":{"newText":"document","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"documentclass","preselect":false,"sortText":"01","textEdit":{"newText":"documentclass","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"documentstyle","preselect":false,"sortText":"02","textEdit":{"newText":"documentstyle","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDocument","preselect":false,"sortText":"03","textEdit":{"newText":"AtBeginDocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndDocument","preselect":false,"sortText":"04","textEdit":{"newText":"AtEndDocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"enddocument","preselect":false,"sortText":"05","textEdit":{"newText":"enddocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}}]}}
2024-11-27T11:02:53.996 helix_lsp::transport [INFO] texlab <- {"isIncomplete":false,"items":[{"detail":"built-in","kind":1,"label":"document","preselect":false,"sortText":"00","textEdit":{"newText":"document","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"documentclass","preselect":false,"sortText":"01","textEdit":{"newText":"documentclass","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"documentstyle","preselect":false,"sortText":"02","textEdit":{"newText":"documentstyle","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtBeginDocument","preselect":false,"sortText":"03","textEdit":{"newText":"AtBeginDocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"AtEndDocument","preselect":false,"sortText":"04","textEdit":{"newText":"AtEndDocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}},{"detail":"built-in","kind":1,"label":"enddocument","preselect":false,"sortText":"05","textEdit":{"newText":"enddocument","range":{"end":{"character":6,"line":0},"start":{"character":1,"line":0}}}}]}
2024-11-27T11:02:53.996 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-11-27T11:02:56.073 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-11-27T11:02:56.325 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:56.645 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-11-27T11:02:56.809 helix_term::commands::typed [DEBUG] quitting...
2024-11-27T11:02:56.810 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-11-27T11:02:56.897 helix_term::application [DEBUG] received editor event: IdleTimer
2024-11-27T11:02:57.067 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 1
2024-11-27T11:02:57.217 helix_term::job [DEBUG] waiting on jobs...
2024-11-27T11:02:57.217 helix_term::job [DEBUG] waiting on jobs...
2024-11-27T11:02:57.217 helix_lsp::file_event [DEBUG] Removing LSP client: 1v1
2024-11-27T11:02:57.217 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"shutdown","id":4}
2024-11-27T11:02:57.217 helix_lsp::transport [INFO] texlab <- {"jsonrpc":"2.0","id":4,"result":null}
2024-11-27T11:02:57.217 helix_lsp::transport [INFO] texlab <- null
2024-11-27T11:02:57.217 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"exit"}
2024-11-27T11:02:57.218 mio::poll [TRACE] deregistering event source from poller
2024-11-27T11:02:57.219 mio::poll [TRACE] deregistering event source from poller
2024-11-27T11:02:57.219 mio::poll [TRACE] deregistering event source from poller
2024-11-27T11:02:57.220 mio::poll [TRACE] deregistering event source from poller
2024-11-27T11:02:57.220 mio::poll [TRACE] deregistering event source from poller
2024-11-27T11:02:57.220 mio::poll [TRACE] deregistering event source from poller

@catarial
Copy link

This completion event triggers the undesired AtBeginDocument

2024-11-27T11:02:50.836 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerCharacter":"\\","triggerKind":2},"position":{"character":1,"line":0},"textDocument":{"uri":"file:///home/aria/test.tex"}},"id":2}

And this one triggers the correct completions

2024-11-27T11:02:53.993 helix_lsp::transport [INFO] texlab -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":6,"line":0},"textDocument":{"uri":"file:///home/aria/test.tex"}},"id":3}

@pascalkuthe pascalkuthe linked a pull request Dec 8, 2024 that will close this issue
@pascalkuthe pascalkuthe linked a pull request Dec 8, 2024 that will close this issue
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 S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants