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: Avante is increasingly unusable lately #1016

Open
synic opened this issue Dec 31, 2024 · 9 comments
Open

bug: Avante is increasingly unusable lately #1016

synic opened this issue Dec 31, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@synic
Copy link

synic commented Dec 31, 2024

Describe the bug

There are multiple issues that seem to have popped up in the last few weeks. They all seem related, and they include:

  1. No output. It'll say "I'll help you do X", and then it will say "Generation complete!", but nothing was in the output.
  2. Incomplete output. It'll start outputting the changes, but then just stop, and say "Generation complete!". It doesn't add the closing triple quote, so everything else in the window is seen as code.
  3. Diffs are wrong or cannot be applied. The code blocks are just plaintext. Sometimes the "apply" will show up, but when you press "a" nothing happens. Or, if you press "a" it applies them incompletely or in the wrong place.

To reproduce

I've tried multiple versions of Avante, I've tried going back to the versions that seemed to work a few weeks ago, but nothing seems to change it. I mention this because it possibly indicates there's something different about the way the llm is responding? Since going back to earlier versions doesn't fix it.

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

:version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1732813678
Run ":verbose version" for more info

MacOS 15.2, using Anthropic

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
  },
})
@synic synic added the bug Something isn't working label Dec 31, 2024
@tonio-m
Copy link

tonio-m commented Jan 2, 2025

this has been happening a lot with me too

@Jinbiao-Lin
Copy link

To me as well even after a thorough re-install

@yetone
Copy link
Owner

yetone commented Jan 2, 2025

Issue 1 and Issue 2 were resolved yesterday.

@yetone
Copy link
Owner

yetone commented Jan 2, 2025

‌‌‌At the same time, it is suspected that issue 3 is also caused by issues 1 and 2. You can update to the latest version to see if the problem still exists.

@Jinbiao-Lin
Copy link

Issue 1 and Issue 2 were resolved yesterday.

Awesome, it works for me now. Thanks for your hard work on the plugin. Really like it!

@synic
Copy link
Author

synic commented Jan 3, 2025

I have just updated and I'll let you know how it goes. Thank you!

@synic
Copy link
Author

synic commented Jan 3, 2025

It's definitely still happening. Example:
CleanShot 2025-01-03 at 08 30 12

You can see that it started outputting one diff, stopped before it was complete, tried outputting another diff and only got to the triple backquotes before it bailed. The "apply" hint doesn't display when you go to the diff (but even if it did, it would just mess the file up if you tried applying it)

@rolandtannous
Copy link

@synic. are you using openrouter? or deepseek?

@synic
Copy link
Author

synic commented Jan 3, 2025

@rolandtannous I am not

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

5 participants