Re: [haml] html2haml and hpricot issues

203 views
Skip to first unread message

Norman Clarke

unread,
Apr 15, 2013, 10:31:22 PM4/15/13
to ha...@googlegroups.com
Html2haml used to come bundled with Haml prior to version 4. You might want to uninstall Haml 3.1.4 to make sure the right version gets run. Also make sure you're running the very latest html2haml - a few prereleases back there was a bug with html2haml loading the wrong version of Haml.

The latest version also now sets Hpricot as a dependency, so as long as you're running the latest version you shouldn't see that error.

Regards,

Norman


On Mon, Apr 15, 2013 at 11:26 PM, armanx <arm...@gmail.com> wrote:
Hello all,

I'm running into the notorious hpricot dependency (LoadError: cannot load such file -- hpricot) when running html2haml. I'm using RVM, and also tried installed the html2haml gem, but to no avail.

Also, this is strange: the newly installed gem is located at ~/.rvm/gems/ruby-1.9.3-p392/bin/html2haml, but when I run html2haml, the error is generated from ~/.rvm/gems/ruby-1.9.3-p392/gems/haml-3.1.4/lib/haml/html.rb:6.

Any ideas are greatly appreciated!

--
You received this message because you are subscribed to the Google Groups "Haml" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haml+uns...@googlegroups.com.
To post to this group, send email to ha...@googlegroups.com.
Visit this group at http://groups.google.com/group/haml?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

armanx

unread,
Apr 16, 2013, 5:04:33 AM4/16/13
to ha...@googlegroups.com
Thanks, that worked.

I was running into issues where I had different versions of Haml installed. After uninstalling all older versions and installing only 4.0.2 everything worked fine. 

Then I bundled gems for one of the older projects, which installed version 3.1.4. That version seemed to take over the terminal commands (both haml -v and html2haml -v showed Haml 3.1.4 Separated Sally). This baffled me for a while, until I realized that this version of Haml was installed within the project's gem bundle. The "normal" 4.0.2 haml and html2haml commands were still available outside the project directory.

Matt Wildig

unread,
Apr 16, 2013, 9:28:57 AM4/16/13
to ha...@googlegroups.com

On 16 Apr 2013, at 10:04, armanx wrote:

> Then I bundled gems for one of the older projects, which installed version
> 3.1.4. That version seemed to take over the terminal commands (both *haml -v
> * and *html2haml -v* showed *Haml 3.1.4 Separated Sally*). This baffled me
> for a while, until I realized that this version of Haml was installed
> within the project's gem bundle. The "normal" 4.0.2 *haml* and *html2haml*commands were still available outside the project directory.

If you're using RVM, this might be caused by the rubygems-bundler gem which RVM installs by default and has given me trouble in the past.

Take a look at <https://rvm.io/integration/bundler/> and <https://github.com/mpapis/rubygems-bundler>.


Matt

Reply all
Reply to author
Forward
0 new messages