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 230445 - Changes in CSS preprocessors workflow
Summary: Changes in CSS preprocessors workflow
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Project (show other bugs)
Version: 7.4
Hardware: PC All
: P2 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-29 11:11 UTC by Tomas Mysik
Modified: 2013-05-31 04:29 UTC (History)
4 users (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 Tomas Mysik 2013-05-29 11:11:08 UTC
In this issue, I would like to summarize changes that I plan to do based on our e-mail communication. Please, correct me if there is something wrong or missing.

- by default, compilation will be off
- we will provide default mappings ("/sass" and "/less" for Input, "/css" for Output)
- if user saves any Sass/LESS file and project is not configured yet, we will ask him -> if Yes, Project Propeties panel will be opened. [1]

BTW it seems to me that we no longer need checking Sass/LESS file count, I will remove it. We will simply follow checked/unchecked compilation checkbox for the given project.

Thanks.
[1] One note - if the "Compile" option will be checked (as suggested in Liza's e-mail), what does it mean exactly? If user clicks Cancel, is the compilation enabled or disabled?
Comment 1 Tomas Mysik 2013-05-29 11:15:25 UTC
One more thing:

- missing or incorrect mapping is an error, not a warning as it is now.
Comment 2 Tomas Mysik 2013-05-30 05:30:34 UTC
(In reply to comment #0)
> [1] One note - if the "Compile" option will be checked (as suggested in Liza's
> e-mail), what does it mean exactly? If user clicks Cancel, is the compilation
> enabled or disabled?

It must stay enabled, otherwise it is not doable (from code, we can only open Project Properties, we cannot prefill any dialog data easily; so we first update the project configuration itself and then open Project Properties dialog). Davide, correct me if I am wrong (but please notice that I would like to avoid using ugly hacks :)

Thanks.
Comment 3 Tomas Mysik 2013-05-30 10:04:59 UTC
All the items should be done now, I hope. Please verify it and let me know if you find any problem.

Thanks.

http://hg.netbeans.org/web-main/rev/596cd38fe1c4
Comment 4 Tomas Mysik 2013-05-30 10:13:13 UTC
One note - unfortunately, currently it is not possible to open Project Properties with LESS configuration selected (API allows to select only category but not a component in the panel). Please, submit a new issue if it is a problem, I will look at it.

Thanks.
Comment 5 Tomas Mysik 2013-05-30 11:53:34 UTC
One more note - New File wizard for Sass/LESS files currently contains the same panel as Project Properties; if one uses it, it means that the configuration of the preprocessor is _done_ so no popup dialog will show when saving Sass/LESS files later.

Thanks.
Comment 6 David Konecny 2013-05-30 23:21:32 UTC
(In reply to comment #2)
> > [1] One note - if the "Compile" option will be checked
> 
> It must stay enabled, otherwise it is not doable (from code, we can only open
> Project Properties, we cannot prefill any dialog data easily; so we first

I was not sure what you meant by this before. You could also just open project properties and let user do all the configuration themselves.

(In reply to comment #5)
> One more note - New File wizard for Sass/LESS files currently contains the same
> panel as Project Properties; if one uses it, it means that the configuration of
> the preprocessor is _done_ so no popup dialog will show when saving Sass/LESS
> files later.

That's correct.
Comment 7 Quality Engineering 2013-05-31 01:23:36 UTC
Integrated into 'main-golden', will be available in build *201305302301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/596cd38fe1c4
User: Tomas Mysik <tmysik@netbeans.org>
Log: #230445 - Changes in CSS preprocessors workflow
Comment 8 Tomas Mysik 2013-05-31 04:29:22 UTC
(In reply to comment #6)
> I was not sure what you meant by this before. You could also just open project
> properties and let user do all the configuration themselves.

This is based on Liza's e-mail:

> If she says Yes, we open Project Properties with the "Compile" option checked so she can configure the output map and, if necessary, check the executable.

Thanks.