Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code is complaining "Git: maximum call stack size exceeded"

My Git repo has tens of thousands of refs

$ git for-each-ref --sort -committerdate --format "%(refname) %(objectname) %(*objectname)" | wc -l
$ 174158

When I click on the branch icon in the Git explorer, I see this screenshot

enter image description here

I clicked on the Git log which switched me to the log window but nothing useful there.

I increased the log level to TRACE of Git inside VS Code settings but nothing more useful is coming out.

Nothing in the current release of VS Code allows us to limit refs based on time etc. Anyway I can get the actual command and the traceback of the error?

like image 502
user423455 Avatar asked Oct 30 '25 21:10

user423455


2 Answers

If your repo have many tags. The VSCode cannot process it. Try to update vscode settings, remove tags from git.checkoutType:

  "git.checkoutType": [
    "local",
    "remote",
    // "tags",
  ],

To see how many tags in your repo. Run this command in the shell:

git tag | wc -l
like image 196
colder Avatar answered Nov 01 '25 13:11

colder


try to run git remote prune origin

like image 28
yvonne Avatar answered Nov 01 '25 13:11

yvonne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!