3

I have a very simple file:

h1 {
    font-family: Helvetica, Arial, sans-serif;
    font-size: 2em;
    &.small {
        font-size: 1em;
    }
}

I then enter the following to compile the code sass test.scss. However I receive the following error message and no CSS file is created.

/Library/Ruby/Gems/1.8/gems/sass-3.3.14/bin/../lib/sass/script/lexer.rb:343: warning: regexp has invalid interval

Any idea of what I may be doing incorrectly?

cimmanon
  • 67,211
  • 17
  • 165
  • 171
  • 1
    Cannot confirm with [Sassmeister](http://sassmeister.com/gist/a82fc71b18e1a121b4d8), compiling under 3.3.14. Wonder if this might be a Ruby version issue, since I had to upgrade to 1.9.3 at some point for either Sass or Compass. – cimmanon Aug 15 '14 at 15:07
  • @Unihedron There is no regex in Sass, this is a problem within Sass itself. – cimmanon Aug 15 '14 at 15:13
  • Related: http://stackoverflow.com/questions/19940993/middleman-server-will-not-start-regexp-has-invalid-internal – cimmanon Aug 15 '14 at 15:19
  • Any idea as to what the issue is within Sass? – Mike Russell Aug 15 '14 at 17:57
  • 1
    As I already suggested, this is likely a Ruby version issue, meaning you should probably *try upgrading Ruby*. Sass is *supposed* to work with 1.8 according to their gem file. If upgrading solves the problem, you should report it to them on github. – cimmanon Aug 15 '14 at 18:02

1 Answers1

1

The problem was a '}' without escape in a regular expression in /lib/sass/script/lexer.rb see the fix in github you have to update to the latest version of sass (or at least 3.4.1).

Gadcam
  • 48
  • 6