Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Walking increases callstack #2

Closed
epeli opened this Issue · 7 comments

8 participants

@epeli

If you walk enough big directory tree, node-findit will throw "RangeError: Maximum call stack size exceeded" exception.

@massimiliano-giroldi

Issue still exists.

@phai

It happened to me too

Error raising when it reach 10220-th item

@egeozcan

Also happens with node v0.7.8 on windows 7 64 bit and this hack applied: http://stackoverflow.com/questions/9062248/why-jasmine-node-doesnt-find-my-spec-files

@mfncooper

This is really a showstopper. Unless you know that your tree is small, you can't risk using findit, unfortunately. It actually doesn't take that big a tree to blow it up since so much is on the stack.

@soldair

my package http://github.com/soldair/node-walkdir does not have this issue i would love to see if it solves your problem. npm install walkdir. it provides the same interface as findit, is faster, and the callstack doesn't keep growing.

@yichen

Just ran into this issue. Any updates?

@mfncooper

I switched to using @soldair's node-walkdir instead. Same API, and it works beautifully, even for large trees.

@substack substack closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.