leona / helix-gpt

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

InvalidExe ? #5

Closed peteringram0 closed 8 months ago

peteringram0 commented 8 months ago

Im getting the following error log:

2024-01-26T21:45:37.138 helix_lsp::transport [ERROR] gpt err <- "error: Failed to run \"helix-gpt.js\" due to error InvalidExe\n"

helix-gpt is in my path. Im on a M1.

[language-server.gpt]
command = "bun"
args = ["run", "helix-gpt.js"]
lemontheme commented 8 months ago

I don't know much about Bun, but I'd be surprised if it checks your path. Try providing the complete path to the JS file?

peteringram0 commented 8 months ago

I don't know much about Bun, but I'd be surprised if it checks your path. Try providing the complete path to the JS file?

It runs directly in a terminal. Well it executes and i get an error "z is not a function" from the helix-gpt.js lib

leona commented 8 months ago

I don't know much about Bun, but I'd be surprised if it checks your path. Try providing the complete path to the JS file?

It runs directly in a terminal. Well it executes and i get an error "z is not a function" from the helix-gpt.js lib

Could you try clone the repo and build it manually with bun run build:smol?

peteringram0 commented 8 months ago

yeah this resolves my issue but now im getting issue reported in #7.