Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

The thor that is embedded in bundler seems to have many warnings #1268

Closed
tenderlove opened this issue Jun 22, 2011 · 4 comments
Closed

The thor that is embedded in bundler seems to have many warnings #1268

tenderlove opened this issue Jun 22, 2011 · 4 comments
Milestone

Comments

@tenderlove
Copy link
Contributor

and warnings make me cry. The way to reproduce is export RUBYOPT=-w then run tests. You get many warnings like this:

/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/util.rb:158: warning: `*' interpreted as argument prefix
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:266: warning: instance variable @long_desc not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor.rb:264: warning: instance variable @usage not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
/Users/aaron/.local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks not initialized
@hoverbird
Copy link

Bumping this issue. -W til I die. Warnings make me cry.

@DNNX
Copy link

DNNX commented Aug 24, 2011

Bump again!

bundle exec rake
WARNING: Global access to Rake DSL methods is deprecated.  Please include
    ...  Rake::DSL into classes and modules which use the Rake DSL methods.
WARNING: DSL method Bundler::GemHelper#desc called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:24:in `install'
WARNING: DSL method Bundler::GemHelper#task called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:25:in `install'
WARNING: DSL method Bundler::GemHelper#desc called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:29:in `install'
WARNING: DSL method Bundler::GemHelper#task called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:30:in `install'
WARNING: DSL method Bundler::GemHelper#desc called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:34:in `install'
WARNING: DSL method Bundler::GemHelper#task called at C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/gem_help
er.rb:35:in `install'
C:/Ruby192/bin/ruby.exe -w -S bundle exec rspec ./spec/equatable_spec.rb
<internal:lib/rubygems/custom_require>:29: warning: loading in progress, circular require considered harmful - C:/Ruby192/li
b/ruby/1.9.1/rubygems.rb
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/setup.rb:1:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/shared_helpers.rb:2:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:1136:in `<top (required)>'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:968:in `load_plugins'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:968:in `each'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:976:in `block in load_plugins'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems.rb:976:in `load'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/yard-0.6.3/lib/rubygems_plugin.rb:2:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from C:/Ruby192/lib/ruby/1.9.1/rubygems/doc_manager.rb:8:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/util.rb:158: warning: `*' interpreted as argument
prefix
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:266: warning: instance variable @long_desc not
initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:264: warning: instance variable @usage not init
ialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:512: warning: instance variable @no_tasks
not initialized
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/vendor/thor/shell/basic.rb:16: warning: method redefined; disc
arding old padding=
..........

Finished in 0.003 seconds
10 examples, 0 failures

@DNNX
Copy link

DNNX commented Aug 24, 2011

I've just opened a couple of pull requests which should remove at least half of these warnings.

@indirect
Copy link
Member

I have updated to Thor 0.15.rc2 and forwarded the supplied pull requests to sferik. I will try to upgrade to newer versions of Thor (which seem to be slowly chipping away at the warnings) more quickly in the future.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants