avante.nvim
avante.nvim copied to clipboard
bug: avante edit: Nil prompt error
Describe the bug
Content of :messages
Error executing vim.schedule lua callback: ...cal/share/nvim/lazy/avante.nvim/lua/avante/selection.lua:209: attempt to index field 'prompt_input' (a nil value)
stack traceback:
...cal/share/nvim/lazy/avante.nvim/lua/avante/selection.lua:209: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
To reproduce
No response
Expected behavior
Avante Edit should succeed with no errors.
Installation method
Default Ollama-based set-up.
Use lazy.nvim:
return {
"yetone/avante.nvim",
event = "VeryLazy",
version = false, -- Never set this value to "*"! Never!
opts = {
provider = "ollama",
ollama = {
endpoint = "http://127.0.0.1:11434", -- Note that there is no /v1 at the end.
model = "qwen2.5-coder:7b-instruct-q8_0",
},
},
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
build = "make",
dependencies = {
"nvim-treesitter/nvim-treesitter",
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"echasnovski/mini.pick", -- for file_selector provider mini.pick
"nvim-telescope/telescope.nvim", -- for file_selector provider telescope
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
"ibhagwan/fzf-lua", -- for file_selector provider fzf
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
{
-- support for image pasting
"HakonHarnes/img-clip.nvim",
event = "VeryLazy",
opts = {
-- recommended settings
default = {
embed_image_as_base64 = false,
prompt_for_file_name = false,
drag_and_drop = {
insert_mode = true,
},
},
},
},
{
-- Make sure to set this up properly if you have lazy=true
'MeanderingProgrammer/render-markdown.nvim',
opts = {
file_types = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}
Environment
nvim -v
NVIM v0.11.0
Build type: RelWithDebInfo
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info
Repro
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
The latest version should no longer have this issue.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
This issue was closed because it has been stalled for 5 days with no activity.