berfarah / LESS-build-sublime

Less build sytem for Sublime Text 2
Apache License 2.0
91 stars 14 forks source link

Not building #29

Open JulianNorton opened 11 years ago

JulianNorton commented 11 years ago

I'm not quite sure hot to get this working. I've installed it and get the following error when building. How can I get this to compile a css file?

[Errno 2] No such file or directory [cmd: [u'lessc', u'/Users/disk/Desktop/tester/untitled222.less', u'/Users/disk/Desktop/tester/untitled222.css', u'--verbose']] [dir: /Users/disk/Desktop/tester] [path: /usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin] [Finished]

I've changed my .sh file, pasted below.

!/bin/bash

PS3='Normal' options=("Normal" "Directory Rewrite" "Quit") select opt in "${options[@]}" do case $opt in "Normal") rm LESS.sublime-build ln -s LESS-normal.sublime-build-choice LESS.sublime-build break; ;; "Directory Rewrite") rm LESS.sublime-build ln -s LESS-rewriteDir.sublime-build-choice LESS.sublime-build break; ;; "Quit") break ;; *) echo invalid option;; esac done

javiersanta commented 11 years ago

Try this https://github.com/berfarah/LESS-build-sublime/pull/27

Pym commented 11 years ago

I have the same issue. This is a path related problem, but I don't know how to fix it.

Each time I run the command the displayed path gets bigger and bigger, just like in @JulianNorton's paste.

JulianNorton commented 11 years ago

I did that change (in #27 ) ($ outside the bracket, but within the quote), I also did the change in LESS.sublime-build.

Still getting the following error:

[Errno 2] No such file or directory [cmd: [u'lessc', u'/Applications/MAMP/htdocs/bootstrap/static/css/bootstrap/variables.less', u'/Applications/MAMP/htdocs/bootstrap/static/css/bootstrap/variables.css', u'--verbose']] [dir: /Applications/MAMP/htdocs/bootstrap/static/css/bootstrap] [path: /usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/bin] [Finished]

The url does grow as Pym pointed out.

Randallsm83 commented 11 years ago

Have you made sure to install node-less? sudo apt-get install node-less, for Ubuntu/Mac.

JulianNorton commented 11 years ago

Where can I install node-less? I Tried googling. Do I have to have node.js installed? Screen Shot 2013-01-31 at 9 51 28 AM

Randallsm83 commented 11 years ago

I apologize, I forgot I had to use a different method on my Mac, please try the following:

Install Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"

Install node with Homebrew (this should also install NPM): brew install node

Install less: npm install -g less