TypeScript-Call-Graph icon indicating copy to clipboard operation
TypeScript-Call-Graph copied to clipboard

argument list too long: tcg

Open zacKolton opened this issue 4 years ago • 5 comments

Anyway to ignore list length?

zacKolton avatar May 31 '21 20:05 zacKolton

Edit: so I don't get smoked here, This is actually a problem with terminal itself. Essentially, im pretty sure it just doesn't like the amount of output.

Maybe you could add a setting that enables a "quite" output, this might help mitigate this issue. However, it doesn't really matter, after scanning roughly 100 files, the output gets messed up anyways lol

zacKolton avatar May 31 '21 20:05 zacKolton

Might start helping out with this, id argue this is probably the simplest and best call-graph service out there.

zacKolton avatar May 31 '21 20:05 zacKolton

try this:

sudo sysctl -w kern.argmax=9001

https://www.cyberciti.biz/faq/argument-list-too-long-error-solution/

chapmanjacobd avatar May 31 '21 20:05 chapmanjacobd

Thanks il give it a go

zacKolton avatar May 31 '21 23:05 zacKolton

I wonder if these are the logs that mess up your console. If so, you could just disable these few lines for yourself: https://github.com/whyboris/TypeScript-Call-Graph/blob/main/extract.ts#L146 I added console.log but it's not necessary for generating the graph 👍

whyboris avatar Jun 01 '21 17:06 whyboris