-
Notifications
You must be signed in to change notification settings - Fork 522
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
Error when compiling .scss file #162
Comments
Can you please be more specific? what is the error msg? |
Same here, the css is compiled, but this error appear. |
BUMP! Same problem here... very annonying! How can I receive any debbug-info? It's like: In the beginning of each Koala-session, the files are rendered perfectly, then after two or three tries it works again, then after 5,6, and so on... |
Same problem! Did anybody find a solution? |
Anybody can help to debug this problem?
exec(command, {timeout: 5000, maxBuffer: 2000*1024}, function (error, stdout, stderr) {
if (error !== null) {
global.debug(error); // for debug
emitter.emit('fail');
self.throwError(stderr, filePath);
} else {
emitter.emit('done');
//add watch import file
var imports = common.getStyleImports('sass', filePath);
self.watchImports(imports, filePath);
}
// do awayls
emitter.emit('always');
}); Restart Koala, then press F12 to open the developer tools, switch to the "console" section, if error when compile sass file, the detailed error message will be printed out. |
I'll try to help, but I have no idea if I'm doing this the right way.
|
Thanks. But this information is not enough, please continue test. //argv.push('--cache-location "' + path.join(FileManager.userCacheDir, '.sass-cache') + '"');
argv.pus('--no-cache'); and print stdout and error. global.debug(error); // for debug
global.debug(stdout);
global.debug(error); |
Getting the same error, let me know if there's anything else I could try. |
There is no other way. |
Windows 7 64 bits, Ruby 1.9.3
|
Try update ruby to the 2.x version, and set Koala, Settings --> Use Custom Ruby --> checked. |
I was facing the same issue. |
I'm having the same problem. I followed the instructions above and still get a blank error message |
Hi. Sebchauss solution to alter the timeout worked great and got rid of the error for me, to. Like this: „I set the value to 10000 and it worked (file "%koala%\app\scripts\compilers\SassCompiler.js" line 149)” |
It maybe would be a great idea to have an explicit error message and a configurable setting directly in the application ? |
Yes. I second that. Sebchauss is right. Either a fix for that bug, or give us a setting ... something like a "troubleshooting" tab in the advanced settings where we can set the timeout for troubleshooting issues. |
I was having the same issue and sebchauss solution worked for me. Cheers. "I set the value to 10000 and it worked (file "%koala%\app\scripts\compilers\SassCompiler.js" line 149)" |
I have the same problem and |
50000 worked for me on an cheap laptop, it just takes too long (causing the access errors I guess) |
Updating ruby to 2.2.1 and setting timeout to 10000 (based on @TillMatthis comment) solved my issue. platform: win 8.1 x64 |
Thanks to everyone who discovered a fix. I was pulling my hair out. 10000 worked for me. |
Thanks all, I will set the default value of maxBuffer to |
Setting timeout to more than 5 seconds as per above fixed this nicely You can test if this is the problem by removing a number of your include files, to make the compilation less than 5 seconds, and then it will compile Error free again |
To @soumen-sarkar and others still getting this error, go higher. I tried |
I had the same blank error message with just the path. My solution was to untick |
changing to 15000 worked) |
@sebchauss trick worked for me too! Thanks |
@TillMatthis 10000 is also worked for me ! |
I changed timeout to 500000 and maxBuffer to 100000*1024, and am still getting the error. I also unticked Source Map. I added the lines to the SassCompiler.js and also to package.json but I don't get anything in the console... just a blank error. What else can I try? |
* develop: Bump version to 2.1.0 Update copyright year to 2017. Correct a contributor’s name. Update the compilers. Add a build system for making releases using gulp. Add a workaround a bug in nwjs/nw.js#5513 Update the URL to be relative. Replace `require(‘nw.gui’)` with the global `nw`. Remove setting the `localStorage` of the `global`. It’s set by default. Improve the feature Use JSON files and update default JSON config files Support for AutoPrefix Config on CSS, LESS and Sass change the default value of maxBuffer oklai#162
This error occurred after reinstalling from disk C to disk D in my case. I returned it to drive C, and it works for me |
I have an error when compiling .scss file, appears notification that is error and path to my .scss file. With .less files is ok. I downloaded Koala about one week ago and it always shows me this error.
Windows 7 64, have ruby installed.
The text was updated successfully, but these errors were encountered: