dhl / erb2haml

Simple script to bulk covert ERB files in a Rails app to Haml
MIT License
193 stars 20 forks source link

convert_erbs failed #2

Closed ciphor closed 12 years ago

ciphor commented 12 years ago

I'm trying to use erb2haml to convert the ".rhtml" files in an old Rails application to HAML, but failed. Below is the trace:

rake haml:convert_erbs --trace (in C:/Users/chenfan/workspace/testRails) * Invoke haml:convert_erbs (first_time) * Execute haml:convert_erbs rake aborted! No such file or directory - which html2haml C:/Ruby193/lib/ruby/gems/1.9.1/gems/erb2haml-0.1.2/lib/erb2haml/railties/erb2ham l.rake:16:in `' C:/Ruby193/lib/ruby/gems/1.9.1/gems/erb2haml-0.1.2/lib/erb2haml/railties/erb2ham l.rake:16:inblock (2 levels) in <top (required)>' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in call' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:inblock in execute' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:inexecut e' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in block in invoke_with_call_chain' C:/Ruby193/lib/ruby/1.9.1/monitor.rb:211:inmon_synchronize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in invoke _with_call_chain' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:ininvoke ' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in invoke_task' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in block in run' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in run' C:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in<top (required) ' C:/Ruby193/bin/rake:23:in load' C:/Ruby193/bin/rake:23:in

' Tasks: TOP => haml:convert_erbs

dhl commented 12 years ago

Hi ciphor.

The exception is caused by erb2haml not being in your PATH. Normally, the utility will tell you if html2haml is not in your path, but that only happens in *nix environment.

Try including the path to html2haml in your PATH.

ciphor commented 12 years ago

Thanks