whyboris / TypeScript-Call-Graph

CLI to generate an interactive graph of functions and calls from your TypeScript files
MIT License
233 stars 20 forks source link

argument list too long: tcg #12

Open zacKolton opened 3 years ago

zacKolton commented 3 years ago

Anyway to ignore list length?

zacKolton commented 3 years ago

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 commented 3 years ago

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

chapmanjacobd commented 3 years ago

try this:

sudo sysctl -w kern.argmax=9001

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

zacKolton commented 3 years ago

Thanks il give it a go

whyboris commented 3 years ago

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 👍