Skip to content

"Parent" SCSS no longer recompiled to CSS when editing @use'd sub-scss #9288

@JeroenNX

Description

@JeroenNX

Apache NetBeans version

Apache NetBeans 29

What happened

In NetBeans 27 (and many previous versions), when making and saving a change to /scss/base/_reset.scss, /css/main.css (based on /scss/main.scss) automatically gets recompiled, because main.scss @use's base/reset.
In NetBeans 28 this functionality was broken, which is why I had to keep using 27.
Now many months later, I gave 29 a try, and unfortunately still the same, not working anymore.
So still have to use 27.

In both 28 and 29, when making a change to blah.scss, it still recompiles to blah.css, but making a change to _blah.scss that is @use'd by another .scss file, no longer recompiles that scss file to css.

Language / Project Type / NetBeans Component

scss

How to reproduce

  • Setup a CSS preprocessor, for example dart-sass
  • Enable 'Compile Sass Files on Save' for Sass
  • Add the scss folder (input) to watch-settings, with css folder as output
  • In the scss folder, create a main.scss with contents: '@use "base/reset";'
  • In the scss folder, create a subfolder 'base' with a file '_reset.scss';
  • Add/change some CSS in _reset.scss => this should trigger a recompile of scss/main.scss to /css/main.css (works in 27, does not in 28/29)

Did this work correctly in an earlier version?

Apache NetBeans 27

Operating System

Windows 11 25H2

JDK

openjdk 26 2026-03-17

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

Same problem with various version of openjdk and dart-sass, only difference: NetBeans 27 vs 28/29.

Are you willing to submit a pull request?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugBug report or fixneeds:triageRequires attention from one of the committers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions