-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Maximum call stack size exceeded #51
Comments
Hmm I wonder how many files it's trying to run. Interesting it would mean that we'd have to change the approach and have separate builds. Could you try and run it with this:
|
Experiencing the same issue on a maxed out macbook pro.
Doesn't seem to recognize this flag. Output: EDIT: I tried running |
@sanjaypojo could you try to run the package that validates the coverage (the one this package is built on) on your amount of files? I'm trying to understand where the problem is. |
Hey @alexcanessa yes, I get the same error using |
@sanjaypojo I've created an issue in that repo. I'll have a look myself too. Thanks for raising this. |
@all-contributors add @sanjaypojo for bugs |
I've put up a pull request to add @sanjaypojo! 🎉 |
@all-contributors add @luislhl for bugs |
I've put up a pull request to add @luislhl! 🎉 |
Awesome @alexcanessa, happy to help with debugging / trying again any time! |
If I add $ NODE_OPTIONS=--max-old-space-size=8192 type-coverage
--max-old-space-size=8192 So |
And it seems it errored when just finding |
@plantain-00 , I tried debugging this. function globAsync(pattern, ignore, cwd) {
return new Promise((resolve, reject) => {
console.log('globAsync', pattern, ignore, cwd);
glob(pattern, { ignore, cwd }, (error, matches) => {
console.log('glob callback');
if (error) {
reject(error);
}
else {
resolve(matches);
}
});
});
} This The other console.log prints this line:
So it seems to be passing Then, I modified the code to force passing an absolute path of node_modules, like this: function globAsync(pattern, ignore, cwd) {
return new Promise((resolve, reject) => {
console.log('globAsync', pattern, ignore, cwd);
glob(pattern, { ignore: ['/home/luislhl/Workspace/pareto/platform-spa/node_modules/**', 'public/**', 'static/**'], cwd }, (error, matches) => {
console.log('glob callback')
if (error) {
reject(error);
}
else {
resolve(matches);
}
});
});
} After this, the glob callback was called in no time at all. So maybe it's just a question of adjusting the options passed to glob? However, this still didn't solve all my problems, since I'm now getting an Out of Memory error. P.S: I was running
|
type-coverage v2.17.1 should fix the glob issue. |
Ok I'll update |
This bug should be fixed in v0.5.1. @sanjaypojo are you able to test and see if it works? |
Tested and works like a charm 💯 Thanks @alexcanessa 🙌🏽 |
Thanks @plantain-00! |
I still get this issue.
Any ideas? I am using it with a next.js project. It works fine on create react app project. |
@harshmaur and I believe you're using the latest version of the tool? |
Yes. 0.6.1 actually. |
@harshmaur could you try with |
Getting this same error on
|
Describe the bug
I'm getting this stack-trace when running the tool in my project
To Reproduce
Just running
typescript-coverage-report
without any extra options.Expected behaviour
I expected the report to be generated
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: