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

Cannot decode JSON from PhantomJS runner: nesting of 20 is too deep #76

Closed
darend opened this issue Aug 29, 2012 · 3 comments
Closed

Cannot decode JSON from PhantomJS runner: nesting of 20 is too deep #76

darend opened this issue Aug 29, 2012 · 3 comments

Comments

@darend
Copy link

darend commented Aug 29, 2012

We discovered that when a test has 8 nested levels of describe blocks, the following error is generated when running via phantomjs. In our case we are running it via guard. 8 levels is rather deep, but in this case we were testing some workflow interaction.

Is it possible to increase the maximum allowed depth?

ERROR: Cannot decode JSON from PhantomJS runner: nesting of 20 is too deep

@netzpirat
Copy link
Contributor

I wasn't aware of this limitation. It looks like it's caused because of a nesting limitation in the JSON parser. I disabled the limitation, can you use the master branch to see if it fixes your problem?

gem 'guard-jasmine', :git => 'git://github.com/netzpirat/guard-jasmine.git'

@darend
Copy link
Author

darend commented Aug 29, 2012

Thanks, this addresses the limitation.

@netzpirat
Copy link
Contributor

Nice. Version 1.8.1 is out that contains this fix.

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

2 participants