-
Notifications
You must be signed in to change notification settings - Fork 463
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
Regression: incorrect line numbers in source maps #720
Comments
Would be nice if you could show us your example. Best would be a minimal test case! Thank you! |
Sure, I will put one together. Let me clean up the files I have, and provide as small a test case as possible. Thanks for looking into this. |
Here she is, I've tried to strip it down as much as possible: html {
padding: 0;
}
body {
color: #333;
background-color: #999;
}
@mixin input-size($parent) {
textarea#{$parent},
select[multiple]#{$parent} {
height: auto;
}
}
@include input-size('.input-sm'); I've also uploaded the compiled examples to this repo: pre-3.0.1 is compiled with libsass f55b2d5, and post-3.0.1 is compiled with head / 5f3558d. Oh dear, so after all of that, I've just noticed that the broken map contains an extra In my original use case where I discovered this, I had 2 |
Same problem here. Problem started with |
Thank you for taking the time to produce a minimal test case! |
Maybe someone could try the fix at https://github.com/mgreter/libsass/tree/fix/source-map-issues? |
Hi @mgreter. I have tested your fix/source-map-issues branch, and I can confirm this fixes the issue I was having. Thanks a lot for having a look at this!! Any chance this could make it into the next release? #697 |
Your feedback improved that chance by a lot. Thx! Anyone else!? |
Sorry it took a while, I had a busy weekend, back on track now ;-) |
I'm going to close this, since we have merged a possible fix! |
Awesome, thanks @mgreter 👍 |
Hi. It looks like ca5f271 broke something, and line numbers from source maps become out of sync.
I don't know C++ to be able to dig deeper, but I can verify that before this, the line numbers seem to be synced up, at least for my use case, and afterwards they are out. I can also submit my files, so we can create a test case for this. Thoughts?
The text was updated successfully, but these errors were encountered: