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.
1. Create a HTML5 application 2. On the project root node, choose New File and select the Sass template => On the Name and Location panel, the IDE offers project root as the default location. At a minimum, it should default to site root (public_html). Next, there is the scss -> css mapping table, which by default contains mapping "/scss -> /css". This suggests that scss files should be placed under the scss directory. So it would make sense to use public_html/scss as the default location. For LESS files the situation is analogous.
Not sure if it is doable, I will look at it. Thanks.
Not nice solution but should work. Please verify, thanks. http://hg.netbeans.org/web-main/rev/a141abd14a32
Integrated into 'main-silver', will be available in build *201307302300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a141abd14a32 User: Tomas Mysik <tmysik@netbeans.org> Log: #233484 - Incorrect default folder for new scss files
Fix improved. http://hg.netbeans.org/web-main/rev/ea0650d45217
One question Tomas, why is the scss subfolder suggested only if it exists? Can we not preselect it even if it does not exist? That would IMO be the correct solution.
(In reply to comment #5) > One question Tomas, why is the scss subfolder suggested only if it exists? Can > we not preselect it even if it does not exist? That would IMO be the correct > solution. Unfortunately not, the API uses FileObjects, not Files.
Ok I see - well that's not nice. An ugly solution could be to create create the folder, but a better way would be to enhance the API so it accepts a File. Can we please file an issue for that? I am reopening as this issue is not fully addressed - I understand that we may not be able to fix this for 7.4, but let's still leave it open, as I feel this should be addressed at some point. Anyway, thanks for the partial fix, Tomas.
(In reply to comment #7) > An ugly solution could be to create create the > folder This does not work if user click the Cancel button - the folder will stay there... > but a better way would be to enhance the API so it accepts a File. Can > we please file an issue for that? Reported as issue #233764. > I am reopening as this issue is not fully addressed - I understand that we may > not be able to fix this for 7.4, but let's still leave it open, as I feel this > should be addressed at some point. Anyway, thanks for the partial fix, Tomas. Since we cannot do anything more (there P4 would be perhaps better here), changing TM to Next. Thanks.
Thanks, I agree with P4.
Integrated into 'main-silver', will be available in build *201308012300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/ea0650d45217 User: Tomas Mysik <tmysik@netbeans.org> Log: #233484 cont'd - Incorrect default folder for new scss files New API used.