Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Error executing luv callback #834

Open
NekoEnby opened this issue Nov 11, 2024 · 0 comments
Open

bug: Error executing luv callback #834

NekoEnby opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@NekoEnby
Copy link

NekoEnby commented Nov 11, 2024

Describe the bug

Error executing luv callback:
cannot resume dead coroutine
stack traceback:
        [builtin#36]: at 0x01053dc94c
Press ENTER or type command to continue
Error executing luv callback:
cannot resume dead coroutine
stack traceback:
        [builtin#36]: at 0x01053dc94c
Press ENTER or type command to continue
Press ENTER or type command to continue

It seems to be non-deterministic and possibly depend on either what the LLM generates or what the line contents is.

To reproduce

Shift-v to highlight a line
type space a e to edit with avante
get the error

Expected behavior

Should not crash, or at least should give a better error message.

Installation method

return {
	"yetone/avante.nvim",
	event = "VeryLazy",
	version = "^0.0.9",
	opts = {
		-- add any opts here
	},
	-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
	build = "make BUILD_FROM_SOURCE=true",
	-- 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",
		--- The below dependencies are optional,
		{ "nvim-tree/nvim-web-devicons", enabled = vim.g.have_nerd_font }, -- or echasnovski/mini.icons
		-- "zbirenbaum/copilot.lua", -- for providers='copilot'
		{
			"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,
					},
					-- required for Windows users
					use_absolute_path = true,
				},
			},
		},
		{
			-- Make sure to set this up properly if you have lazy=true
			"MeanderingProgrammer/render-markdown.nvim",
			opts = {
				file_types = { "Avante" },
			},
			ft = { "Avante" },
		},
	},
		"nvim-treesitter/nvim-treesitter",
		"stevearc/dressing.nvim",
		"nvim-lua/plenary.nvim",
		"MunifTanjim/nui.nvim",
		--- The below dependencies are optional,
		{ "nvim-tree/nvim-web-devicons", enabled = vim.g.have_nerd_font }, -- or echasnovski/mini.icons
		-- "zbirenbaum/copilot.lua", -- for providers='copilot'
		{
			"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,
					},
					-- required for Windows users
					use_absolute_path = true,
				},
			},
		},
		{
			-- Make sure to set this up properly if you have lazy=true
			"MeanderingProgrammer/render-markdown.nvim",
			opts = {
				file_types = { "Avante" },
			},
			ft = { "Avante" },
		},
	},
}

Environment

neovim version: 0.10.2 (from nixpkgs)
Running macos 14.6.1 (23G93)

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
  },
})
@NekoEnby NekoEnby added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant