jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.67k stars 311 forks source link

lua errors on ChatGPTRun #214

Closed SvenKethz closed 1 year ago

SvenKethz commented 1 year ago

Thanks a lot for this plugin!

The command ChatGPTRun isn't working on my system: Linux Mint 21.1 x86_64 NVIM v0.9.1 Build type: Release LuaJIT 2.1.0-beta3

Whenever I call it, I get the following errors:

Error executing Lua callback: ...vim/lazy/ChatGPT.nvim/lua/chatgpt/flows/actions/init.lua:59: attempt to index local 'item' (a nil v alue) stack traceback: ...vim/lazy/ChatGPT.nvim/lua/chatgpt/flows/actions/init.lua:59: in function 'run_action' ...sven/.local/share/nvim/lazy/ChatGPT.nvim/lua/chatgpt.lua:46: in function 'run_action' ...n/.local/share/nvim/lazy/ChatGPT.nvim/plugin/chatgpt.lua:14: in function <...n/.local/share/nvim/lazy/ChatGPT.nvim/plugin /chatgpt.lua:13> Don't know if it is a bug - how can I help to track it down?

stelgenhof commented 1 year ago

I'm facing the same issue/error. All the other commands work fine though.

My setup: Arch Linux 6.3.7-arch1-1 NVIM 0.9.1

stelgenhof commented 1 year ago

Ah, just noticed why this is happening: When you just call ChatGPTRun without any arguments, this error pops up. If, however, you type ChatGPRun followed by a space and then a TAB, you will be presented with the selection list of possible commands.

SvenKethz commented 1 year ago

Ah, just noticed why this is happening: When you just call ChatGPTRun without any arguments, this error pops up. If, however, you type ChatGPRun followed by a space and then a , you will be presented with the selection list of possible commands.

Thanks a lot!!! That solves it.

lelouvincx commented 11 months ago

Thanks.