avante.nvim icon indicating copy to clipboard operation
avante.nvim copied to clipboard

bug: error using the quick edit

Open Yorizel opened this issue 8 months ago • 2 comments

Describe the bug

Image, when trying to use the quick edit funciton it dont work

To reproduce

using copilot as a provider, try using the quick chat

Expected behavior

to work

Installation method

Use lazy.nvim:

{
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this if you want to always pull the latest change
  opts = {
    -- add any opts here
  },
  -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
  build = "make",
  -- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
  dependencies = {
    "nvim-treesitter/nvim-treesitter",
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
  },
}

Environment

nvim 0.11, arch linux 6.14

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    -- add any other plugins here
  },
})

Yorizel avatar Apr 20 '25 18:04 Yorizel

You should include a valid repro file to replicate the bug you are having. Try this: in a empty directory create file repro.lua:

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

---@diagnostic disable-next-line: missing-fields
require("lazy.minit").repro({
	spec = {
		{
			"yetone/avante.nvim",
			provider = "copilot",
			event = "VeryLazy",
			lazy = false,
			version = false, -- put the version you are using
			opts = {
				-- add any opts here
			},
			build = "make",
			dependencies = {
				{
					"zbirenbaum/copilot.lua",
					cmd = "Copilot",
					event = "InsertEnter",

					config = function()
						require("copilot").setup({})
					end
				},
				"nvim-treesitter/nvim-treesitter",
				"stevearc/dressing.nvim",
				"nvim-lua/plenary.nvim",
				"MunifTanjim/nui.nvim",
			},
		}
	},
})

Then, open json file with command: neovim -u repro.lua path/to/json/file. Finally, attempt to use quick edit.

joseph-pq avatar Apr 29 '25 17:04 joseph-pq

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.

github-actions[bot] avatar May 30 '25 02:05 github-actions[bot]

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 04 '25 02:06 github-actions[bot]