bdkjones/CodeKit — Issue #177: Only recognizing last line in Sass file for imports
Author: postpostmodern
Created: 2012-01-31 22:59:42+00:00
State: open

When I have a Sass file that includes multiple `@import` lines, the only one recognized by CodeKit is the last line of the file.

For example, if __styles.sass__ looks like this:

```sass
@import vendor/pie
@import vendor/html5boilerplate
@import vendor/formtastic
@import theme/colors
@import theme/fonts
@import theme/buttons
@import theme/global
@import theme/layout
@import theme/forms
```

CodeKit will only show ___forms.sass__ in the __Imports__ for __styles.sass__, and only ___forms.sass__ shows __styles.sass__ in the __Imported By__ box.

Of course, the Sass processor works just fine and imports all of them, but since CodeKit only recognizes the last file, it does not recompile when any of the other files are saved. I also tested this with a Sass file that imported only two very simple Sass files, and observed the same result. And if I have an empty line at the end of the file (after the `@import` lines), CodeKit will not recognize any imports at all.