Google Groups Home
Help | Sign in
HAML error... Any pointers?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
simonm  
View profile
 More options 14 Jul, 15:38
From: simonm <simon.mul...@gmail.com>
Date: Mon, 14 Jul 2008 07:38:49 -0700 (PDT)
Local: Mon 14 Jul 2008 15:38
Subject: HAML error... Any pointers?
Hi All,

I'm only 10 minutes in to my adventure with staticmatic (and to be
honest, HAML and SASS).

I'm getting mongrel errors when I try to preview and when I try to
build I see this:

->staticmatic build test_site
created test_site/site/stylesheets/application.css
/opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:135:in `generate_html': undefined method
`line_offset' for #<Haml::SyntaxError:0x1551ef4> (NoMethodError)
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:151:in `generate_html_with_layout'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:259:in `build_html'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:256:in `each'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:256:in `build_html'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:61:in `build'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:53:in `send'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/../lib/
staticmatic/base.rb:53:in `run'
        from /opt/local/lib/ruby/gems/1.8/gems/staticmatic-0.9.4/bin/
staticmatic:23
        from /opt/local/bin/staticmatic:19:in `load'
        from /opt/local/bin/staticmatic:19

Any suggestions how to troubleshoot?

Many thanks in advance

SM


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
simonm  
View profile
 More options 14 Jul, 16:40
From: simonm <simon.mul...@gmail.com>
Date: Mon, 14 Jul 2008 08:40:00 -0700 (PDT)
Subject: Re: HAML error... Any pointers?
I've realised that this is caused by HAML syntax errors and the error-
checking is not working as expected (in Haml::SyntaxError).

I'll figure it out.

I have to say, so far this looks perfect ...if I can only get it
working..... ;-)

Cheers

SM

On 14 Jul, 16:38, simonm <simon.mul...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ryan Mulligan  
View profile
 More options 14 Jul, 18:47
From: "Ryan Mulligan" <r...@ryantm.com>
Date: Mon, 14 Jul 2008 12:47:09 -0500
Local: Mon 14 Jul 2008 18:47
Subject: Re: HAML error... Any pointers?

The best way for us to help you is if you post a link to the snippet that
generated that error.

Ryan


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harry  
View profile
 More options 30 Jul, 11:33
From: Harry <blogdri...@gmail.com>
Date: Wed, 30 Jul 2008 03:33:41 -0700 (PDT)
Local: Wed 30 Jul 2008 11:33
Subject: Re: HAML error... Any pointers?
yes ,I have this problem also.

try this :if my index.haml is like this:

.container hello

only one line is ok;

if add a line:
.container hello
  .span-24 body

then the erro similar will occur
.in `generate_html': undefined method `line_offset' for
#<Haml::SyntaxError:0xb7a36558> (NoMethodError)

if i change it to
.container hello
.span-24 body

then it is ok again. notice I removed the space or tab in front of the
second line.(I tried space and tab both) so it look like it will not
recongnize it .

I tried netbeans and komodo editor, for fear it's the problem of
identation? but all seems similar


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harry  
View profile
 More options 30 Jul, 11:36
From: Harry <blogdri...@gmail.com>
Date: Wed, 30 Jul 2008 03:36:09 -0700 (PDT)
Local: Wed 30 Jul 2008 11:36
Subject: Re: HAML error... Any pointers?
btw,

the odd name like ".container" and "span-24" comes from blueprintcss
framwork. I found it extremely cool to write web page if combine with
haml and staticmatic.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Bartholomew  
View profile
 More options 30 Jul, 17:02
From: Stephen Bartholomew <st...@curve21.com>
Date: Wed, 30 Jul 2008 09:02:24 -0700 (PDT)
Local: Wed 30 Jul 2008 17:02
Subject: Re: HAML error... Any pointers?
Hi,

This error normally happens because the version of haml installed is
not supported by the installed StaticMatic.  Try doing:

sudo gem install staticmatic

which may fix your problems.  You can also try the (as yet not
officially released) new version of StaticMatic over on github:
http://www.stephenbartholomew.co.uk/2008/5/14/staticmatic-2-is-coming.

If you get no joy, please post the versions of staticmatic and haml
you have:

gem list --local | grep staticmatic
gem list --local | grep haml

(if you're on *nix)

Thanks,

Steve

On 30 Jul, 11:33, Harry <blogdri...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harry  
View profile
 More options 31 Jul, 07:10
From: Harry <blogdri...@gmail.com>
Date: Wed, 30 Jul 2008 23:10:20 -0700 (PDT)
Local: Thurs 31 Jul 2008 07:10
Subject: Re: HAML error... Any pointers?
No, can't make it working.

1,sudo gem install gem just update haml to 2.0.2 same problem
   gem list as :
     sudo gem install staticmatic
    password:
    Updating metadata for 32 gems from http://gems.rubyforge.org/
    ................................
   complete
   Successfully installed haml-2.0.2
  Successfully installed staticmatic-0.9.4
    gems installed
  haml still wont' work if more than 2 lines and the second has some
space ot tab.

2,git clone git://github.com/stevebartholomew/staticmatic.git
 then make a Rakefile.rb in the root dir,then rake preview,

rake preview
(in /home/harry/workspace/localwebsite/geeknews)
rake aborted!
./staticmatic/lib/tasks/../staticmatic/previewer.rb:31: syntax error,
unexpected '\n'

(See full trace by running task with --trace)

is there anyway I can install the new gem by gem install ? I am not
familiar with git and don't know what is it doing


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Harry  
View profile
 More options 31 Jul, 11:50
From: Harry <blogdri...@gmail.com>
Date: Thu, 31 Jul 2008 03:50:19 -0700 (PDT)
Local: Thurs 31 Jul 2008 11:50
Subject: Re: HAML error... Any pointers?
Anyway , the following way can sovle the problem at the moment:

 install haml gem 2.0.0 (download from rubyforge)

delete haml gem2.0.1 or 2.0.2( sudo gem uninstall haml)

then It will work fine.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google