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 not showing completion documentation #10711

Closed
faldor20 opened this issue May 7, 2024 · 2 comments
Closed

Helix not showing completion documentation #10711

faldor20 opened this issue May 7, 2024 · 2 comments
Labels
C-bug Category: This is a bug

Comments

@faldor20
Copy link

faldor20 commented May 7, 2024

Summary

When getting completions which need a 'resolveItem' request the documentation isn't displayed.
image
vs hover:
image

Reproduction Steps

Open helix in an ocaml file with docs

(**This is a doc comment*)
let complete_me=10
let other = comp|

Try to get a completion at the pipe symbol

Helix log

~/.cache/helix/helix.log
024-05-07T19:45:05.078 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-05-07T19:45:05.458 helix_vcs [INFO] file is untracked
2024-05-07T19:45:05.458 helix_vcs [INFO] failed to open diff base for /home/eli/Code/ocaml/jj_tui/bin/main.ml
2024-05-07T19:45:05.460 helix_lsp::transport [INFO] ocamllsp -> {"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":{}},"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":"23.10"},"processId":766316,"rootPath":"/home/eli/Code","rootUri":"file:///home/eli/Code","workspaceFolders":[{"name":"Code","uri":"file:///home/eli/Code"}]},"id":0}
2024-05-07T19:45:05.460 helix_lsp::transport [INFO] copilot -> {"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":{}},"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":"23.10"},"processId":766316,"rootPath":"/home/eli/Code","rootUri":"file:///home/eli/Code","workspaceFolders":[{"name":"Code","uri":"file:///home/eli/Code"}]},"id":0}
2024-05-07T19:45:05.461 helix_view::document [DEBUG] id 1 modified - last saved: 0, current: 0
2024-05-07T19:45:05.463 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:05.479 helix_lsp::transport [INFO] ocamllsp <- {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"codeActionProvider":{"codeActionKinds":["quickfix","refactor.inline","construct","destruct","inferred_intf","put module name in identifiers","remove module name from identifiers","remove type annotation","type-annotate"]},"codeLensProvider":{"resolveProvider":false},"completionProvider":{"resolveProvider":true,"triggerCharacters":[".","#"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["dune/promote"]},"experimental":{"ocamllsp":{"interfaceSpecificLangId":true,"handleSwitchImplIntf":true,"handleInferIntf":true,"handleTypedHoles":true,"handleWrappingAstNode":true,"diagnostic_promotions":true,"handleHoverExtended":true}},"foldingRangeProvider":true,"hoverProvider":true,"positionEncoding":"utf-8","referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]}},"signatureHelpProvider":{"triggerCharacters":[" ","~","?",":","("]},"textDocumentSync":{"change":2,"openClose":true,"save":{"includeText":false},"willSave":false,"willSaveWaitUntil":false},"typeDefinitionProvider":true,"workspace":{"workspaceFolders":{"changeNotifications":true,"supported":true}},"workspaceSymbolProvider":true},"serverInfo":{"name":"ocamllsp","version":"1.17.0"}}}
2024-05-07T19:45:05.479 helix_lsp::transport [INFO] ocamllsp <- {"capabilities":{"codeActionProvider":{"codeActionKinds":["quickfix","refactor.inline","construct","destruct","inferred_intf","put module name in identifiers","remove module name from identifiers","remove type annotation","type-annotate"]},"codeLensProvider":{"resolveProvider":false},"completionProvider":{"resolveProvider":true,"triggerCharacters":[".","#"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["dune/promote"]},"experimental":{"ocamllsp":{"diagnostic_promotions":true,"handleHoverExtended":true,"handleInferIntf":true,"handleSwitchImplIntf":true,"handleTypedHoles":true,"handleWrappingAstNode":true,"interfaceSpecificLangId":true}},"foldingRangeProvider":true,"hoverProvider":true,"positionEncoding":"utf-8","referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]}},"signatureHelpProvider":{"triggerCharacters":[" ","~","?",":","("]},"textDocumentSync":{"change":2,"openClose":true,"save":{"includeText":false},"willSave":false,"willSaveWaitUntil":false},"typeDefinitionProvider":true,"workspace":{"workspaceFolders":{"changeNotifications":true,"supported":true}},"workspaceSymbolProvider":true},"serverInfo":{"name":"ocamllsp","version":"1.17.0"}}
2024-05-07T19:45:05.479 helix_lsp::transport [INFO] ocamllsp <- {"params":{"message":"Unable to find 'ocamlformat-rpc' binary. Types on hover may not be well-formatted. You need to install either 'ocamlformat' of version > 0.21.0 or, otherwise, 'ocamlformat-rpc' package.","type":3},"method":"window/showMessage","jsonrpc":"2.0"}
2024-05-07T19:45:05.479 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: Some(V2), method: "window/showMessage", params: Map({"message": String("Unable to find 'ocamlformat-rpc' binary. Types on hover may not be well-formatted. You need to install either 'ocamlformat' of version > 0.21.0 or, otherwise, 'ocamlformat-rpc' package."), "type": Number(3)}) })))
2024-05-07T19:45:05.479 helix_term::application [WARN] unhandled window/showMessage: ShowMessageParams { typ: Info, message: "Unable to find 'ocamlformat-rpc' binary. Types on hover may not be well-formatted. You need to install either 'ocamlformat' of version > 0.21.0 or, otherwise, 'ocamlformat-rpc' package." }
2024-05-07T19:45:05.479 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2024-05-07T19:45:05.479 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: None, method: "initialized", params: None })))
2024-05-07T19:45:05.479 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"ocaml","text":"open Minttea\nopen Jj_tui\nopen Riot\n\nlet red_with_border fmt =\n  Spices.(\n    default |> border Border.thick |> padding_left 5 |> padding_right 5\n    |> fg (color \"#FF0000\")\n    |> build)\n    fmt\n\nlet overlay_border fmt = Spices.(default |> border Border.double |> build) fmt\n\ntype s = { text : string }\n\nlet jj= Riot.Process.Hi\nlet init _ = Command.Noop\nlet initial_model = { text = \"\" }\n\nlet update event model =\n  match event with\n  | Event.KeyDown ((Key \"q\" | Escape), _) -> (model, Command.Quit)\n  | Event.KeyDown (Key \"j\", _modifier) ->\n      let res=Process.proc_stdout \"jj --no-pager help\" in\n      let model = { text = model.text^\"stdout:\" ^ res } in\n      (model,Command.Noop)\n  | Event.KeyDown (Key k, _modifier) ->\n      let model = { text = model.text ^ k } in\n      (model, Command.Noop)\n  | Event.KeyDown (Space, _modifier) ->\n      let model = { text = model.text ^ \" \" } in\n      (model, Command.Noop)\n  | Event.KeyDown (Enter, _modifier) ->\n      let model = { text = model.text ^ \"\\n\" } in\n      (model, Command.Noop)\n  | _ -> (model, Command.Noop)\n\nlet view model = overlay_border \"%s\" (red_with_border \"%s\" model.text)\nlet () = Minttea.app ~init ~update ~view () |> Minttea.start ~initial_model\n","uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml","version":0}}}
2024-05-07T19:45:05.507 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:05.507 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:05.751 helix_lsp::transport [INFO] ocamllsp <- {"params":{"diagnostics":[{"message":"Unbound constructor Riot.Process.Hi","range":{"end":{"character":23,"line":15},"start":{"character":8,"line":15}},"severity":1,"source":"ocamllsp"},{"message":"Unbound value Process.proc_stdout","range":{"end":{"character":33,"line":23},"start":{"character":14,"line":23}},"severity":1,"source":"ocamllsp"}],"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"},"method":"textDocument/publishDiagnostics","jsonrpc":"2.0"}
2024-05-07T19:45:05.752 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [Object {"message": String("Unbound constructor Riot.Process.Hi"), "range": Object {"end": Object {"character": Number(23), "line": Number(15)}, "start": Object {"character": Number(8), "line": Number(15)}}, "severity": Number(1), "source": String("ocamllsp")}, Object {"message": String("Unbound value Process.proc_stdout"), "range": Object {"end": Object {"character": Number(33), "line": Number(23)}, "start": Object {"character": Number(14), "line": Number(23)}}, "severity": Number(1), "source": String("ocamllsp")}], "uri": String("file:///home/eli/Code/ocaml/jj_tui/bin/main.ml")}) })))
2024-05-07T19:45:05.786 helix_term::application [DEBUG] received editor event: Redraw
2024-05-07T19:45:05.786 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:05.991 helix_lsp::transport [INFO] copilot <- {"jsonrpc":"2.0","id":0,"result":{"capabilities":{"textDocumentSync":{"openClose":true,"change":2},"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"serverInfo":{"name":"GitHub Copilot Language Server","version":"1.173.0","nodeVersion":"20.10.0"}}}
2024-05-07T19:45:05.991 helix_lsp::transport [INFO] copilot <- {"capabilities":{"textDocumentSync":{"change":2,"openClose":true},"workspace":{"workspaceFolders":{"changeNotifications":true,"supported":true}}},"serverInfo":{"name":"GitHub Copilot Language Server","nodeVersion":"20.10.0","version":"1.173.0"}}
2024-05-07T19:45:05.991 helix_lsp::transport [INFO] copilot -> {"jsonrpc":"2.0","method":"initialized","params":{}}
2024-05-07T19:45:05.991 helix_term::application [DEBUG] received editor event: LanguageServerMessage((1, Notification(Notification { jsonrpc: None, method: "initialized", params: None })))
2024-05-07T19:45:05.991 helix_lsp::transport [INFO] copilot -> {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"ocaml","text":"open Minttea\nopen Jj_tui\nopen Riot\n\nlet red_with_border fmt =\n  Spices.(\n    default |> border Border.thick |> padding_left 5 |> padding_right 5\n    |> fg (color \"#FF0000\")\n    |> build)\n    fmt\n\nlet overlay_border fmt = Spices.(default |> border Border.double |> build) fmt\n\ntype s = { text : string }\n\nlet jj= Riot.Process.Hi\nlet init _ = Command.Noop\nlet initial_model = { text = \"\" }\n\nlet update event model =\n  match event with\n  | Event.KeyDown ((Key \"q\" | Escape), _) -> (model, Command.Quit)\n  | Event.KeyDown (Key \"j\", _modifier) ->\n      let res=Process.proc_stdout \"jj --no-pager help\" in\n      let model = { text = model.text^\"stdout:\" ^ res } in\n      (model,Command.Noop)\n  | Event.KeyDown (Key k, _modifier) ->\n      let model = { text = model.text ^ k } in\n      (model, Command.Noop)\n  | Event.KeyDown (Space, _modifier) ->\n      let model = { text = model.text ^ \" \" } in\n      (model, Command.Noop)\n  | Event.KeyDown (Enter, _modifier) ->\n      let model = { text = model.text ^ \"\\n\" } in\n      (model, Command.Noop)\n  | _ -> (model, Command.Noop)\n\nlet view model = overlay_border \"%s\" (red_with_border \"%s\" model.text)\nlet () = Minttea.app ~init ~update ~view () |> Minttea.start ~initial_model\n","uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml","version":0}}}
2024-05-07T19:45:05.993 helix_lsp::transport [INFO] copilot <- {"jsonrpc":"2.0","method":"window/logMessage","params":{"type":3,"message":"[agent] GitHub Copilot Language Server 1.173.0 initialized"}}
2024-05-07T19:45:05.993 helix_lsp::transport [INFO] copilot <- {"jsonrpc":"2.0","id":0,"method":"workspace/configuration","params":{"items":[{"section":"http"},{"section":"github-enterprise"},{"section":"github.copilot"}]}}
2024-05-07T19:45:05.993 helix_term::application [DEBUG] received editor event: LanguageServerMessage((1, Notification(Notification { jsonrpc: Some(V2), method: "window/logMessage", params: Map({"message": String("[agent] GitHub Copilot Language Server 1.173.0 initialized"), "type": Number(3)}) })))
2024-05-07T19:45:05.993 helix_term::application [INFO] window/logMessage: LogMessageParams { typ: Info, message: "[agent] GitHub Copilot Language Server 1.173.0 initialized" }
2024-05-07T19:45:05.993 helix_term::application [DEBUG] received editor event: LanguageServerMessage((1, MethodCall(MethodCall { jsonrpc: Some(V2), method: "workspace/configuration", params: Map({"items": Array [Object {"section": String("http")}, Object {"section": String("github-enterprise")}, Object {"section": String("github.copilot")}]}), id: Num(0) })))
2024-05-07T19:45:05.993 helix_lsp::transport [INFO] copilot -> {"jsonrpc":"2.0","result":[null,null,null],"id":0}
2024-05-07T19:45:06.026 helix_term::application [DEBUG] received editor event: Redraw
2024-05-07T19:45:06.028 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:06.826 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:06.875 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:07.427 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.467 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.507 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.548 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.588 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.628 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.668 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.709 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.749 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.789 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.830 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.870 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:07.919 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:08.088 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:08.137 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:08.507 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:08.555 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:08.679 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:08.728 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:08.829 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:08.878 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:09.156 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:09.206 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:09.276 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"textDocument/signatureHelp","params":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"id":1}
2024-05-07T19:45:09.279 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:09.283 helix_lsp::transport [INFO] ocamllsp <- {"id":1,"jsonrpc":"2.0","result":{"signatures":[]}}
2024-05-07T19:45:09.283 helix_lsp::transport [INFO] ocamllsp <- {"signatures":[]}
2024-05-07T19:45:09.285 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:09.406 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"textDocument/completion","params":{"context":{"triggerKind":1},"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"id":2}
2024-05-07T19:45:09.408 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:09.414 helix_lsp::transport [INFO] ocamllsp <- {"id":2,"jsonrpc":"2.0","result":{"isIncomplete":false,"items":[{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}]}}
2024-05-07T19:45:09.414 helix_lsp::transport [INFO] ocamllsp <- {"isIncomplete":false,"items":[{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}]}
2024-05-07T19:45:09.416 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.217 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.265 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:10.369 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}},"id":3}
2024-05-07T19:45:10.371 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.393 helix_lsp::transport [INFO] ocamllsp <- {"id":3,"jsonrpc":"2.0","result":{"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}}
2024-05-07T19:45:10.393 helix_lsp::transport [INFO] ocamllsp <- {"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}
2024-05-07T19:45:10.393 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(3)), original request likely timed out
2024-05-07T19:45:10.524 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}},"id":4}
2024-05-07T19:45:10.526 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.536 helix_lsp::transport [INFO] ocamllsp <- {"id":4,"jsonrpc":"2.0","result":{"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}}
2024-05-07T19:45:10.536 helix_lsp::transport [INFO] ocamllsp <- {"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}
2024-05-07T19:45:10.536 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(4)), original request likely timed out
2024-05-07T19:45:10.677 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}},"id":5}
2024-05-07T19:45:10.679 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.685 helix_lsp::transport [INFO] ocamllsp <- {"id":5,"jsonrpc":"2.0","result":{"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}}
2024-05-07T19:45:10.685 helix_lsp::transport [INFO] ocamllsp <- {"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}
2024-05-07T19:45:10.685 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(5)), original request likely timed out
2024-05-07T19:45:10.831 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}},"id":6}
2024-05-07T19:45:10.834 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 0
2024-05-07T19:45:10.839 helix_lsp::transport [INFO] ocamllsp <- {"id":6,"jsonrpc":"2.0","result":{"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}}
2024-05-07T19:45:10.840 helix_lsp::transport [INFO] ocamllsp <- {"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}
2024-05-07T19:45:10.840 helix_lsp::transport [ERROR] Tried sending response into a closed channel (id=Num(6)), original request likely timed out
2024-05-07T19:45:10.951 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"position":{"character":23,"line":15},"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"}},"deprecated":false,"detail":"Riot.Process.priority","kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}},"id":7}
2024-05-07T19:45:10.960 helix_lsp::transport [INFO] ocamllsp <- {"id":7,"jsonrpc":"2.0","result":{"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}}
2024-05-07T19:45:10.960 helix_lsp::transport [INFO] ocamllsp <- {"deprecated":false,"detail":"Riot.Process.priority","documentation":{"kind":"markdown","value":"The priority for a process.\n\nA processes' priority can be adjusted to guarantee it always runs before other processes, or to indicate that it is less important that a process executes timely as long as it executes at some point in the future.\n\n\\* High priority processes are scheduled and executed before everything else. Use this with care or your other priorities may have to wait a long time before they run.\n\n\\* Normal priority processes are executed when there are no priority processes ready to be executed.\n\n\\* Low priority processes are only executed when there are no High and no Normal priority processes left."},"kind":4,"label":"High","sortText":"0000","textEdit":{"newText":"High","range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}}}}
2024-05-07T19:45:10.961 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}},"text":"High"}],"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml","version":3}}}
2024-05-07T19:45:10.961 helix_lsp::transport [INFO] copilot -> {"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"range":{"end":{"character":23,"line":15},"start":{"character":21,"line":15}},"text":"High"}],"textDocument":{"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml","version":3}}}
2024-05-07T19:45:10.963 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.001 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:11.215 helix_lsp::transport [INFO] ocamllsp <- {"params":{"diagnostics":[{"message":"Unbound value Process.proc_stdout","range":{"end":{"character":33,"line":23},"start":{"character":14,"line":23}},"severity":1,"source":"ocamllsp"}],"uri":"file:///home/eli/Code/ocaml/jj_tui/bin/main.ml"},"method":"textDocument/publishDiagnostics","jsonrpc":"2.0"}
2024-05-07T19:45:11.216 helix_term::application [DEBUG] received editor event: LanguageServerMessage((0, Notification(Notification { jsonrpc: Some(V2), method: "textDocument/publishDiagnostics", params: Map({"diagnostics": Array [Object {"message": String("Unbound value Process.proc_stdout"), "range": Object {"end": Object {"character": Number(33), "line": Number(23)}, "start": Object {"character": Number(14), "line": Number(23)}}, "severity": Number(1), "source": String("ocamllsp")}], "uri": String("file:///home/eli/Code/ocaml/jj_tui/bin/main.ml")}) })))
2024-05-07T19:45:11.250 helix_term::application [DEBUG] received editor event: Redraw
2024-05-07T19:45:11.252 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.315 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.364 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:11.530 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.656 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.714 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:11.907 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:12.250 helix_vcs [INFO] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/eli/.cache/helix",
        },
    ),
}
2024-05-07T19:45:12.250 helix_vcs [INFO] failed to open diff base for /home/eli/.cache/helix/helix.log
2024-05-07T19:45:12.250 helix_vcs [INFO] Error {
    context: "failed to open git repo",
    source: Discover(
        NoGitRepository {
            path: "/home/eli/.cache/helix",
        },
    ),
}
2024-05-07T19:45:12.250 helix_vcs [INFO] failed to obtain current head name for /home/eli/.cache/helix/helix.log
2024-05-07T19:45:12.250 helix_view::document [DEBUG] id 2 modified - last saved: 0, current: 2
2024-05-07T19:45:12.252 helix_view::document [DEBUG] id 3 modified - last saved: 0, current: 0
2024-05-07T19:45:13.041 helix_view::document [DEBUG] id 3 modified - last saved: 0, current: 0
2024-05-07T19:45:13.085 helix_term::application [DEBUG] received editor event: IdleTimer
2024-05-07T19:45:13.172 helix_view::document [DEBUG] id 3 modified - last saved: 0, current: 0
2024-05-07T19:45:13.307 helix_view::document [DEBUG] id 3 modified - last saved: 0, current: 0
2024-05-07T19:45:13.419 helix_view::document [DEBUG] id 3 modified - last saved: 0, current: 0

Platform

Linux

Terminal Emulator

kitty

Installation Method

nixpkgs

Helix Version

helix 24.03

@faldor20 faldor20 added the C-bug Category: This is a bug label May 7, 2024
@faldor20 faldor20 changed the title Helix not showing documentation in lsp response Helix not showing completion documentation May 7, 2024
@the-mikedavis
Copy link
Member

This was fixed in #10539

@faldor20
Copy link
Author

faldor20 commented May 7, 2024

oh, my bad, thanks for the fast reply. I did a bunch of searching but couldn't turn anything up with my keywords, hopefully this helps others :)

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

2 participants