-
Notifications
You must be signed in to change notification settings - Fork 696
Description
Describe the bug
I saw the same issue with this one: #684
but it happens inside Ubuntu 22.04 arm64. It could be reproduced in the host Macbook M3 Pro or the host Android phone. Both hosts are ARM64 architectures, and the docker guest OS is Ubuntu 22.04 arm64.
Neovim inside guest os ubuntu 22.04 is built from neovim source code.
I eventually resolved this issue by building avante.nvim from source code inside guest OS like:
make BUILD_FROM_SOURCE=true
but would like to check if this could be avoided since compiling sources usually takes time.
To reproduce
- find a Macbook M chip-based machine
- Install docker and start a simple Ubuntu 22.04 docker container, by default this Ubuntu is arm64-based since the host is an M chip-based machine.
- Inside docker container, install neovim 0.10.1+ and avante.nvim
- You will see avante.nvim fails to start with the same error reported in bug: Error executing vim.schedule lua callback: ...ocal/share/nvim/lazy/avante.nvim/lua/avante/repo_map.lua:19: Failed to load avante_repo_map #684
- My guess is regardless of docker, the same issue may be reproduced in Ubuntu 22.04 arm64, please help double-check.
Expected behavior
avante.nvim should be able to start inside Ubuntu 22.04 arm64-based machine
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
neovim: 0.10.1+, my neovim is installed from neovim source codes, not sure if the same error happens from apt install neovim
OS: Ubuntu 22.04 arm64
Repro
No response