Bug Finder always fails with the message "Failed to parse git show output"

I’m on Windows 10 using Cursor 0.44.11.

Steps to reproduce:

  1. open ANY project in Cursor (big or small, many changes or few, doesn’t seem to matter)
  2. open the bug finder tab and click “run new”
  3. in the preview dialog, it will correctly list the changed files and give you a quote for the price and whether or not you can do a free run (i haven’t tried changing anything in the advanced configuration, those are all at their default values)
  4. try to start a bug finder run (free or paid, doesn’t matter)
  5. it immediately fails, saying “Failed to parse git show output”

What happens if I run “git show” manually? I see a diff of the latest commit that basically looks how I would expect. Notably though, it opens with the git pager, so i have to press Q to exit this command.

4 Likes

I was facing the exactly same issue.

1 Like

Hey, thanks for the report!

It’s possible that, as you suggested, git attempts to open the result of git show in the interactive pager, which is stopping Cursor from being able to parse it.
Does anything change if you set Git to not use the pager (then restart all Cursor instances to ensure the config change is loaded): git config --global core.pager "cat"

I have reported this to the team regardless, who will hopefully fix this in a future update!

Hey @danperks, thanks for the reply!

I just tried it, but unfortunately that doesn’t fix the issue. Bug Finder still fails with the same message. I’ve made sure to restart Cursor after changing that git config option and confirmed that running “git show” in the Cursor terminal now shows its result without using the pager.

Hopefully the team can figure out what’s really causing this issue, or if not, maybe tell them to make the error message more detailed?

1 Like

Thanks for clarifying. I have passed it on, so hopefully they’re looking into it as we speak!

the same issue for me

Experiencing the same problem with the bug finder issue.

I encountered the same issue both with and without the git show cat configuration

What happens when you run both commands yourself, does the output work as expected?

I am also facing this issue on 0.45.11 on Windows.

Each failed run causes output like this in Cursor\logs\...\window1\exthost\vscode.git\Git.log:

2025-02-09 11:45:59.206 [info] > git merge-base origin/master HEAD [34ms]
2025-02-09 11:45:59.264 [info] > git diff --no-color --ignore-space-change -U50 55cf83762d4af0442ec5a645d2808154a3b48888 [56ms]
2025-02-09 11:46:01.795 [info] > git rev-parse --show-toplevel [32ms]
2025-02-09 11:46:01.795 [info] fatal: not a git repository (or any of the parent directories): .git

Running the failing command in good ole cmd yields:

C:\Users\me\myrepo>git rev-parse --show-toplevel
C:/Users/me/myrepo

C:\Users\me\myrepo>

Full log file shows a mixed bag of failing and succeeding git commands:

