helix-gpt icon indicating copy to clipboard operation
helix-gpt copied to clipboard

[BUG] "error: no handler key provided" when using `--authCopilot`

Open timvancann opened this issue 1 year ago • 4 comments

helix-editor version 23.10

helix-gpt version 0.28

Describe the bug When booting up helix the GPT language server crashes with the log "error: no handler key provided" when configured using Copilot. This happens when booting up helix with HANDLER=copilot hx main.rs

helix-gpt logs n.a.

helix logs

2024-03-03T08:22:32.702 helix_lsp::transport [ERROR] gpt err <- "error: no handler key provided\n"
2024-03-03T08:22:32.702 helix_lsp::transport [ERROR] gpt err <- "      at /***.local/bin/helix-gpt:3:2197\n"
2024-03-03T08:22:32.703 helix_lsp::transport [ERROR] gpt err <- "error: \"helix-gpt\" exited with code 1\n"

My configuration for rust is:

[language-server.gpt]
command = "bun"
args = ["run", "/***.local/bin/helix-gpt", "--authCopilot"]

[[language]]
name = "rust"
language-servers = [
    "rust-analyzer",
    "gpt"
]

timvancann avatar Mar 03 '24 07:03 timvancann