bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Makefile doesn't run offline

Open CinderHub opened this issue 14 years ago • 8 comments

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

CinderHub avatar Feb 01 '12 06:02 CinderHub

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.

davefinster avatar Feb 02 '12 00:02 davefinster

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)

davefinster avatar Feb 02 '12 00:02 davefinster

I'm with @davefinster that this issue is more related to the ruby version of lessc.

voidnothings avatar Feb 02 '12 09:02 voidnothings

Try with the Node version of less as recommended in the docs.

cgunther avatar Feb 02 '12 15:02 cgunther

@fat, should we close?

mdo avatar Feb 07 '12 21:02 mdo

Definitely a Ruby gem problem. Using the one from npm makes it work.

pokonski avatar Feb 07 '12 21:02 pokonski

You can modify less.rb so that it builds Bootstrap: https://github.com/harrigan/less.rb/commit/3a4bbc5d964f90af16985a8445e3e65b985efa1d

harrigan avatar Mar 11 '12 16:03 harrigan

also affects Crunch

sattaman avatar Sep 13 '12 09:09 sattaman