Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imports fail if there's also a directory of the same name #26

Closed
QuLogic opened this issue Jul 10, 2012 · 1 comment
Closed

Imports fail if there's also a directory of the same name #26

QuLogic opened this issue Jul 10, 2012 · 1 comment

Comments

@QuLogic
Copy link
Contributor

QuLogic commented Jul 10, 2012

As in Compass, say you have a partial and a directory with a similar name. On Linux (and likely on any Unix, where "everything is a file"), if you import only the basename of the partial (i.e., without the extension), then libsass will open the directory instead of the partial and fail to read anything.

Test case:

$ touch bar.scss
$ mkdir bar
$ cat > foo.scss << EOF
@import "bar";
EOF
$ sassc foo
ERROR -- foo.scss, line 1: error reading file "bar"
@QuLogic QuLogic mentioned this issue Jul 12, 2012
@akhleung
Copy link

Merged the pull request; thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants