-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Importer: General overhauling #589
Conversation
|
||
if (importer) { | ||
options.importer = function(file, prev, key) { | ||
var done = function(data) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function done(data)
4e475c9
to
4aee39b
Compare
@kevva, ignoring the fact that we are getting segmentation fault, there is another (*nix-only) issue with cli importer tests, timeout. So I separated the cli command. With my master branch (and libsass submodule pointing to their current master), in node-sass clone root dir, run the following in bash: node bin/node-sass test/fixtures/include-files/index.scss --output test/fixtures/include-files
--importer test/fixtures/extras/my_custom_importer_file_and_data_cb.js It would not produce any output. But if |
c9669b6
to
fa44d56
Compare
Changes Unknown when pulling ce4b489 on am11:master into * on sass:master*. |
Turned out this CLI issue is ultimately related to binding. Only happening on Linux. On Win, it is passing all the tests. I commented out Now, lets wait for libsass to release 3.1.0, and I will update the submodules again. |
863a292
to
87f9fd5
Compare
04f16ec
to
7fd9fc9
Compare
* Other minor fixes.
Changes Unknown when pulling fc1d4e6 on am11:master into * on sass:master*. |
Changes Unknown when pulling 84fe3fe on am11:master into * on sass:master*. |
TravisCI says its all green! 🌴 Finally! yay!! |
👍 Without known memory leaks now? If yes, what was the problem? |
One memory concern (I don't know if it is really a leak): in case of RenderSync or RenderFileSync, if I call Then earlier I forgot to Since there is always room for improvement, for now I guess its fair enough. I can still reproduce that CLI issue that I mentioned above, but @equalsraf via IRC told me that he is unable to reproduce it and TravisCI confirms that! (don't know if it is Ubuntu or just my bad luck!) Thanks to everybody who helped us getting here. :) |
( |
----- It is inappropriate to include political and offensive content in public code repositories. Public code repositories should be neutral spaces for collaboration and community, free from personal or political views that could alienate or discriminate against others. Political content, especially that which targets or disparages minority groups, can be harmful and divisive. It can make people feel unwelcome and unsafe, and it can create a hostile work environment. Please refrain from adding such content to public code repositories.
closing async.
BIG THANKS to @txdv and this addresses #586 ! 🎉👍
Need to update the docs accordingly.
Code: Adds NanScope() to guard nan handlers.