[Neos] [Team] Compiling compass/sass styles

Aske Ertmann aske at moc.net
Sun Nov 10 13:14:06 CET 2013


Hey developers

If you're experiencing any problems with compiling the styles which worked perfectly fine before, then you're probably having the same issue I did.

"NameError on line 1 of /Packages/Application/TYPO3.Neos/Resources/Private/Styles/config.rb: uninitialized constant Compass::Configuration::Serialization::Encoding"

The issue is due to the merging of https://review.typo3.org/#/c/24165/36/Resources/Private/Styles/config.rb which introduces some ruby constants that require Ruby 1.9. Unfortunately the default version of ruby is 1.8 in OS X (Mountain Lion). The reason for introducing these is that in some rare cases environments running newer versions of ruby have issues compiling, because of some issues with the environment not using UTF-8 by default. While this is a workaround for some rare cases that could be solves by fixing those environments, I decided not to remove it or adding a fix for ruby versions lower than 1.9 for now because declaring this makes some sense since encoding was really just magic in ruby 1.8

I discussed this problem with Rens on IRC and in it's not really an easy topic. Should we provide workarounds for developers environment or should the developers set their environments up "correctly" for Neos development?

So currently there are three options:

1. Remove encoding configuration as make those fix their environment

2. Keep as is, require people to update to ruby 1.9

3. Add workaround for old ruby versions
if RUBY_VERSION =~ /1.9/

end

For the time being I updated my own environment, but the error message is unfortunately not very helpful and this really doesn't belong in some other change where it's just a foot note. It should have been it's own commit and tested on more environments, because dealing with issues like these are very time consuming for those who experience it. Hopefully this will help those who encounter it.

Greetings
Aske


More information about the Neos mailing list