Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

simpLESS not compiling

Tags:

css

less

I am using 'simpLESS' program to compile my .less files into .css files on the fly.

It is really great!

However, after using it only for couple of days, 'simpLESS' stopped copiling the .less into .css files. I have tried to reinstall, redownload and then reinstall, tried other directories, other .less files, tried recompiling manuall - but nothing works.

Has anyone experienced this?

Thanks!

like image 943
Yura Avatar asked Aug 14 '12 21:08

Yura


2 Answers

Simpless is always bad with error handling! instead of telling you what's wrong it just doesn't work! So here is what I do: when Simpless doesn't display the error I use Winless to find the error and after I fix it I go back to Simpless. note: I use Simpless because it works fine with @import .less files in the other hand Winless doesn't.

like image 197
Rahman Saleh Avatar answered Nov 15 '22 12:11

Rahman Saleh


I seem to found the problem. I had the following code:

#result{
   .result_padding;

   .icon{
      height: 17px;
      width: 23px;
    }
}

However, the ".result_padding" actually was not defined. The simpLESS compiler should have spotted this, but I guess this is a bug. Anyway, after removing this line - it worked.

like image 41
Yura Avatar answered Nov 15 '22 13:11

Yura