Coder Social home page Coder Social logo

Comments (9)

CKolkey avatar CKolkey commented on June 27, 2024 2

So, on the nightly branch, here's how that sequence results (thanks for the reproduction steps):
Screenshot 2024-04-03 at 19 30 43

Since it's fixed there, I'm not super keen to revisit this. I'll merge this into master when nvim-0.10 is released - in the meantime I recommend either using nightly or waiting the (hopefully) short time until it's release :)

from neogit.

javoscript avatar javoscript commented on June 27, 2024 1

@rami3l The issue seems to happen when there are staged changes in renamed file, and unstaged changes to it's content.

Steps to reproduce, in an example repo without unstaged changes:

echo "example" > test.txt

git add -A && git commit -m "..."

mv test.txt test_2.txt

git add -A

echo "change" >> test_2.txt

Open neovim and neogit status buffer and the bug happens.

2024-04-03_11-43-36

from neogit.

rami3l avatar rami3l commented on June 27, 2024

To provide more context on this, the git status invocation gives:

$ git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b
# branch.oid 048af8ddf23bf8cdf58c818739eb828a84ba01cd# branch.head master# branch.upstream origin/master# branch.ab +0 -02 R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lualua/plugins/lsp/rust_analyzer.lua

... and I suspect the problem is somewhere near here:

elseif kind == "2" then
local mode_staged, mode_unstaged, _, _, _, _, _, _, _, name, orig_name = rest:match(match_2)

local match_2 = "(.)(.) (....) (%d+) (%d+) (%d+) (%w+) (%w+) (%a%d+) ([^\t]+)\t?(.+)"

... where match_2 should be parsing, in the example above:

