You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. 👋 I'm getting the following warning in my console:
/Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/3.4.0/delegate.rb:84: warning: the block passed to 'Seahorse::Client::Response#__getobj__' defined at /Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/gems/3.4.0/gems/aws-sdk-core-3.216.0/lib/seahorse/client/response.rb:77 may be ignored
The problem is that a block is being passed to the response when it shouldn't because the response doesn't use a block.
Regression Issue
Select this option if this issue appears to be a regression.
Expected Behavior
I would expect this error to not show up since the block is never used/implemented in the code.
Current Behavior
Here's what I see locally:
/Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/3.4.0/delegate.rb:84: warning: the block passed to 'Seahorse::Client::Response#__getobj__' defined at /Users/bkuhlmann/.cache/frum/versions/3.4.1/lib/ruby/gems/3.4.0/gems/aws-sdk-core-3.216.0/lib/seahorse/client/response.rb:77 may be ignored
Reproduction Steps
I don't have a good way to reproduce this but I imagine if you add this line to your test suite, you'll see the warning show up immediately:
Warning[:strict_unused_block] = true
I see this because when using the gem and having this set in my environment:
export RUBYOPT="-W:strict_unused_block"
...I see the warnings.
Possible Solution
You most likely will see similar warnings in all of your gems since any block passed to a method where the method doesn't use the block with issue this warning.
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core 3.216.0
Environment details (Version of Ruby, OS environment)
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
Describe the bug
Hello. 👋 I'm getting the following warning in my console:
The problem is that a block is being passed to the response when it shouldn't because the response doesn't use a block.
Regression Issue
Expected Behavior
I would expect this error to not show up since the block is never used/implemented in the code.
Current Behavior
Here's what I see locally:
Reproduction Steps
I don't have a good way to reproduce this but I imagine if you add this line to your test suite, you'll see the warning show up immediately:
I see this because when using the gem and having this set in my environment:
...I see the warnings.
Possible Solution
You most likely will see similar warnings in all of your gems since any block passed to a method where the method doesn't use the block with issue this warning.
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-core 3.216.0
Environment details (Version of Ruby, OS environment)
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +YJIT +PRISM [arm64-darwin24.2.0]
The text was updated successfully, but these errors were encountered: