Open mangelozzi opened 3 months ago
Since you're on 0.10, can you try the nightly
branch to see if the issue still occurs? :)
And when you have a chance, can you capture the output of git status -z --porcelain=2 -b
?
If you feel up to it, and want to do some debugging, this is the bit that's parsing the status output: https://github.com/NeogitOrg/neogit/blob/fd63c19287cb275ea38d2c85f41ce712a816c160/lua/neogit/lib/git/status.lua#L56-L68
Okay cool will do, unfortunately the repo has moved on from there, but when it next happens will try this, thanks!
The good news is that it happened again, I tried nightly: Add back statuscolumn for some buffers
E5108: Error executing lua: ...k/packer/start/neogit/lua/neogit/buffers/status/init.lua:844: table index is nil
stack traceback:
...k/packer/start/neogit/lua/neogit/buffers/status/init.lua:844: in function 'open'
.../share/nvim/site/pack/packer/start/neogit/lua/neogit.lua:115: in function 'open_status_buffer'
.../share/nvim/site/pack/packer/start/neogit/lua/neogit.lua:187: in function 'open'
/home/michael/.config/nvim/after/plugin/neogit.lua:142: in function </home/michael/.config/nvim/after/plugin/neogit.lua:142>
So I tried about 8 commit up to 2 weeks ago (Clean up docs) and still get the same error every time.
I think to replicate the issue:
I traced this back to an overly aggressive regex which caused the original filename to NOT be included in the string returned for matching against renamed files in lib/git/status.lua
. I've added the fix in PR #1281.
Note: This PR was against stable since the problem was easily reproducible there.
Description
In the Neogit status it shows files name like:
Instead of (this is from the CLI):
Because it has the wrong filenames, it can't toggle it open
Neovim version
NVIM v0.10.0-dev-1224+gdfa8b582a Build type: RelWithDebInfo LuaJIT 2.1.1695653777 Run "nvim -V1 -v" for more info
Operating system and version
Ubuntu 22.04
Steps to reproduce
Not sure, I tried to create blank report, with the same dir structure, relative to the current PWD, but it did not do it then. I think the file has to be modified and renamed.
Expected behavior
The correct file name to show, if I exit neovim, and perform a git status at the command line:
Actual behavior
This is what Neogit shows:
s -> Gateway/Gateway.NextClient/src/app/app-route-strategy.t
should beGateway/Gateway.NextClient/src/app/app-route-strategy.ts
(Note the endings
)Because it has the wrong filenames, it can't toggle it open
Minimal config