You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Given the following fs.readFile never executes it's callback and process hang indefinitely.
// entry.scss@import"_partial";
// _partial.scss
foo{}
varfs=require('fs');varsass=require('node-sass');varfiles=['entry.scss','entry.scss','entry.scss','entry.scss',];files.forEach(function(file){sass.render({file: file,importer: function(uri,prev,done){varfilename=process.cwd()+'/'+uri;console.log('fs.readFile:',filename);fs.readFile(filename,function(err,data){console.log('I am never executed');done({contents: data});});}},function(err,result){console.log('successfully rendered');});});
Given the following
fs.readFilenever executes it's callback and process hang indefinitely.// _partial.scss foo{}Outputs this and hangs
This example works fine if:
renderSyncfs.readFileSyncThis is potentially related to #794.
This issue has been reproduced on multiple OSX machines on the latest node 0.10, 0.12 and iojs with node-sass@3.0.0-beta.5