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.
Summary: | Twig auto-formatting errors | ||
---|---|---|---|
Product: | php | Reporter: | m_gol <m_gol> |
Component: | Twig | Assignee: | Ondrej Brejla <obrejla> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dextervip, Monomachus, vmattila, vriha, xlk |
Priority: | P3 | ||
Version: | 7.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
m_gol
2012-03-01 04:17:01 UTC
(In reply to comment #0) > What's the status of Twig support by the way? The plugin hasn't been updated > for 6 months now... The status is that the plugin from plugin portal was created by our community. And this plugin is now part of NetBeans (will be present in NB 7.2). Thanks for reporting. Still reproducible in Product Version: NetBeans IDE Dev (Build 20120903-b98711cc48ee) Java: 1.6.0_26; Java HotSpot(TM) Client VM 20.1-b02 System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; cs_CZ (nb) But Twig support doesn't have its own formatter, so it has to be implemeted. *** Bug 226870 has been marked as a duplicate of this bug. *** Any update? I am having problems in netbeans 7.3 final as it is in this example https://gist.github.com/dextervip/5062020 *** Bug 228332 has been marked as a duplicate of this bug. *** The main problem is that the HTML part is indented wrongly. I'll try to fix it. Fixed in web-main #930a1fbe5206 Html should be indented properly. Great! Is it available at nightly trunk now? Integrated into 'main-golden', will be available in build *201305222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/930a1fbe5206 User: Ondrej Brejla <obrejla@netbeans.org> Log: #209026 - Twig auto-formatting errors *** Bug 230239 has been marked as a duplicate of this bug. *** Issue not fixed in 7.3.1 (201306052037) Yes, that's why here is a target milestone set to 7.4. Is this fixed in 7.4? Does not seem to be fixed. This bug is still present in 7.4 Basic case was fixed in 7.4. But I rewrote it almost from scratch for 8.0. I get: {% block choice_widget_expanded -%} <div {{ block('widget_container_attributes') }}> {%- for child in form %} <div class="chooseOptionBox"> {{- form_widget(child) -}} {{- form_label(child) -}} </div> {% endfor -%} </div> {% endblock choice_widget_expanded %} instead of: {% block choice_widget_expanded -%} <div {{ block('widget_container_attributes') }}> {%- for child in form %} <div class="chooseOptionBox"> {{- form_widget(child) -}} {{- form_label(child) -}} </div> {% endfor -%} </div> {% endblock choice_widget_expanded %} (In reply to b1385616 from comment #16) > I get: > > {% block choice_widget_expanded -%} > <div {{ block('widget_container_attributes') }}> > {%- for child in form %} > <div class="chooseOptionBox"> > {{- form_widget(child) -}} > {{- form_label(child) -}} > </div> > {% endfor -%} > </div> > {% endblock choice_widget_expanded %} > > > instead of: > > {% block choice_widget_expanded -%} > <div {{ block('widget_container_attributes') }}> > {%- for child in form %} > <div class="chooseOptionBox"> > {{- form_widget(child) -}} > {{- form_label(child) -}} > </div> > {% endfor -%} > </div> > {% endblock choice_widget_expanded %} I have submitted this as a new issue[1]. [1] http://netbeans.org/bugzilla/show_bug.cgi?id=269423 Thanks. |