Open Amleto opened 1 month ago
What buffer are you trying to write to? vim.wait
is only used in two places in the code base, and I'm not sure how writing would get there
Just my own code files (in git repo of course)
Is there a neogit window/tab open while you're doing this?
It normally happens in the workflow where I open the git status, expand the diff of a file, hit enter to go to the file, edit & save.
So neogit is not visible at all when the exception occurs
---- On Fri, 24 May 2024 15:29:44 +0100 @.*** wrote ----
Is there a neogit window/tab open while you're doing this?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Is neogit opened as a tab, or split, or..?
It's opened via require("neogit").open(). (Full window)
---- On Sat, 25 May 2024 21:43:51 +0100 @.*** wrote ----
Is neogit opened as a tab, or split, or..?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
I see the same behaviour using <cmd>Neogit<CR>
in a keybinding.
It seems to happen when I save a buffer after having opened Neogit from that buffer and leaving the Neogit window open for a while. I also see that a [No Name] buffer is opened each time I open Neogit and is not closed when I close Neogit, which might be related.
Neovim 0.10
The Neogit commit is 69e0f12
The setup is just require("neogit").setup()
I don't have time to make a minimal config currently, but I might be able to on the weekend if that would be useful.
it would be useful :)
I'm going to do my best to deal with this quickly, but personal-life stuff has increased recently, and I'll have a bit less time for this for a little while. Any help would be appreciated, and I don't mind giving pointers if there are questions :)
Using commit 37823b4
does not have this issue, but I also think maybe something got updated in plenary, looking at this, and since I am not sure what version of plenary I was using when I had this issue then maybe this has fixed itself...
@Amleto can you sync to the most recent stable versions of Neogit and plenary and see if you still have this issue?
I did that and have not seen the issue, but I also have not been in neogit as much over the last couple days.
I don't mind if you want to close now or leave it open for a bit.
I did just see this again.
I had just :w in a file, opened neogit status, expanded a hunk then discarded it (x
). As soon as I hit q
to exit neogit status the exception was thrown
Can you share the commits of both neogit and plenary?
Neogit is 4c5b826 Plenary is a3e3bc8
Description
I get this error message normally after :w a buffer, but I'm not really sure on how to reproduce it consistently.
I was told vim.wait changed in nvim 0.10 so maybe you're more aware of potential fixes/causes.
Neovim version
V0.10 Release Luajit 2.1.1713484068
Operating system and version
Win11/wsl2/Ubuntu 20.04
Steps to reproduce
?
Expected behavior
No errors
Actual behavior
Minimal config