Skip to content

Instantly share code, notes, and snippets.

@damien
Created May 18, 2010 22:22
Show Gist options
  • Save damien/405657 to your computer and use it in GitHub Desktop.
Save damien/405657 to your computer and use it in GitHub Desktop.
Ruby backtrace of an error with rake and resque.
┌─[damien@protos] - [~/p/laughly] - [Tue May 18, 03:22]
└─[$] <git:(master*)> rake -T --trace
(in /Users/damien/p/laughly)
rake aborted!
There was a LoadError while evaluating resque.gemspec.
Does it try to require a relative path? That doesn't work in Ruby 1.9.
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:209:in `rescue in rescue in block (2 levels) in load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:206:in `rescue in block (2 levels) in load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:202:in `block (2 levels) in load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:201:in `chdir'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:201:in `block in load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:198:in `each'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:198:in `load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:344:in `load_spec_files'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/source.rb:244:in `local_specs'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:40:in `block (2 levels) in runtime_gems'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:39:in `each'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:39:in `block in runtime_gems'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/index.rb:5:in `build'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:38:in `runtime_gems'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:14:in `block in index'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/index.rb:5:in `build'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:13:in `index'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:59:in `resolve_locally'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:28:in `specs'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:69:in `specs_for'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/environment.rb:23:in `requested_specs'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler/runtime.rb:16:in `setup'
/Users/damien/.rvm/gems/ruby-head/gems/bundler-0.9.25/lib/bundler.rb:76:in `gem_setup'
/Users/damien/p/laughly/config/boot.rb:8:in `<top (required)>'
/Users/damien/p/laughly/config/application.rb:1:in `require'
/Users/damien/p/laughly/config/application.rb:1:in `<top (required)>'
/Users/damien/p/laughly/Rakefile:4:in `require'
/Users/damien/p/laughly/Rakefile:4:in `<top (required)>'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2017:in `block in load_rakefile'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2000:in `block in run'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Users/damien/.rvm/gems/ruby-head@global/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Users/damien/.rvm/rubies/ruby-head/bin/rake:36:in `<main>'
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# If you have a Gemfile, require the gems listed there, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env) if defined?(Bundler)
module Laughly
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Add additional load paths for your own custom dirs
# config.load_paths += %W( #{config.root}/extras )
# Only load the plugins named here, in the order given (default is alphabetical).
# :all can be used as a placeholder for all plugins not explicitly named
# config.plugins = [ :exception_notification, :ssl_requirement, :all ]
# Activate observers that should always be running
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
# config.i18n.default_locale = :de
# Configure generators values. Many other options are available, be sure to check the documentation.
# config.generators do |g|
# g.orm :active_record
# g.template_engine :erb
# g.test_framework :test_unit, :fixture => true
# end
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
# Configure sensitive parameters which will be filtered from the log file.
config.filter_parameters += [:password]
end
end
require 'rubygems'
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
begin
ENV['BUNDLE_GEMFILE'] = gemfile
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gemfile)
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require File.expand_path('../config/application', __FILE__)
require 'rake'
require 'resque/tasks'
Rails::Application.load_tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment