Trying to install the latest version of Avante on my Intel Macbook Pro and the build is timing out. The build command I am using is: make BUILD_FROM_SOURCE=true.
When installing with Lazy I can see everything running as expected until it fails with the following output.
local function check_architecture()
-- Execute the 'uname -m' command to get the system architecture
local handle = io.popen("uname -m")
if handle == nil then
return "Failed to execute 'uname -m'"
end
local architecture = handle:read("*a")
handle:close()
-- Trim any trailing whitespace from the output
architecture = architecture:gsub("%s+", "")
-- Check if the architecture is arm64 or x86_64
if architecture == "arm64" then
return "arm"
elseif architecture == "x86_64" then
return "intel"
else
return "Unknown architecture: " .. architecture
end
end
local function get_build_function()
local arch = check_architecture()
if arch == "intel" then
return "make BUILD_FROM_SOURCE=true"
else
return "make"
end
end
local M = {
"yetone/avante.nvim",
event = "VeryLazy",
lazy = false,
version = false, -- set this if you want to always pull the latest change
build = get_build_function(),
dependencies = {
"stevearc/dressing.nvim",
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
--- The below dependencies are optional,
"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,
},
-- 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 = { "markdown", "Avante" },
},
ft = { "markdown", "Avante" },
},
},
}
M.opts = {
provider = "gemini", -- Recommend using Claude
-- auto_suggestions_provider = "copilot", -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
behaviour = {
auto_suggestions = false, -- Experimental stage
auto_set_highlight_group = true,
auto_set_keymaps = true,
auto_apply_diff_after_generation = false,
support_paste_from_clipboard = false,
},
gemini = {
-- @see https://ai.google.dev/gemini-api/docs/models/gemini
model = "gemini-1.5-pro-exp-0827",
-- model = "gemini-1.5-flash",
temperature = 0,
max_tokens = 4096,
},
mappings = {
diff = {
ours = "co",
theirs = "ct",
all_theirs = "ca",
both = "cb",
cursor = "cc",
next = "]x",
prev = "[x",
},
suggestion = {
accept = "<M-y>",
next = "<M-]>",
prev = "<M-[>",
dismiss = "<C-]>",
},
jump = {
next = "]]",
prev = "[[",
},
submit = {
normal = "<CR>",
insert = "<C-e>",
},
sidebar = {
switch_windows = "<Tab>",
reverse_switch_windows = "<S-Tab>",
},
},
}
return M
Platform:
Darwin C02DX62LMD6P 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:48:44 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_X86_64 x86_64 i386 Darwin
Describe the bug
Trying to install the latest version of Avante on my Intel Macbook Pro and the build is timing out. The build command I am using is:
make BUILD_FROM_SOURCE=true
.When installing with Lazy I can see everything running as expected until it fails with the following output.
To reproduce
No response
Expected behavior
No response
Installation method
Use lazy.nvim:
Environment
Neovim Version: NVIM v0.10.1 Build type: Release LuaJIT 2.1.1727621189
Platform: Darwin C02DX62LMD6P 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:48:44 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_X86_64 x86_64 i386 Darwin
Repro
No response