chriseppstein/compass — Issue #720: Error in partial generates error message with incorrect filename
Author: sentience
Created: 2012-02-15 02:40:24+00:00
State: open

I can reproduce this problem in Compass 0.11.7. It did not exist in 0.11.1 (which I was running previously).

When there is a syntax error in an imported partial, the error message reported by Compass contains the filename of the including file where it should cite the filename of the partial.

For example, if I have screen.scss that imports _partial.scss, and in _partial.scss, there is a syntax error on line 10. When I ask Compass to compile my project, I get an error like this:

error assets/sass/screen.scss (Line 10: Incompatible units: 'px' and 'pxx'.)

Note that the line number is correct (the problem is on line 10 of _partial.scss), but the filename is not (in my case, screen.scss doesn’t even contain 10 lines!).