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

New API usage breaks sourcemap generation #86

Closed
rototor opened this issue Dec 22, 2014 · 4 comments
Closed

New API usage breaks sourcemap generation #86

rototor opened this issue Dec 22, 2014 · 4 comments

Comments

@rototor
Copy link
Contributor

rototor commented Dec 22, 2014

With commit 52f6857 the source map generation does no longer work.

I call my self compiled sassc like this:

sassc.mac --style nested --sourcemap  frontpage.scss  sassc_result.css

sassc returns the error code 2 for "internal unknown error". In sassc.c:113 output gets called with all (but the last) parameter set to null.

With commit bbbac5d everything works as expected. So i will use this revision for now.

@mgreter
Copy link
Contributor

mgreter commented Dec 22, 2014

Probably a duplicate of sass/libsass#720 !?
Also please include minimal test cases so we can see exactly what is breaking for you! I'm closing this since it does not contain any new information and we are aware that source-maps don't work 100%!

@mgreter mgreter closed this as completed Dec 22, 2014
@rototor
Copy link
Contributor Author

rototor commented Dec 22, 2014

Well, the only new information is, that current master of libsass with
bbbac5d of sassc works, but not with current master of sassc. I dont think this is related, as in this case no sourcemap is generated and sassc exists with exit status 2. I will try to build a minimal testcase later today when i get time.

@rototor
Copy link
Contributor Author

rototor commented Dec 22, 2014

Here is the receipt to reproduce the error:

This way everything is fine:

$ cat test.scss
body {
    color:red;
}
$ ./sassc --style nested --sourcemap test.scss
body {
  color: red; }
$ echo $?
0

But when giving an output file it generates an error:

$ ./sassc --style nested --sourcemap test.scss test.css
Unknown internal error.
$ echo $?
2

test.css is written, but no sourcemap is written. I only tested this on Mac OS X, but i assume this error will also occur on Linux.

Do you reopen this issue or should i file a new one?

@mgreter mgreter reopened this Dec 22, 2014
@rototor
Copy link
Contributor Author

rototor commented Jan 5, 2015

What ever caused this problem is fixed now. I can not reproduce this with current master of libsass & sassc.

@rototor rototor closed this as completed Jan 5, 2015
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