Branch component doesn't update itself for projects / folders opened in Windows paths under WSL. #1310
Unanswered
nishnat-rishi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
But it DOES update for folders opened anywhere other than the /mnt/* paths (Native Ubuntu paths). Is this a problem that others are facing? I google a bit but couldn't find someone encountering this issue or a solution.
I am using Ubuntu 24.04 inside WSL2 (Windows 11).
I was trying to dig into the issue, seems like a vim.uv.new_fs_event issue, because when I changed the branch component to use vim.uv.new_fs_poll(), the issue went away. I thought this shouldn't happen for WSL, but it seems like it happens regardless.
Assuming this is a real issue, it might be solved by changing the following line in
~.local/share/nvim/lazy/lualine.nvim/lua/lualine/components/git_branch.lua
to use more robust checking of the underlying OS, or by digging new_fs_event or WSL code:I'll try digging into this further, but just wanted some sanity checks on whether I'm just the only guy facing this issue.
Note: The reason I'm having to use /mnt/* in WSL is to open projects started before I started using WSL. A workaround is to just copy everything within Ubuntu's FS, but we're just dodging the issue at that point.
Beta Was this translation helpful? Give feedback.
All reactions