Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6267

Dart-Sass 1.44, Apache-NetBeans 12.5, MacOS Monterey - does not recognise @use or @forward

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 12.5
    • None
    • None
    • MacOS Monterey

      Apache-NetBeans 12.5

      Dart-Sass 1.44

    Description

      I had NetBeans working fine and compiling on save with Dart-Sass using @includes.

      However, @include is deprecated in favour of @use and @forward.

      I installed Dart-Sass (per Dart site) by simply loading it down and adding to my MacOS Path then using terminal command "which sass" to get that path: /Applications/dart-sass/sass
      and add it to NetBeans css preprocessor.

      I get the issue (see attachment) every time I try @use or @forward.
      I tried removing NetBeans to start over, and re-installed it (no difference).
      To demonstrate the issue, I created the very simple project shown in the image.
      Inside the _fonts.scss is the simplest definition ...

      $font-size: 1.25rem;

      So, even at this simplest of levels, NetBeans doesn't seem to like @use (or @forward for that matter).

      I raised an issue on GitHub (#1566) and Dart-Sass folks say it isn't a Sass issue.

      Trouble is, as it stands, when using @use or @forward, the sass just won't compile.

      It may be the case that the NetBeans syntax checking has not caught up yet in which case, I'll gladly raise an enhancement request.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              CliffInAuldReekie Cliff Wallace
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: