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

Sorbet sig in anonymous module potentially breaks CLI #23

Closed
lazyatom opened this issue Oct 12, 2020 · 1 comment
Closed

Sorbet sig in anonymous module potentially breaks CLI #23

lazyatom opened this issue Oct 12, 2020 · 1 comment

Comments

@lazyatom
Copy link
Contributor

I think this line might have broken the CLI; when I run bundle exec kuby -e production build using 0.11.3, I get the following error:

NoMethodError: undefined method `sig' for #<Module:0x00007f9bb6427198>
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:22:in `block in <class:Commands>'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:21:in `initialize'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:21:in `new'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:21:in `<class:Commands>'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:7:in `<module:Kuby>'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/lib/kuby/commands.rb:6:in `<top (required)>'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/bin/kuby:4:in `require'
  /Users/james/.gem/ruby/2.6.5/gems/kuby-core-0.11.3/bin/kuby:4:in `<top (required)>'
  /Users/james/.gem/ruby/2.6.5/bin/kuby:23:in `load'
  /Users/james/.gem/ruby/2.6.5/bin/kuby:23:in `<top (required)>'

Possible you need to add an explicit extend T::Sig just before this line?

@camertron
Copy link
Member

Oof, thanks @lazyatom. Fixed and released as v0.11.4.

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