Thanks Pete.  I should have mentioned that I am running on a Mac with
Netbeans 8.2 and sounds like you are on a Windows box.  Hopefully the fix
to the config file will still works as long as I can find the equivalent
file on my Mac.

*Sent with Shift
<https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>*

On Tue, May 7, 2019 at 5:31 AM Pete Whelpton <peedee...@gmail.com> wrote:

>
> Hi Peter,
>
> I was able to configure a workaround.  Hopefully this will work for you. :)
>
> The problem appears to be that NetBeans SASS support was written for the
> original Ruby SASS implementation.  The root cause is that
> the ide/css.prep/src/org/netbeans/modules/css/prep/sass/SassExecutable.java
> class contains two parameters that are not in the current SASS
> implementations (dart-sass, libsass, npm sass etc.): --cache-location &
> --debug-log, and one parameter that has been renamed: --sourcemap (to
> --source-map)
>
> However, whilst snooping around the NB code, I discovered that there is
> already a (experimental?) class in NetBeans to work with libsass
> implementations.  It will ignore parameters set in the NetBeans Options (so
> it will always generate sourcemaps), but was able to compile SASS using the
> NB11.0 and dart-sass 1.20.1
>
> Here's the steps:
>
> 1) Install dart-sass from https://github.com/sass/dart-sass/releases/
>
> 2) Open your netbeans.conf file (/etc/netbeans.conf in the NB installation
> folder)
>
> 3) Add the following to the netbeans_default_options
> parameter: -J-Dnb.sass.libsass=true
>
> 4) Launch Netbeans, Tools -> Options -> HTML5/JS -> CSS PreProcessors and
> configure it to point to the sass.bat file in your dart-sass installation
> folder
>
>
> I've only tested with some basic stuff, but what I tested worked.
>
>
> P
>
> On Mon, May 6, 2019 at 11:50 PM Peter Haworth <lcsqlp...@gmail.com> wrote:
>
>> Just getting started setting up Netbeans to compile sass files. Loaded
>> the sass compiler and set all the preferences including the one to compile
>> on save.. First time I try to compile, I get an error "Could not find an
>> option named "cache-location".  Any suggestions?
>> *Sent with Shift
>> <https://tryshift.com/?utm_source=SentWithShift&utm_campaign=Sent%20with%20Shift%20Signature&utm_medium=Email%20Signature&utm_content=General%20Email%20Group>*
>>
>

Reply via email to