Skip to content
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

Maximum call stack size exceeded #5

Open
bmcmahen opened this issue Aug 25, 2014 · 4 comments
Open

Maximum call stack size exceeded #5

bmcmahen opened this issue Aug 25, 2014 · 4 comments

Comments

@bmcmahen
Copy link

I keep running into this error when trying to watch my app directory. Specifically, I'm using the duo command duo -w -r client app.js > build.js. I think part of the problem is that the root folder also contains the components folder, increasing the 'watched' files substantially...

FYI I'm running node 0.11.13 on Yosemite dp5

path.js:0
(function (exports, require, module, __filename, __dirname) { // Copyright Joy
^
RangeError: Maximum call stack size exceeded
    at RegExp.exec (native)
    at splitPath (path.js:313:24)
    at exports.basename (path.js:465:11)
    at slug (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:251:23)
    at find (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:244:42)
    at Watch.manifest (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:208:14)
    at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:101:10)
    at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
    at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
    at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
    at Watch.deps (/usr/local/lib/node_modules/duo/node_modules/duo-watch/lib/duo-watch.js:104:10)
@matthewmueller
Copy link
Contributor

yah... pretty sure it's related to: amasad/sane#23

The files get opened regardless, even if you don't glob on a few of them.

@matthewmueller
Copy link
Contributor

Haven't had time to look into it, but if you want to take a look: amasad/sane#25 (comment)

@bmcmahen
Copy link
Author

Figured it was probably related, but thought it might also be related to the synchronous while loop that attempts to find the root, since that's where it seems to poop out on me.

@btknorr
Copy link

btknorr commented Jun 11, 2015

Any news on when this will be fixed? duo --watch always fails with:

RangeError: Maximum call stack size exceeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants