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

Running AWS SDK with ruby -d flag generates many warnings #834

Closed
SpencerBrown opened this issue Jun 4, 2015 · 3 comments
Closed

Running AWS SDK with ruby -d flag generates many warnings #834

SpencerBrown opened this issue Jun 4, 2015 · 3 comments

Comments

@SpencerBrown
Copy link

Try running any app with the -d flag, you'll get a lot of messages. Suggestion is to review these and change code to eliminate them where possible. It makes it hard to debug an application with floods of messages like these.

Here's a sample:


/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/client/plugins/endpoint.rb:54: warning: assigned but unused variable - shape
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/client_stubs.rb:205: warning: shadowing outer local variable - value
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/api/service_customizations.rb:84: warning: ambiguous first argument; put parentheses or a space even after `/' operator
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.0.44/lib/aws-sdk-resources/builder.rb:50: warning: shadowing outer local variable - identifiers
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/model/shapes.rb:97: warning: method redefined; discarding old documentation
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.0.44/lib/aws-sdk-resources.rb:41: warning: File.exists? is a deprecated name, use File.exist? instead
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/signers/v4.rb:206: warning: private attribute?
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/signers/v4.rb:209: warning: private attribute?
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/signers/v4.rb:212: warning: private attribute?
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/signers/s3.rb:54: warning: assigned but unused variable - secret
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/model/operation.rb:43: warning: method redefined; discarding old http_method
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/model/operation.rb:48: warning: method redefined; discarding old http_request_uri
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/client/http/request.rb:33: warning: method redefined; discarding old endpoint=
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/client/http/response.rb:33: warning: method redefined; discarding old body=
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/seahorse/client/param_validator.rb:23: warning: assigned but unused variable - context
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 - cannot load such file -- ox
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- ox
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- ox
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 - cannot load such file -- libxml
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- libxml
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- libxml
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 - cannot load such file -- nokogiri
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- nokogiri
Exception `LoadError' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:133 - cannot load such file -- nokogiri
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/structure.rb:158: warning: shadowing outer local variable - value
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.0.44/lib/aws-sdk-resources.rb:41: warning: File.exists? is a deprecated name, use File.exist? instead
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-core-2.0.44/lib/aws-sdk-core/plugins/s3_request_signer.rb:202: warning: assigned but unused variable - bucket
/usr/local/lib/ruby/gems/2.2.0/gems/aws-sdk-resources-2.0.44/lib/aws-sdk-resources.rb:41: warning: File.exists? is a deprecated name, use File.exist? instead
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
Exception `OpenSSL::SSL::SSLErrorWaitReadable' at /usr/local/Cellar/ruby/2.2.2/lib/ruby/2.2.0/openssl/buffering.rb:182 - read would block
@trevorrowe
Copy link
Member

I'll take a look at some of these.

@trevorrowe
Copy link
Member

I fixed quite a few of them last week and I just pushed another commit cleaning up more.

@trevorrowe
Copy link
Member

I finished the updates. The SDK no longer generates any of its own warnings when running the unit and integration tests. These changes should be part of the next release.

@srchase srchase added the bug label Dec 24, 2018
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

3 participants