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: Nvim crash when Avante start #1281

Open
brianhuster opened this issue Feb 16, 2025 · 1 comment
Open

bug: Nvim crash when Avante start #1281

brianhuster opened this issue Feb 16, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@brianhuster
Copy link

brianhuster commented Feb 16, 2025

Describe the bug

This happens whenever I run Avante command (the plugin is lazy-loaded based on command "Avante")

To reproduce

  1. Run Nvim with minimal config nvim --clean -u repro.lua
  2. Run :Avante
  3. In 1~2 seconds, Nvim will crash

Expected behavior

It should just works

Installation method

See minimal config below

Environment

NVIM v0.11.0-dev-1736+g6982106f8c
Build type: RelWithDebInfo
LuaJIT 2.1.1736781742
Run ":verbose version" for more info

Linux brianhuster-ThinkPad-E14-Gen-4.example.com 6.8.0-51-generic #52-Ubuntu SMP PREEMPT_DYNAMIC Thu Dec 5 13:09:44 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Repro

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
	vim.fn.system({
		"git",
		"clone",
		"--filter=blob:none",
		"https://github.com/folke/lazy.nvim.git",
		"--branch=stable", -- latest stable release
		lazypath,
	})
end


vim.cmd.set('rtp^=' .. lazypath)

require("lazy").setup({
	{
		"yetone/avante.nvim",
		version = false, -- set this if you want to always pull the latest change,
		opts = {
			provider = "copilot",
		},
		-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
		build = "make",
		cmd = "Avante",
		-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
		dependencies = {
			-- "stevearc/dressing.nvim",
			"nvim-lua/plenary.nvim",
			"MunifTanjim/nui.nvim",
			"github/copilot.vim", -- for providers='copilot'
		},
	},
})
@brianhuster brianhuster added the bug Something isn't working label Feb 16, 2025
@andribiz
Copy link

I had the same crash today, but after deleting the plugin through Lazy and reinstalling it, it worked again. My best guess is that the installation/build process was interrupted.

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

2 participants