Maximum call stack size exceeded
razvanionescu opened this issue · 0 comments
razvanionescu commented
I tried to use gnomon in combination with rg (ripgrep) as in: rg -i commonWord|gnomon, in order to find the commonWord inside a very large repository.
If there is a notSoCommonWord, it works without any issues.
If that commonWord is pretty common and there are too many results, apparently gnomon crashes with the following error:
var through = require('through');
^
RangeError: Maximum call stack size exceeded
at RegExp.[Symbol.replace] (native)
at RegExp.[Symbol.replace] (native)
at String.replace (native)
at Chalk.module.exports [as stripColor] (/usr/local/lib/node_modules/gnomon/node_modules/strip-ansi/index.js:5:39)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:81:28)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:84:9)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:84:9)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:84:9)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:84:9)
at stampLine (/usr/local/lib/node_modules/gnomon/index.js:84:9)```