Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy rake aborts [rake --tasks] with cannot load such file on my Windows box?
    primarykey
    data
    text
    <p>I'm trying to execute a rake task from a directory without rails or anything. Just a directory and a Rakefile.rb inside.</p> <p>Currently I have no idea why it fails. But I thought executing rake from within a directory where a Rakefile lives should execute the tasks from this rakefile. Am I missing a load path or something?</p> <p>My environment</p> <pre><code>Win7 (x64) ruby 1.9.3p194 (2012-04-20) [i386-mingw32] rake, version 0.9.2.2 RubyGems Environment: - RUBYGEMS VERSION: 1.8.23 - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby193/lib/ruby/gems/1.9.1 - RUBY EXECUTABLE: C:/Ruby193/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby193/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby193/lib/ruby/gems/1.9.1 - C:/Users/pantarhei/.gem/ruby/1.9.1 - GEM CONFIGURATION: - :update_sources =&gt; true - :verbose =&gt; true - :benchmark =&gt; false - :backtrace =&gt; false - :bulk_threshold =&gt; 1000 - REMOTE SOURCES: - http://rubygems.org/ </code></pre> <p>This are the error message </p> <pre><code>[rake --tasks] rake aborted! cannot load such file -- D:/Projects/_Web/FOO/Rakefile C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load' C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:65:in `block in run' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:63:in `run' C:/Ruby193/bin/rake:32:in `&lt;main&gt;' [rake --prereqs] rake aborted! cannot load such file -- D:/Projects/_Web/FOO/Rakefile C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load' C:/Ruby193/lib/ruby/1.9.1/rake/rake_module.rb:25:in `load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:501:in `raw_load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:82:in `block in load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:81:in `load_rakefile' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:65:in `block in run' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:133:in `standard_exception_handling' C:/Ruby193/lib/ruby/1.9.1/rake/application.rb:63:in `run' C:/Ruby193/bin/rake:32:in `&lt;main&gt;' </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload