Skip to content

SASS compilation broken, SCSS still works in latest version? #352

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

Closed
charludo opened this issue Jun 15, 2021 · 3 comments
Closed

SASS compilation broken, SCSS still works in latest version? #352

charludo opened this issue Jun 15, 2021 · 3 comments

Comments

@charludo
Copy link

Just encountered this error:

sass.CompileError: Error: Invalid CSS after "...[last line of file]": expected 1 selector or at-rule, was "{}"

Neither my project, nor the .sass file have changed since the last time I compiled the file, but libsass and libsass-python have both received updates. Some testing with simple files containing only one rule yielded the same result.

I remember getting the same error a while back, which was solved by passing indented=True to sass.compile(). This doesn't seem to do anything though.

Compiling SCSS still works, however.

@asottile
Copy link
Member

can you show an example? the testsuite is currently demonstrating that this works and a quick test on my end shows it works as well:

$ cat t.sass 
a
    color: red
$ pysassc t.sass 
a {
  color: red; }

@charludo
Copy link
Author

....I'm an idiot.

Your example worked.

Something in another API changed in the meantime, and I accidentally fed sass.compile() first raw sass (worked) then the compiled css (obviously does not work).

Sorry for bothering you.

@asottile
Copy link
Member

no problem!

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