-
-
Save joshbuddy/984911 to your computer and use it in GitHub Desktop.
| [joshbuddy@jj ~/Development/todo]$ bundle exec padrino g model List | |
| /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/gems/thor-0.14.6/lib/thor/rake_compat.rb:33: undefined method `task' for class `Object' (NameError) | |
| from /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/gems/padrino-core-0.9.28/lib/padrino-core/cli/base.rb:8 | |
| from /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/gems/padrino-core-0.9.28/bin/padrino:7:in `require' | |
| from /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/gems/padrino-core-0.9.28/bin/padrino:7 | |
| from /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/bin/padrino:19:in `load' | |
| from /Users/joshbuddy/.rvm/gems/ree-1.8.7-2011.03/bin/padrino:19 |
joshbuddy
commented
May 21, 2011
via email
Make sure that:
$ rake --version is 0.8.7
Hello,
I thought I would try the other approach (using the git version of padrino), but still get the error.
I have included a complete log of what I did and the versions -- incase that helps.
I look forward to this conflict being resolved - I wanted to try padrino.
Bill
bill-laptop:inventory bill$ rvm list
rvm rubies => ruby-1.9.2-p180 [ x86_64 ]
bill-laptop:inventory bill$ padrino g project inventory -d activerecord -a sqlite
create
create .gitignore
create config.ru
create config/apps.rb
create config/boot.rb
create public/favicon.ico
create public/images
create public/javascripts
create public/stylesheets
create tmp
create .components
create app
create app/app.rb
create app/controllers
create app/helpers
create app/views
create app/views/layouts
create Gemfile
Applying 'activerecord' (orm)...
apply orms/activerecord
insert Gemfile
insert Gemfile
create config/database.rb
create app/models
Skipping generator for test component...
Skipping generator for mock component...
Skipping generator for script component...
Applying 'haml' (renderer)...
apply renderers/haml
insert Gemfile
Skipping generator for stylesheet component...
identical .components
=================================================================
inventory is ready for development! Next, follow these steps:
=================================================================
1) cd ./inventory
2) bundle install
=================================================================
bill-laptop:padrino bill$ cd inventory/
bill-laptop:inventory bill$ vim Gemfile
# Padrino #gem 'padrino', "0.9.28" # Padrino - bleeding edge fixes RAKE 0.9.0 gem 'padrino', :git => "git://github.com/padrino/padrino-framework.git"
bill-laptop:inventory bill$ bundle install
Updating git://github.com/padrino/padrino-framework.git Fetching source index for http://rubygems.org/ Using rake (0.9.0) Using activesupport (3.0.7) Using builder (2.1.2) Using i18n (0.5.0) Using activemodel (3.0.7) Using arel (2.0.10) Using tzinfo (0.3.27) Using activerecord (3.0.7) Using bundler (1.0.13) Using daemons (1.1.3) Using diff-lcs (1.1.2) Using eventmachine (0.12.10) Using mime-types (1.16) Using grit (2.4.1) Using haml (3.1.1) Using rack (1.2.2) Using url_mount (0.2.1) Using http_router (0.7.9) Using polyglot (0.3.1) Using treetop (1.4.9) Using mail (2.3.0) Using tilt (1.3.1) Using sinatra (1.2.6) Using thin (1.2.11) Using thor (0.14.6) Using padrino-core (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino-helpers (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino-admin (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino-cache (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino-gen (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino-mailer (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using padrino (0.9.28) from git://github.com/padrino/padrino-framework.git (at master) Using rack-flash (0.1.1) Using sqlite3 (1.3.3) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
bill-laptop:inventory bill$ padrino g app computers
/Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen.rb:31: warning: already initialized constant DEV_PATH
=> Located locked Gemfile for development
/Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/base.rb:176:in `block in argument': You cannot have "name" as required argument after the non-required argument "actions". (ArgumentError)
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/base.rb:174:in `each'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/base.rb:174:in `argument'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen/generators/mailer.rb:20:in `'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen/generators/mailer.rb:4:in `'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen/generators/mailer.rb:2:in `'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen/generators/mailer.rb:1:in `'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `block in require'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `block in load_dependency'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:596:in `new_constants_in'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:225:in `load_dependency'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/activesupport-3.0.7/lib/active_support/dependencies.rb:239:in `require'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen.rb:62:in `block in load_components!'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen.rb:62:in `each'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/bundler/gems/padrino-framework-d433e19483dc/padrino-gen/lib/padrino-gen.rb:62:in `load_components!'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/padrino-gen-0.9.28/lib/padrino-gen/generators/cli.rb:36:in `setup'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/task.rb:22:in `run'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:118:in `invoke_task'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `block in invoke_all'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `each'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `map'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/invocation.rb:124:in `invoke_all'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/group.rb:226:in `dispatch'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/thor-0.14.6/lib/thor/base.rb:389:in `start'
from /Users/bill/.rvm/gems/ruby-1.9.2-p180/gems/padrino-gen-0.9.28/bin/padrino-gen:15:in `'
If you're downgrading in your Gemfile, you should use bundle exec padrino start to use the older version of rake.
I tried that, but it didn't help. I wlll ait for the next official gem update & try again.
we released a new version of padrino wich is rake 0.9 compat.
Have fun!