jackMort / jackMort/ChatGPT.nvim

Error: attempt to index field 'popup_layout' (a nil value)

Open
#349 8 comments 9 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
4k
Forks
317
PR merge metrics
No merged PRs in 30d

Description

Hi folks, after installing the plugin via Packer, I am getting the following error on running `:ChatGPT` command
```
Error executing Lua callback: ...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:47: attempt to index field 'popup_layout' (a
nil value)
stack traceback:
...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/base.lua:47: in function 'init'
...packer/start/ChatGPT.nvim/lua/chatgpt/common/classes.lua:88: in function 'new'
...acker/start/ChatGPT.nvim/lua/chatgpt/flows/chat/init.lua:13: in function 'open_chat'
...nvim/site/pack/packer/start/ChatGPT.nvim/lua/chatgpt.lua:34: in function 'openChat'
...m/site/pack/packer/start/ChatGPT.nvim/plugin/chatgpt.lua:2: in function <...m/site/pack/packer/start/ChatGPT.nvim/plugin/ch
atgpt.lua:1>
```

Packer Installation snippet:
```
use({
"jackMort/ChatGPT.nvim",
config = function()
require("chatgpt").setup()
end,
requires = {
"MunifTanjim/nui.nvim",
"nvim-lua/plenary.nvim",
"nvim-telescope/telescope.nvim"
}
})
```

If anyone familiar with the issue, kindly help. Thanks in advance : )

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with lua/chatgpt/flows/chat/base.lua at line 47, then trace initialization from lua/chatgpt/flows/chat/init.lua and the setup call in the reported Packer configuration. Reproduce the error with :ChatGPT and determine what is missing from popup_layout; done means the command opens without this callback error.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.