LESS-build-sublime icon indicating copy to clipboard operation
LESS-build-sublime copied to clipboard

Not building

Open JulianNorton opened this issue 12 years ago • 6 comments

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

JulianNorton avatar Jan 15 '13 19:01 JulianNorton

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

javiersanta avatar Jan 16 '13 09:01 javiersanta

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.

Pym avatar Jan 21 '13 17:01 Pym

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.

JulianNorton avatar Jan 21 '13 18:01 JulianNorton

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

Randallsm83 avatar Jan 31 '13 01:01 Randallsm83

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

JulianNorton avatar Jan 31 '13 14:01 JulianNorton

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

Randallsm83 avatar Jan 31 '13 19:01 Randallsm83