R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lualua/plugins/lsp/rust_analyzer.lua
Full Logs
[TRACE Mon Feb  5 19:23:13 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb  5 19:23:13 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:103: [REPO]: Initializing Repository
[DEBUG Mon Feb  5 19:23:13 2024] ...l/.local/share/nvim/lazy/neogit/lua/neogit/lib/state.lua:10: [STATE]: Reading file: '/Users/rami3l/.local/state/nvim/neogit/%Users%rami3l%.config%nvim'
[DEBUG Mon Feb  5 19:23:13 2024] ...l/.local/share/nvim/lazy/neogit/lua/neogit/lib/state.lua:10: [STATE]: Loaded: '/Users/rami3l/.local/state/nvim/neogit/%Users%rami3l%.config%nvim'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1415: [STATUS BUFFER]: Creating...
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1424: [STATUS BUFFER]: Initializing...
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:1469: [STATUS BUFFER]: Dispatching initial render
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:533: [STATUS BUFFER]: Acquired refresh lock:
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "rev-parse", "--show-toplevel" }
[DEBUG Mon Feb  5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:76: [REPO]: Refreshing 'update_status'
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'status': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "status", "-z", "--porcelain=2", "-b" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always status -z --porcelain=2 -b' succeeded in 4 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'rev-parse': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --short 048af8ddf23bf8cdf58c818739eb828a84ba01cd'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "rev-parse", "--short", "048af8ddf23bf8cdf58c818739eb828a84ba01cd" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --short 048af8ddf23bf8cdf58c818739eb828a84ba01cd' succeeded in 4 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master --max-count=1'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "origin/master", "--max-count=1" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master --max-count=1' succeeded in 4 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'rev-parse': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --verify --quiet refs/heads/origin/master'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "rev-parse", "--verify", "--quiet", "refs/heads/origin/master" }
[WARN  Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:622: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always rev-parse --verify --quiet refs/heads/origin/master' failed with code 1 after 4 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'describe': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always describe --long --tags HEAD'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "describe", "--long", "--tags", "HEAD" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[WARN  Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:622: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always describe --long --tags HEAD' failed with code 128 after 3 ms
[WARN  Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:628: [CLI] [STDERR] fatal: No names found, cannot describe anything.
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch --max-count=10'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "--max-count=10" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch @{upstream}.. --max-count=256'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "@{upstream}..", "--max-count=256" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --max-count=1 --format=%s 048af8ddf23bf8cdf58c818739eb828a84ba01cd'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", "--max-count=1", "--format=%s", "048af8ddf23bf8cdf58c818739eb828a84ba01cd" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..@{upstream} --max-count=256'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "..@{upstream}", "--max-count=256" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'stash': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always stash list'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "stash", "list" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always stash list' succeeded in 5 ms
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch @{upstream}.. --max-count=256' succeeded in 5 ms
[DEBUG Mon Feb  5 19:23:14 2024] ...cal/share/nvim/lazy/neogit/lua/neogit/lib/git/config.lua:100: [Config] Rebuilding git config_cache
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'config': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always config --list --null --local'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "config", "--list", "--null", "--local" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always config --list --null --local' succeeded in 3 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master.. --max-count=256'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "origin/master..", "--max-count=256" }
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --max-count=1 --format=%s 048af8ddf23bf8cdf58c818739eb828a84ba01cd' succeeded in 9 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..@{upstream} --max-count=256' succeeded in 10 ms
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:869: [CLI]: Executing 'log': 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..origin/master --max-count=256'
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:363: [PROCESS] Spawning: { "git", "--no-pager", "--literal-pathspecs", "--no-optional-locks", "-c", "core.preloadindex=true", "-c", "color.ui=always", "log", '--format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null},', "--no-patch", "..origin/master", "--max-count=256" }
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch --max-count=10' succeeded in 10 ms
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch origin/master.. --max-count=256' succeeded in 4 ms
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one
[TRACE Mon Feb  5 19:23:14 2024] ....local/share/nvim/lazy/neogit/lua/neogit/lib/git/cli.lua:632: [CLI] Execution of 'git --no-pager --literal-pathspecs --no-optional-locks -c core.preloadindex=true -c color.ui=always log --format={"sanitized_subject_line":"%f","ref_name":"%D","rel_date":"%cr","abbreviated_parent":"%p","abbreviated_tree":"%t","subject":"%s","body":"%b","parent":"%P","author_name":"%aN","author_date":"%aD","encoding":"%e","committer_email":"%cE","committer_name":"%cN","oid":"%H","tree":"%T","committer_date":"%cD","abbreviated_commit":"%h","commit_notes":"%N","author_email":"%aE","null":null}, --no-patch ..origin/master --max-count=256' succeeded in 3 ms
[DEBUG Mon Feb  5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:62: [REPO]: Refreshes complete
[DEBUG Mon Feb  5 19:23:14 2024] ...share/nvim/lazy/neogit/lua/neogit/lib/git/repository.lua:65: [REPO]: Running refresh callback
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:513: [STATUS BUFFER]: Redrawing
[DEBUG Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:518: [STATUS BUFFER]: Finished Redrawing
[INFO  Mon Feb  5 19:23:14 2024] ...mi3l/.local/share/nvim/lazy/neogit/lua/neogit/status.lua:560: [STATUS BUFFER]: Refresh lock is now free
[TRACE Mon Feb  5 19:23:14 2024] ...i3l/.local/share/nvim/lazy/neogit/lua/neogit/process.lua:76: [PROCESS] Preview buffer already exists. Focusing the existing one

from neogit.

rami3l avatar rami3l commented on June 27, 2024

I think I may have found out the origin of the problem.

https://git-scm.com/docs/git-status says:

Renamed or copied entries have the following format:

2 <XY> <sub> <mH> <mI> <mW> <hH> <hI> <X><score> <path><sep><origPath>
...
<sep>       When the `-z` option is used, the 2 pathnames are separated
	    with a NUL (ASCII 0x00) byte; otherwise, a tab (ASCII 0x09)
	    byte separates them.

... which indicates that this is indeed a regression introduced in 5312c67.

from neogit.

rami3l avatar rami3l commented on June 27, 2024

@CKolkey Aha! This is a combination of 2 separate issues so fixing only one of them (with #1165) won't work.

I expect rest to be

"R. N... 100644 100644 100644 ac01e6941fe11104afee78fa73ad77f9707d169b ac01e6941fe11104afee78fa73ad77f9707d169b R100 lua/plugins/lsp/rust-analyzer.lua\0lua/plugins/lsp/rust_analyzer.lua"

... but instead the actual value was all the contents before '\0', so with git status -z the old pattern matched something like lua/plugins/lsp/rust-analyzer.lu <- a, leading to the original problematic status line.

from neogit.

javoscript avatar javoscript commented on June 27, 2024

Just for the record, the same issue keeps happening with the latest version ( c0b1d4d ), and Neovim version 0.9.5

2024-04-02_15-43-56

from neogit.

rami3l avatar rami3l commented on June 27, 2024

It's actually fixed in #1167 rather than #1165, at least for a while...

Could this be a regression for some kind?

from neogit.

rami3l avatar rami3l commented on June 27, 2024

Just for the record, the same issue keeps happening with the latest version ( c0b1d4d ), and Neovim version 0.9.5

2024-04-02_15-43-56

@javoscript I'm on c0b1d4d + nvim 0.9 as well and it seems that I can't reproduce this issue 👀

from neogit.

rami3l avatar rami3l commented on June 27, 2024

Given that maybe we should reopen this issue. @CKolkey what do you think?

from neogit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.