Open jgreben opened 3 years ago
It looks like ActiveSupport::Notifications::Instrumenter#instrument
is expecting a block:
...but http.rb is not passing one:
https://github.com/httprb/http/blob/4244843/lib/http/features/instrumentation.rb#L32
cc @paul
Edit: well this is even more confusing... it looks like it should only be calling yield
if a block was given:
@jgreben Are you able try on Ruby 2.7.x or 3.x, see if you get different results? I wonder if its a 2.6 thing... Also, what version of ActiveSupport is it using?
ActiveSupport is 5.2.6. I upgraded ruby to 2.7.3 and the LocalJumpError was still there. Unfortunately I am not able to use ruby 3 without resolving a bunch of dependencies and conflicts. Thanks!
Ah OK. Looks like Rails 5.2 doesn't do the if block_given?
part. https://github.com/rails/rails/blob/v5.2.6/activesupport/lib/active_support/notifications/instrumenter.rb#L23
Looks like this was broken by a rubocop cleanup? https://github.com/httprb/http/commit/f4fb3369d030520e981eb891fb5dd25f8e0403d2#diff-bf40ca1851dc97b2ef1fd9b85e44d722ad130f7042df0d8c1c12738d2b44b873L32 cc @ixti
Hi I noticed when updating the gem to 5.0 causes a LocalJumpError when I run my rspec tests. (I have not been able to test it yet while running the app for various other reasons, but will try to do so as soon as possible).