8

I have had a few attempts at installing SASS on netbeans. I have followed the following tutorial:

http://kgagliardo.com/blog/netbeans-sass-windows-7

I get the below error when creating and trying to save the SASS file and no CSS file is created.

""C:\Ruby193\bin\sass.bat" "--cache-location" "C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css" '"ruby.exe"' is not recognized as an internal or external command, operable program or batch file. Done."

I've been stuck on this all morning, please help...

UPDATE I've tried to follow the instructions provided below and it still does not work, although I did get a slightly different error message:

"C:\Ruby193\bin\sass.bat" "--cache-location" "C:\Users\Leanne\AppData\Local\NetBeans\Cache\7.4\sass-compiler" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss" "C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\css\store.css" Syntax error: File to import not found or unreadable: foundation/components/accordion. Load path: C:/Users/Leanne/Documents/work/freelance/sites/fws_templates (DEPRECATED) on line 10 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\foundation\foundation.scss from line 11 of C:\Users\Leanne\Documents\work\freelance\sites\fws_templates\gamer\scss\store.scss Use --trace for backtrace. Done.

However Now I simply get the original error message again. No idea what to do. See image below showing that I have done everything according to the instructions (I think).

https://i.stack.imgur.com/Eekyt.png

enter image description here

LeeTee
  • 6,401
  • 16
  • 79
  • 139
  • 1
    your Path to ruby is `C:\Ruby193\bin` go back and edit your path environment variable to point to `C:\Ruby193\bin` . At the moment you have `C:\Ruby\192\bin` :-) – moskito-x Apr 14 '14 at 23:28
  • Well spotted. I have changed it to 193 but still have the same error. – LeeTee Apr 15 '14 at 08:26
  • 1
    And Now remove the backslash between Ruby and 193 . Your Path is set to : `C:\Ruby\193\bin` :-) ! your `.bat` is in Folder : `C:\Ruby193\bin` – moskito-x Apr 15 '14 at 15:51
  • Oh yeah, I feel like such an idiot! Thanks for pointing that out. Now I have the 2nd error message showing again. I assume the 2nd error message is nothing to do with the original and so you should perhaps answer this question with the above so you can get he +50 ;) – LeeTee Apr 15 '14 at 16:35
  • 1
    Thanks ! Also `LukasMac` has tried to lead you in the right direction. However, he has brought the error to the wrong path into play. `c:\Ruby\192\bin` – moskito-x Apr 15 '14 at 17:21
  • Here's a [walkthrough to **setup SASS in Netbeans**](http://stackoverflow.com/a/34714409/383904) – Roko C. Buljan Jan 11 '16 at 05:11

4 Answers4

5

Your path environment variable points to the wrong folder

Your Path to ruby is C:\Ruby193\bin

Go back and edit your path environment variable to point to C:\Ruby193\bin . At the moment you have C:\Ruby\192\bin

EDIT

And Now remove the backslash between Ruby and 193.
Your Path is set to : C:\Ruby\193\bin :-) !
your .bat is in Folder : C:\Ruby193\bin

TIP

Go to Options

Miscellaneous --> CSS Preprocessors

check : Generate extra information (debug)

moskito-x
  • 11,832
  • 5
  • 47
  • 60
2

You don't have path to ruby.exe which is c:\Ruby\192\bin in you PATH variable.

In Windows 7:

  1. Right click on My computer and select Properties -> Go to Advanced Tab -> Click on the Environmental Variables button

  2. In the Environmental Variables window highlight PATH variable in System variables section and click Edit

  3. Append ;c:\Ruby\192\bin to the end (the semicolon is intentional)

  4. Restart command prompt

LukasMac
  • 848
  • 1
  • 8
  • 20
  • Thanks for your help. For point 3 I now have, "C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Windows Live\Shared;c:\Ruby\192\bin" for the PATH system variable. Is that correct? Also I'm not sure what to do for point 4. – LeeTee Apr 14 '14 at 13:38
  • Im getting a new error message. Not sure if this is totally unrelated or not...Ive amended the original query above. – LeeTee Apr 14 '14 at 17:02
1

You don't have path to ruby.exe

As simple, reinstall ruby, use ruby installer for windows.

When you go through the installation wizard, you’ll come to this options screen:

From what I can tell, the only option that you need to check on that one is the middle option, which helps your command-line instructions recognize where to find (as it says) “Ruby executables”. Otherwise, you’ll get the error message “ruby is not recognized as an internal or external command” when you try to install Sass in the command prompt. Go to Options

Miscellaneous --> CSS Preprocessors

check : Generate extra information (debug)

For more information go to Setting Up Sass on Windows

Marcin
  • 173
  • 12
0

They are all right in the above message. The problem is that Netbeans is not designed to pick up these changes instantaneously. Once you make the changes above, you have to RESTART Netbeans, so that the changes will be applied. This worked for me. Let me know if it works for you.

Thanks

CodeGodie
  • 12,116
  • 6
  • 37
  • 66