Vscode-git-graph: Unable to load a significant number of branches (1000+)

Created on 16 Jul 2019  路  3Comments  路  Source: mhutchie/vscode-git-graph

Receiving an error when loading remote branches via SSH. Getting error attached.

Can't seem to find any logs to debug this further. Please let me know if I can provide any helpful info.
Thanks!

image

bug

All 3 comments

Thanks for reporting this!

The screenshot you have provided lists stderr + stdout of the command git branch -a, and seems to suggest via the long scroll bar that by including remotes the list of branches becomes extremely long. This suggests to me that possibly the maximum output limit of Node.js child_process.exec() may have been reached. I've switched the branch loading command to use Node.js child_process.spawn(), like other git commands that produce a lot of output.

Could you please download and extract git-graph-1.12.0-alpha.0.vsix from git-graph-1.12.0-alpha.0.zip, and then install it from Step 3 - 5 of Manual Installation. Please let me know if this resolves this issue.

If not, could you please respond with the following information:

  • Does this occur for you with other repos, with a smaller number of branches (less than 100)?
  • Does this only occur when show remote branches is checked?
  • When you scroll to the bottom of the dialog output, what does the last line of the dialog look like (i.e. is it cut-off midway through the line)?

Hi @mhutchie,
Thank you for the quick response! This worked! 馃帀 馃挭

Glad to hear that this fixed this issue for you. It will be available in v1.12.0.

I also replaced all other usages of Node.js child_process.exec() with child_process.spawn() to avoid any other similar issues in the future. (Although none of the other usages with git commands could generate enough data to cause a similar issue)

If you'd like to use it before the next release, you can download v1.12.0-beta.0, and install it following the instructions provided here.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konsonanz picture Konsonanz  路  4Comments

fsteinmetz picture fsteinmetz  路  5Comments

Kevinwuu picture Kevinwuu  路  3Comments

morganlombard picture morganlombard  路  5Comments

borekb picture borekb  路  4Comments