2025-02-09 11:49:00.695 [info] [main] Log level: Info
2025-02-09 11:49:00.695 [info] [main] Validating found git in: "C:\Program Files\Git\cmd\git.exe"
2025-02-09 11:49:00.695 [info] [main] Using git "2.47.1.windows.2" from "C:\Program Files\Git\cmd\git.exe"
2025-02-09 11:49:00.695 [info] [Model][doInitialScan] Initial repository scan started
2025-02-09 11:49:00.761 [info] > git rev-parse --show-toplevel [70ms]
2025-02-09 11:49:00.826 [info] > git rev-parse --git-dir --git-common-dir [45ms]
2025-02-09 11:49:00.837 [info] [Model][openRepository] Opened repository: c:\Users\me\myrepo
2025-02-09 11:49:00.885 [info] > git config --get commit.template [43ms]
2025-02-09 11:49:00.887 [info] > git rev-parse --show-toplevel [43ms]
2025-02-09 11:49:00.887 [info] fatal: not a git repository (or any of the parent directories): .git
2025-02-09 11:49:00.898 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [44ms]
2025-02-09 11:49:01.094 [info] > git status -z -uall [191ms]
2025-02-09 11:49:01.095 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [188ms]
2025-02-09 11:49:01.108 [info] > git rev-parse --show-toplevel [218ms]
2025-02-09 11:49:02.112 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [1006ms]
2025-02-09 11:49:02.321 [info] > git config --local branch.master.vscode-merge-base [204ms]
2025-02-09 11:49:02.321 [warning] [Git][config] git config failed: Failed to execute git
2025-02-09 11:49:02.325 [info] > git rev-parse --show-toplevel [219ms]
2025-02-09 11:49:02.326 [info] > git config --get commit.template [223ms]
2025-02-09 11:49:02.326 [info] > git fetch [1489ms]
2025-02-09 11:49:02.326 [info] Missing or invalid credentials.
Skip silent fetch commands
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
2025-02-09 11:49:02.433 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [78ms]
2025-02-09 11:49:02.433 [info] > git reflog master --grep-reflog=branch: Created from *. [109ms]
2025-02-09 11:49:02.438 [info] > git config --get commit.template [95ms]
2025-02-09 11:49:02.438 [info] > git rev-parse --show-toplevel [97ms]
2025-02-09 11:49:02.450 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [78ms]
2025-02-09 11:49:02.515 [info] > git rev-parse --show-toplevel [65ms]
2025-02-09 11:49:02.516 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [78ms]
2025-02-09 11:49:02.516 [info] fatal: ref refs/remotes/origin/HEAD is not a symbolic ref
2025-02-09 11:49:02.516 [warning] [Repository][getDefaultBranch] Failed to get default branch details: Failed to execute git.
2025-02-09 11:49:02.540 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [75ms]
2025-02-09 11:49:02.545 [info] > git status -z -uall [74ms]
2025-02-09 11:49:02.552 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [77ms]
2025-02-09 11:49:02.572 [info] > git merge-base refs/heads/master refs/remotes/origin/master [51ms]
2025-02-09 11:49:02.595 [info] > git rev-parse --show-toplevel [56ms]
2025-02-09 11:49:02.619 [info] > git config --local branch.master.vscode-merge-base [76ms]
2025-02-09 11:49:02.620 [warning] [Git][config] git config failed: Failed to execute git
2025-02-09 11:49:02.625 [info] > git merge-base refs/heads/master refs/remotes/origin/master [65ms]
2025-02-09 11:49:02.697 [info] > git diff --name-status -z --diff-filter=ADMR 55cf83762d4af0442ec5a645d2808154a3b48888...refs/remotes/origin/master [69ms]
2025-02-09 11:49:02.698 [info] > git rev-parse --show-toplevel [79ms]
2025-02-09 11:49:02.698 [info] > git diff --name-status -z --diff-filter=ADMR 55cf83762d4af0442ec5a645d2808154a3b48888...refs/remotes/origin/master [121ms]
2025-02-09 11:49:02.716 [info] > git check-ignore -v -z --stdin [117ms]
2025-02-09 11:49:02.717 [info] > git reflog master --grep-reflog=branch: Created from *. [95ms]
2025-02-09 11:49:02.758 [info] > git rev-parse --show-toplevel [42ms]
2025-02-09 11:49:02.763 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [43ms]
2025-02-09 11:49:02.763 [info] fatal: ref refs/remotes/origin/HEAD is not a symbolic ref
2025-02-09 11:49:02.763 [warning] [Repository][getDefaultBranch] Failed to get default branch details: Failed to execute git.
2025-02-09 11:49:02.800 [info] > git rev-parse --show-toplevel [39ms]
2025-02-09 11:49:02.845 [info] > git rev-parse --show-toplevel [42ms]
2025-02-09 11:49:02.893 [info] > git rev-parse --show-toplevel [45ms]
2025-02-09 11:49:02.935 [info] > git rev-parse --show-toplevel [39ms]
2025-02-09 11:49:02.977 [info] > git rev-parse --show-toplevel [39ms]
2025-02-09 11:49:02.979 [info] [Model][doInitialScan] Initial repository scan completed - repositories (1), closed repositories (0), parent repositories (0), unsafe repositories (0)
2025-02-09 11:49:04.157 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [34ms]
2025-02-09 11:49:04.157 [info] fatal: ref refs/remotes/origin/HEAD is not a symbolic ref
2025-02-09 11:49:04.193 [info] > git rev-parse --verify origin/master [32ms]
2025-02-09 11:49:04.230 [info] > git merge-base origin/master HEAD [34ms]
2025-02-09 11:49:04.293 [info] > git diff --no-color --ignore-space-change -U50 55cf83762d4af0442ec5a645d2808154a3b48888 [58ms]
2025-02-09 11:49:05.210 [info] > git config --get commit.template [37ms]
2025-02-09 11:49:05.214 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [40ms]
2025-02-09 11:49:05.258 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [38ms]
2025-02-09 11:49:05.259 [info] > git status -z -uall [43ms]
2025-02-09 11:49:20.124 [info] > git config --get commit.template [43ms]
2025-02-09 11:49:20.126 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/master refs/remotes/master [43ms]
2025-02-09 11:49:20.179 [info] > git for-each-ref --sort -committerdate --format %(refname) %(objectname) %(*objectname) [48ms]
2025-02-09 11:49:20.182 [info] > git status -z -uall [53ms]
2025-02-09 11:49:20.212 [info] > git rev-parse --show-toplevel [41ms]
2025-02-09 11:49:20.212 [info] fatal: not a git repository (or any of the parent directories): .git
2025-02-09 11:49:48.895 [info] > git log --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%D%n%B -z --shortstat --diff-merges=first-parent -n50 --skip=0 --topo-order --decorate=full --stdin [298ms]
2025-02-09 11:49:49.294 [info] > git check-ignore -v -z --stdin [41ms]
2025-02-09 11:49:50.510 [info] > git log --format=%H%n%aN%n%aE%n%at%n%ct%n%P%n%D%n%B -z --shortstat --diff-merges=first-parent -n50 --skip=0 --topo-order --decorate=full --stdin [304ms]
2025-02-09 11:50:40.876 [info] > git merge-base origin/master HEAD [34ms]
2025-02-09 11:50:40.935 [info] > git diff --no-color --ignore-space-change -U50 55cf83762d4af0442ec5a645d2808154a3b48888 [54ms]
2025-02-09 11:50:43.591 [info] > git rev-parse --show-toplevel [39ms]
2025-02-09 11:50:43.591 [info] fatal: not a git repository (or any of the parent directories): .git
2025-02-09 11:50:49.237 [info] > git merge-base origin/master HEAD [34ms]
2025-02-09 11:50:49.294 [info] > git diff --no-color --ignore-space-change -U50 55cf83762d4af0442ec5a645d2808154a3b48888 [54ms]

It seems that I’m late for the party - didn’t find AI code review feature since it was modified into Bug Finder already. Anyway, I’m also facing same error - regardless of whether git pager is enabled or not. I’ve copy-pasted changes into cursor notepad and asked AI to find errors and also summarize meaning of changes in referenced notepad. Wondering - Does Bug Finder gives you more than that?

Exactly the same here.

Same error

still an issue

Same here, I’d love to try that feature

Same issue

Still broken today