vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

Cannot run program "lessc" #213

Closed christierney402 closed 10 years ago

christierney402 commented 10 years ago

I installed this plugin via the Eclipse Marketplace.

I then installed LESS compiler via your website link and verified that the path was included in the environment variables for Windows and that I can run "lessc" from the command prompt outside of that directory.

I then restarted Eclipse (packaged with Adobe ColdFusion Builder 3).

As per the limited instructions provided on your site I added a new launch configuration as follows:

When I click on my main .less file and click "Run" the following dialog appears:

"Problem Occurred

Cannot be launched because of an I/O exception

Cannot run program "lessc": CreateProcess error=2, The system cannot find the file specified"

I updated the LESS command to "lessc.cmd", which I have installed under my npm directory. Not sure if it was installed with your link or not. It now works.

Also, how do I specify the where the resulting .css file should be saved?

DarkNami commented 10 years ago

Your have to change the "LESS Command". Please filling your "lessc" physical path, just like "C:\Users[Yourname]\AppData\Roaming\npm\lessc.cmd" (Windows 7, node.js standard installer)

jastorgalj commented 9 years ago

1.- Your have to change the "LESS Command". Please filling your "lessc" physical path, just like "C:\Users[Yourname]\AppData\Roaming\npm\lessc.cmd" (same DarkNani)

2.- in C:\Users\Juan\AppData\Roaming\npm\node_modules\less\bin inside "switch (arg) {" put folllowing lines:

case 'O0' case 'O1': case 'O2': break;

odyodyodys commented 7 years ago

Please reopen this, @jastorgalj's solution (big thanks!!) works but its not permanent or pretty.