Open mockdeep opened 6 years ago
I have that kind of error but if I force the version of bullet to 5.7.5 the error just disappear.
Same issue on my end, would be really nice to get the stack trace starting from where the query or includes statement is actually made within the application, rather than the stack trace of the spec run.
Same issue here.
bump
I was running into a similar same thing, and this was a workaround that worked for me:
module Bullet
module StackTraceFilter
# the original method here filters out any items in the stacktrace which aren't from our
# project, but the trouble is that this can be a bit restrictive, and doesn't allow exceptions
# for destroy callbacks, for instance.
def caller_in_project
select_caller_locations { true }
end
end
end
It just patches the stack trace filtering so that none of the items are filtered out (though you could also define some custom logic in the block to fit your use case better - the block can take a param which is the stack trace entry)
If there is interest then I might consider putting together a PR which allows the block to be configurable eg.
Bullet.stack_trace_filter = ->(location) { ... }
When I enable Bullet in test mode, the call stack just points to the place in
rails_helper.rb
where we haveBullet.perform_out_of_channel_notifications
. Is there a way to get a meaningful call stack for this? It would be nice if we could just run it the same as in dev mode.