Makefile doesn't run offline
The following error gets returned:
zip -r docs/assets/bootstrap.zip bootstrap
updating: bootstrap/ (stored 0%)
updating: bootstrap/css/ (stored 0%)
updating: bootstrap/css/bootstrap.css (stored 0%)
updating: bootstrap/img/ (stored 0%)
updating: bootstrap/img/glyphicons-halflings-white.png (deflated 4%)
updating: bootstrap/img/glyphicons-halflings.png (deflated 4%)
updating: bootstrap/js/ (stored 0%)
rm -r bootstrap
lessc ./less/bootstrap.less > ./docs/assets/css/bootstrap.css
at /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/js/lib/less/parser.js:378:69: 'reset.less' wasn't found. (Less::ParseError)
from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:88:in to_css' from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:13:incalljs'
from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:27:in lock' from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:25:inlock'
from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:12:in calljs' from /Library/Ruby/Gems/1.8/gems/less-2.0.9/lib/less/parser.rb:87:into_css'
from /Library/Ruby/Gems/1.8/gems/less-2.0.9/bin/lessc:23
from /usr/bin/lessc:19:in `load'
from /usr/bin/lessc:19
make: *** [docs] Error 1
I get the same error when I run make and I'm using the Ruby version of less (al biet I'm on 1.9). However, when you 'cd' into the less directory and manually run the 'lessc bootstrap.less > bootstrap.css' command, everything is fine. Seems to be a paths issue.
Changing the path in the bootstrap.less file to 'less/reset.less' does the trick, however you strike the '.tab-focus is undefined (Less::ParseError)' error as a result.
I've at least got the makefile past the stages of dealing with less. It involved changing all the paths in bootstrap.less and responsive.less from 'x' to '/less/x'. However, a new problem has arisen which I believe is more an issue with the Ruby version of lessc. It doesn't appear to support --compress, hence this gets thrown
/Users/myusername/.rvm/gems/ruby-1.9.2-p290/gems/less-2.0.9/bin/lessc:20:in `read': No such file or directory - --compress (Errno::ENOENT)
I'm with @davefinster that this issue is more related to the ruby version of lessc.
Try with the Node version of less as recommended in the docs.
@fat, should we close?
Definitely a Ruby gem problem. Using the one from npm makes it work.
You can modify less.rb so that it builds Bootstrap: https://github.com/harrigan/less.rb/commit/3a4bbc5d964f90af16985a8445e3e65b985efa1d
also affects Crunch