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 detected while processing User Autocommands for "AvanteConflictResolved" #848

Open
zigotica opened this issue Nov 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zigotica
Copy link

Describe the bug

When I have used the apply changes, I keep editing my file and get stopped every few keystrokes with this autocommands message.

To reproduce

Error detected while processing User Autocommands for "AvanteConflictResolved":
Error executing lua callback: ...m/HEAD-a6b6d03/share/nvim/runtime/lua/vim/diagnostic.lua:1958: namespace: expected number, got table
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        ...m/HEAD-a6b6d03/share/nvim/runtime/lua/vim/diagnostic.lua:1958: in function 'enable'
        ...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:423: in function <...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:422>
        [C]: in function 'nvim_exec_autocmds'
        ...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:335: in function 'parse_buffer'
        ...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:346: in function 'process'
        ...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:435: in function <...n/.local/share/nvim/lazy/avante.nvim/lua/avante/diff.lua:434>

Expected behavior

Expect to not have neovim stop at every change I make to file

Installation method

Use lazy.nvim:

{
    'yetone/avante.nvim',
    event = 'VeryLazy',
    lazy = false,
    version = false, -- always pull the latest change
    opts = {
      debug = false,
    },
    -- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
    build = 'make',
    dependencies = {
      'nvim-treesitter/nvim-treesitter',
      'stevearc/dressing.nvim',
      'nvim-lua/plenary.nvim',
      'MunifTanjim/nui.nvim',
    },
  },

Environment

NVIM v0.10.0-dev-2593+ga6b6d036b-Homebrew
Build type: Release
LuaJIT 2.1.1727870382

Darwin Mac.zigotica.net 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:31 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6030 arm64

Repro

No response

@zigotica zigotica added the bug Something isn't working label Nov 14, 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