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: Apply takes long and throws errors #1325

Open
michaelwoelk opened this issue Feb 20, 2025 · 1 comment
Open

bug: Apply takes long and throws errors #1325

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

Comments

@michaelwoelk
Copy link

Describe the bug

Hi!

When I apply changes, they no longer apply directly but instead go through different places and seem to take longer to execute. This is probably a feature, but it also encounters some errors.

Error executing vim.schedule lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: Invalid 'end_row': out of range
stack traceback:
	[C]: in function 'nvim_buf_set_extmark'
	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
Error executing vim.schedule lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: Invalid 'end_row': out of range
stack traceback:
	[C]: in function 'nvim_buf_set_extmark'
	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
Error executing vim.schedule lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: Invalid 'end_row': out of range
stack traceback:
	[C]: in function 'nvim_buf_set_extmark'
	...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: in function ''
	vim/_editor.lua: in function <vim/_editor.lua:0>
Error executing vim.schedule lua callback: ...local/share/nvim/lazy/avante.nvim/lua/avante/sidebar.lua:1036: Invalid 'end_row': out of range
stack traceback:

Avante is my daily driver, Thanks for this!

To reproduce

No response

Expected behavior

No response

Installation method

Use lazy.nvim:

return {
  "yetone/avante.nvim",
  event = "VeryLazy",
  lazy = false,
  version = false, -- set this to "*" if you want to always pull the latest change, false to update on release
  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 = {
    "stevearc/dressing.nvim",
    "nvim-lua/plenary.nvim",
    "MunifTanjim/nui.nvim",
    --- The below dependencies are optional,
    "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
    "nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
    "zbirenbaum/copilot.lua", -- for providers='copilot'
    {
      -- 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" },
    },
  },
}

Environment

NVIM v0.10.3
Build type: Release
LuaJIT 2.1.1713773202

Linux, NixOs

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
  },
})
@michaelwoelk michaelwoelk added the bug Something isn't working label Feb 20, 2025
@viktor21minds
Copy link

latest update made it from awesome plugin to basically unusable ...it takes like 20 seconds for me to apply.

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