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

Substring finding out of range #410

Closed
paazmaya opened this issue Jun 18, 2014 · 4 comments
Closed

Substring finding out of range #410

paazmaya opened this issue Jun 18, 2014 · 4 comments

Comments

@paazmaya
Copy link
Contributor

I started with lib sass via node-sass and grunt-sass, but keep getting the following error:

libc++abi.dylib: terminating with uncaught exception of type std::out_of_range: basic_string::substr
Abort trap: 6

The code base is rather huge and I have not yet been able to pin point where exactly this occurs, but wanted to start noting it down here via issue.

Any pointers on how to get better feedback of what might be causing this?

@akhleung
Copy link

When you say that the code base is huge, I assume you're talking about your SCSS code? I suggest commenting out large portions to see whether it still crashes, until you can narrow it down to a single file or block of code that's causing the crash, and then post it here. (Or if you can link to your SCSS code base, I can try to track down the problem for you.)

I should also mention that node-sass is probably using an out-of-date version of LibSass at this point ... I need to update a few tests, and they should be able to pull in the latest master version.

@paazmaya
Copy link
Contributor Author

Just a quick note, I compiled and/or used the latest Git versions available of the given stack but the same error....

@mgreter
Copy link
Contributor

mgreter commented Jun 27, 2014

This should be fixed with the latest sass2scss version! Maybe you can try it by updating the sass2scss submodule in your local version to the latest master? I also added some test cases to CSS-Sass that seem to compile correctly now! Thank you for the report!

@paazmaya
Copy link
Contributor Author

Fixed in mgreter/sass2scss@59cec07

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

No branches or pull requests

3 participants