Task Body Missing
-
Chris Wanstrath
- State changed from new to hold
$ sake -e http://sakebar.railsrumble.com/s... desc 'Launches the database shell using the values defined in config/database.yml' task 'db:shell' => [ 'environment' ] do config = ActiveRecord::Base.configurations[(RAILS_ENV or "development")] command = "" case config["adapter"] when "mysql" then (command << "mysql ") (command << "--host=#{(config["host"] or "localhost")} ") (command << "--port=#{(config["port"] or 3306)} ") (command << "--user=#{(config["username"] or "root")} ") (command << "--password=#{(config["password"] or "")} ") (command << config["database"]) when "postgresql" then (command << "psql82 ") (command << "-h #{(config["host"] or "localhost")} ") (command << "-p #{(config["port"] or 5432)} ") (command << "-U #{(config["username"] or "postgres")} ") (command << config["database"]) else (command << "echo Unsupported database adapter: #{config["adapter"]}") end system(command) endRuby 1.8.6 (macports)
ruby2ruby 1.1.7
rake 0.7.3
sake 1.0.11
This is very strange indeed. You may have to debug this on your own? I would start by printing the `tasks' variable set at line 234 of sake.rb. Run the URL you mentioned with -e and see what is in that variable.
-
Nate
It doesn't affect me now, and I never debugged it. So, since there's no way to recreate it you can probably close this. Oh, and where is sakebar now?
-
Brad Greenlee
I was having the same problem. I fixed it by tweaking sake.rb to use the latest ParseTree (2.1.1) rather than 2.0.1.
-
Don Petersen
I tried to debug this myself, but I got pretty lost once it got into ruby2ruby. Bottom line, where you were expecting the task body, you got nothing. Big news flash, I know.
I completely uninstalled ParseTree(I had versions 2.0.1, 2.0.2, and 2.1.1) and ruby2ruby(I had versions 1.1.7 and 1.1.8), and reinstalling them. Problem solved.
For grins I tried reinstalling the old versions of those two gems to see if one triggered the issue, but I could never get it to break again.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.