gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

History doesn't display for specific project

Open ekoopmansAP opened this issue 6 years ago • 7 comments

Hi! Git History is great, I really appreciate the extension.

I haven't been able to get it working with my latest project. View History and View File History both appear blank: git-history blank

In the developer console, I get these error messages: git-history console

I believe this is related to the first error message E2BIG, because when testing in another (working) project I still get the other error message t.payload is not iterable.

This is on a Mac using Git History 0.6.3, VS Code 1.43.2, git 2.23.0. On this project, git log etc work fine, VS Code's built-in git utils work fine, and Git Lens works fine.

ekoopmansAP avatar Apr 06 '20 02:04 ekoopmansAP

@ekoopmansAP thank you for reporting.

I assume the list of commits has reached the max postmessage size. Can you please try to reduce the gitHistory.pageSize setting (E.g to 10 items) and see if it works?

ole1986 avatar Apr 06 '20 06:04 ole1986

Same result after reducing gitHistory.pageSize to 10 (previously, all settings were default). It certainly could be related to number of commits though, there are over 25k.

ekoopmansAP avatar Apr 06 '20 07:04 ekoopmansAP

I have the same issue. Also tried 10 but no avail. I see this error - don't know if it's related:

workbench.desktop.main.js:258 [Extension Host] (node:25308) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

It also happens with a specific project only.

reuvygroovy avatar Apr 21 '20 06:04 reuvygroovy

Pretty sure it has something to do with number of commits.

But also thought reducing the page size would solve it but seem to not.

Need to investigate more on this issue

ole1986 avatar Apr 25 '20 11:04 ole1986

Maybe #541 fixes this as exception is in the same method, E2BIG stands for Arg list too long and the solution was to pass arguments in chunks. Windows checks just total length of command so you could get just ENAMETOOLONG, see https://github.com/sanack/node-jq/issues/51#issuecomment-515808932.

damianfijorek avatar Apr 26 '20 10:04 damianfijorek

@ekoopmansAP is this issue fixed in version 0.6.5?

ole1986 avatar Apr 28 '20 06:04 ole1986

Yes, it's working perfectly now (including with default page size of 100)! Thanks @damianfijorek @ole1986, amazing work. So nice to be able to view the history within VS Code.

ekoopmansAP avatar Apr 28 '20 06:04 ekoopmansAP