jackMort / jackMort/ChatGPT.nvim
Errors on ChatGPT command - string manipulation
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 317
- PR merge metrics
- No merged PRs in 30d
Description
I can use most of the other functionality that I have tested, but when I run a simple query in the `:ChatGPT` command
I get such errors. I do receive results, but I have to press multiple times `Enter` to continue.
I have `copilot` enabled and use a proxy to access chatGPT backend.
Thanks for your efforts
```
Error executing vim.schedule lua callback: .../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:67: attempt to concatenate fie
ld 'content' (a userdata value)
stack traceback:
.../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:67: in function 'on_stdout_chunk'
.../site/pack/packer/start/ChatGPT.nvim/lua/chatgpt/api.lua:332: in function <.../site/pack/packer/start/ChatGPT.nvim/lua/cha
tgpt/api.lua:321>
Press ENTER or type command to continue
Error executing vim.schedule lua callback: vim/shared.lua:0: s: expected string, got userdata
stack traceback:
[C]: in function 'error'
vim/shared.lua: in function 'validate'
vim/shared.lua: in function 'gsplit'
vim/shared.lua: in function 'split'
...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:270: in function 'addAnswerPartial'
...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:784: in function ''
vim/_editor.lua: in function
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with lua/chatgpt/api.lua at line 67 and then inspect lua/chatgpt/flows/chat/base.lua around line 270. Reproduce a :ChatGPT query with the reported proxy setup, checking how streamed output is handled. Done means the query completes without userdata or scheduled-callback errors and no repeated Enter presses are required.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100