ngs-archives / hanna-bootstrap

More than just a new RDoc template
MIT License
4 stars 1 forks source link

Wrong number of arguments #1

Open haslinger opened 11 years ago

haslinger commented 11 years ago

I seem to do something wrong here... I try to generate rdoc for a rails 3.2.13 / ruby 1.9.3 /rdoc 3.2.12 project...

$ rdoc -o doc -f bootstrap app/**/*.rb
Parsing sources...
100% [64/64]  app/models/zipcode.rb                                             
uh-oh! RDoc had a problem:
wrong number of arguments (1 for 2)

run with --debug for full backtrace

so with debug

wrong number of arguments (1 for 2)
/home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/hanna-bootstrap-0.0.5/lib/hanna-bootstrap.rb:54:in `initialize'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:469:in `new'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:469:in `document'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/bin/rdoc:20:in `<top (required)>'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/rdoc:19:in `load'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/rdoc:19:in `<main>'
    /home/stefan/.rvwrong number of arguments (1 for 2)
/home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/hanna-bootstrap-0.0.5/lib/hanna-bootstrap.rb:54:in `initialize'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:469:in `new'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/lib/rdoc/rdoc.rb:469:in `document'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/gems/rdoc-3.12.2/bin/rdoc:20:in `<top (required)>'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/rdoc:19:in `load'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/rdoc:19:in `<main>'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'
m/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
    /home/stefan/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'

where line 54 of that file is

  def initialize( store, options )

Can I provide some more usefull info?

Update: Just tried hanna-noveau the same way, works fine.

ngs commented 11 years ago

Cloud you paste gem list here?

Thanks for reporting.

haslinger commented 11 years ago

sure (thanks for pointing me into that direction)

source 'http://rubygems.org'

gem 'rails', "3.2.13" # web application framework
gem 'mysql2' # database driver
gem "kaminari" # pagination
gem 'acts_as_tree' # handling of hierarchical objects
gem 'acts_as_list' # handling of objects in lists
gem 'ancestry' # handling of hierarchical objects
gem 'i18n' # internationalisation
gem 'textile_editor_helper' # textile editor integration
gem 'RedCloth' # textile library
gem 'htmlentities'
gem 'ransack' # realational algebra parser fer generating complex search queries
gem 'to_xls' # simple Excel spreadsheet generation
gem 'spreadsheet' # more sophisticated Excel spreadsheet generation
gem 'exception_notification' # exception_notification via e-mail
gem 'rake'
gem 'pdfkit' # Adobe pdf geretation
gem "ckeditor" # HTML WYSIWYG editor
gem "paperclip" # attachmet handling
gem "nested_form" # nested form generation helpers
gem 'jquery-rails' # javascript library

group :assets do
  gem 'sass-rails'
  gem 'coffee-rails'
  gem 'uglifier'
  gem 'therubyracer' # Javascript engine
end

group :test, :development do
  gem 'rdoc' # Documention generator
  gem 'hanna-bootstrap' #bootstrap theme for rdoc
  gem 'hirb' # makes nice display on console
  gem 'simplecov', :require => false # code covery analyses
  gem "rspec-rails" # tdd, dsl for unit tests
  gem 'cucumber-rails', :require => false # bdd, dsl for user story specs,
  gem 'database_cleaner' # faster database cleanup, to be used after each single test
  gem 'libnotify'
  gem 'rb-inotify'
  gem "factory_girl_rails" # factories replace fixtures
  gem "capybara" # simulations browser interactions with a headless webkit engine
  gem "guard-rspec"
  gem "launchy"
  gem 'email_spec' # email parser
  gem "shoulda" # expectation dsl
  gem "libxml-ruby" # xml parser
  gem 'populator'
  gem 'faker'
  gem 'debugger' # command line debugger
  gem "rails-erd" # creation of nice e-r diagrams
end

but now I lost the formatter

Available formatters:

  darkfish - HTML generator, written by Michael Granger
  ri       - creates ri data files

uninstalled both hanna-nouveau and hanna-bootstrap, reinstalled hanna-bootstrap ... didn't help. bundle exec ... didn't help switched to ruby 2.0, rails 3.2.14 ... bootstrap formatter available again, but old problem

reduced gems to drill down to

source 'http://rubygems.org'

gem 'rails', "3.2.14" # web application framework
gem 'mysql2' # database driver
gem 'i18n' # internationalisation
gem 'rake'
gem 'jquery-rails' # javascript library

group :assets do
  gem 'sass-rails'
  gem 'coffee-rails'
  gem 'uglifier'
  gem 'therubyracer' # Javascript engine
end

group :test, :development do
  gem 'rdoc' # Documention generator
  gem 'hanna-bootstrap' #bootstrap theme for rdoc
end

Does this help? Could it result from my OS (Linux)? I could try with an empty app tomorrow ...