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
Rake task aborted with "stack level too deep" #373
Comments
Contents of my brakeman:run rake task:
|
Hi Matthew, Thanks for reporting this issue! Does the same thing happen if you run Brakeman normally? |
No, running the "brakeman" binary from the command line works just fine for me. |
What if you run it from IRB, like
(Need to verify it's not a conflict with another gem) |
That also produces an error: "SystemStackError: stack level too deep" |
Okay :( I don't suppose the source code for this application is available? Haven't been able to reproduce so far. Any chance of a stack trace? |
Unfortunately the source isn't available. Output the backtrace for the exception while running in the console only produces this:
I'll try to make a project that reproduces. |
I produced a stock rails project with the minimum Gemfile that would reproduce the exception: https://github.com/arkadyan/brakeman_exception_demo Looks like the acts_as_list gem (https://github.com/chaffeqa/acts_as_list) produces the conflict. Hopefully that allows you to see the exception, but let me know if I can debug further. |
Wow, thanks for the test case. I see what is going on now. It's because Rails overrides In general, I don't think it's a good idea to run Brakeman inside the context of the application since it is needlessly mixing up code. Why is there a |
No you can blame this one on me 👌 #26 |
I think the only way to solve this is to rename the |
Made a pull request: I was thinking the same thing about a name change. Obviously I agree about the use of a rake task for CI, ease of running, etc. |
Is this released yet please? I am having the same issue... |
It has not been released yet, as there have been almost no changes since 2.1.0. It's very easy to build your own gem, though:
|
Can't you release a minor version with this fix? It's biting me too, even without |
Yes, there will be a bugfix release early next week. |
👍 |
We're having the same issue with the rails_best_practices gem on a Rails 3.2.13 app, FYI. |
Thanks Mike. It doesn't really matter what the other gems are, Rails has its own |
Running version 2.1.0 as a rake task throws a "stack level too deep" error.
Running with something like this:
Results in the following output:
This same rake task works fine in 2.0.0 and 1.9.x.
The text was updated successfully, but these errors were encountered: