avante.nvim icon indicating copy to clipboard operation
avante.nvim copied to clipboard

bug: DeepSeek mode, pressing 'A' does not apply_all.

Open yuzhegan opened this issue 10 months ago • 2 comments

Describe the bug

DeepSeek mode,think mode, pressing 'A' does not apply_all.

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 if you want to always pull the latest change
    opts = {
      provider = "deepseek",
      vendors = {
        deepseek = {
          __inherited_from = "openai",
          api_key_name = "DEEPSEEK_API_KEY",
          endpoint = "https://api.deepseek.com",
          model = "deepseek-coder",
        },
      },
    },
    -- 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",
      --- The below dependencies are optional,
      "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 --version mac ✱ ◼ NVIM v0.10.4 Build type: Release LuaJIT 2.1.1736781742 Run "nvim -V1 -v" for more info

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
  },
})

yuzhegan avatar Feb 15 '25 16:02 yuzhegan

same for the Openai 4.1mini

AlpMimaroglu avatar Apr 15 '25 13:04 AlpMimaroglu

Perhaps the tag is missing at the starting position of the text returned by Deepseek. This will cause multiple identical code modifications to be applied to the same position when applying according to Application A, resulting in the occurrence of various strange application errors.

Fu-Xiaotian avatar Apr 23 '25 02:04 Fu-Xiaotian