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

The EventEmitter class conflicts the EventEmitter module #1791

Closed
koshigoe opened this issue May 22, 2018 · 2 comments
Closed

The EventEmitter class conflicts the EventEmitter module #1791

koshigoe opened this issue May 22, 2018 · 2 comments

Comments

@koshigoe
Copy link

Issue description

The event_emitter gem implements EventEmitter module.
The aws-sdk-core gem implements EventEmitter class.

So, I can't use event_emitter together with aws-sdk-core.
(TypeError: EventEmitter is not a module)

Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version

  • aws-sdk-core 3.21.1

Version of Ruby, OS environment

$ uname -v
Darwin Kernel Version 17.5.0: Fri Apr 13 19:32:32 PDT 2018; root:xnu-4570.51.2~1/RELEASE_X86_64
$ ruby -v
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]

Code snippets / steps to reproduce

# Gemfile
source 'https://rubygems.org'

gem 'aws-sdk-core'
gem 'event_emitter'
$ bundle exec irb
(001): >> require 'aws-sdk-core'
=> true
(002): >> require 'event_emitter'
Traceback (most recent call last):
       16: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:18:in `start'
       15: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
       14: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:27:in `dispatch'
       13: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
       12: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
       11: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
       10: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli.rb:424:in `exec'
        9: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:28:in `run'
        8: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `kernel_load'
        7: from .../lib/ruby/gems/2.5.0/gems/bundler-1.16.1/lib/bundler/cli/exec.rb:75:in `load'
        6: from .../bin/irb:11:in `<top (required)>'
        5: from (irb):2
        4: from (irb):2:in `require'
        3: from .../vendor/bundle/gems/event_emitter-0.2.6/lib/event_emitter.rb:4:in `<top (required)>'
        2: from .../vendor/bundle/gems/event_emitter-0.2.6/lib/event_emitter.rb:4:in `require'
        1: from .../vendor/bundle/gems/event_emitter-0.2.6/lib/event_emitter/emitter.rb:2:in `<top (required)>'
TypeError (EventEmitter is not a module)
@cjyclaire
Copy link
Contributor

@koshigoe Fix PR #1792 is under review, I'll work on including this in the next release (likely tomorrow)
Feel free to try out the patch :) Thank you for your patience!

@cjyclaire
Copy link
Contributor

Latest release v 3.21.2 of aws-sdk-core is out, closing.
Feel free to reopen with further issue or questions :)

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

2 participants