Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Boaz Keren Gil
Boaz Keren Gil
18,947 Points

Compass listener returns error

Hello, Iv'e started using Compass, and it behaves really strange. When i use the watch command, it detects changes and rewriting the main css file as expected but it randomly returns an error on some partial files.

For example: When I change _fonts, it works great. when I change _intro the terminal gives me the following error:

 modified sass/pages/_intro.scss
[Listen warning]: Change block raise an execption: undefined method `to_tree' for nil:NilClass

It is just a random error, it can happen with any file, and the only thing that solved it was pressing Cmd+C and using the watch again.

Why is that? and how do I fix it? Thanks in advance for your help, Boaz.