leona / helix-gpt

Code assistant language server for Helix with support for Copilot/OpenAI/Codeium/Ollama
MIT License
285 stars 19 forks source link

[BUG] Nothing works for me #51

Open adriangalilea opened 3 months ago

adriangalilea commented 3 months ago

helix-editor version 23.10

helix-gpt version 31.0

Describe the bug Nothing seems to work. :lsp-workspace-command

image

Nothing happens if I press C-x nor on space-a

image

languages.toml

[[language]]
name = "tsx"
language-servers = [ "eslint", "emmet-ls", "typescript-language-server", "tailwindcss-ls", "gpt" ]
formatter = { command = "prettier", args = [ "--parser", "typescript" ] }
auto-format = true

[language-server.gpt]
command = "helix-gpt"
args = ["--logFile", "/tmp/helix-gpt.log"]

helix-gpt logs

tail -F /tmp/helix-gpt.log
APP 2024-03-26T09:14:27.113Z --> triggerCharacters: | ["{","("," "]

helix logs This is the only reference to gpt I see on the logs

2024-03-26T10:14:27.077 helix_lsp::transport [INFO] gpt -> {"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":{"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},"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 (f6021dd0)"},"processId":1720,"rootPath":"/Users/adrian/Developer/e-id","rootUri":"file:///Users/adrian/Developer/e-id","workspaceFolders":[{"name":"e-id","uri":"file:///Users/adrian/Developer/e-id"}]},"id":0}

Anything else to look for?

sigmaSd commented 3 months ago

see https://github.com/leona/helix-gpt/issues/49