This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228722 - "SASS: Mapping must be set" shown when not appropriate
Summary: "SASS: Mapping must be set" shown when not appropriate
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-18 20:39 UTC by David Konecny
Modified: 2013-05-28 14:15 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Konecny 2013-04-18 20:39:14 UTC
Just for record:

I tried the latest build and even on blank HTML5 project if I open project properties and go to "CSS Preprocessors" I'm given error "SASS: Mapping must be set". That's wrong but I assume you have not finished this part yet.
Comment 1 Petr Jiricka 2013-04-22 08:43:35 UTC
Highly visible, noticed by NetCAT people => P2.
Comment 2 Petr Jiricka 2013-04-22 11:43:15 UTC
One nasty sideeffect is that if you go to the CSS Preprocessors category, then Ok button of the entire customizer is disabled. So if you make any changes unrelated to CSS Preprocessors, you can not save them.
Comment 3 Tomas Mysik 2013-04-23 13:06:13 UTC
Fixed.

http://hg.netbeans.org/web-main/rev/ccf4e47fd584
Comment 4 Quality Engineering 2013-04-24 02:13:58 UTC
Integrated into 'main-golden', will be available in build *201304232301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ccf4e47fd584
User: Tomas Mysik <tmysik@netbeans.org>
Log: #228722 - "SASS: Mapping must be set" shown when not appropriate
Comment 5 Petr Jiricka 2013-04-24 14:20:59 UTC
The behavior is still not completely correct, e.g. in this scenario:

1. Open this project with contains a SCSS file, but not a LESS file:
http://wiki.netbeans.org/wiki/images/e/ee/SourceMapsExample.tar.gz
2. Go to project properties and set output path for SASS, e.g. .:.

=> The dialog still says "LESS: CSS output folders must be set." That's not expected, as I am not interested in LESS. 

One workaround is to disable LESS in the project properties, but that's obtrusive - we should not bother the user about a technology the user is not interested in. Also it's inconsistent with the project-level warning - that is also shown only if the project contains some LESS files, so the warning in project properties should behave consistently.
Comment 6 Tomas Mysik 2013-05-27 11:49:22 UTC
Done. But please notice that due to issue #228645, sometimes incorrect file count is returned. I have added logging for it, start NB with [1] to check the number of returned Sass/LESS files for the given project.

Thanks.
[1] -J-Dorg.netbeans.modules.css.prep.util.level=FINE

http://hg.netbeans.org/web-main/rev/540edd7ed089
Comment 7 Quality Engineering 2013-05-28 14:15:48 UTC
Integrated into 'main-golden', will be available in build *201305281155* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/540edd7ed089
User: Tomas Mysik <tmysik@netbeans.org>
Log: #228722 - "SASS: Mapping must be set" shown when not appropriate