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.
Please, be sure that you use new templates from issue #171533 (currently fixed locally, will push tomorrow). These templates are incorrect: elif: if (condition) { }"elif" + TAB here -> "elseif" is on a new line, not on this line swi: switch ($variable) { case value: // <- cursor at incorrect position break; default: break; } tryc: try { } catch (Exception $exc) { // <- incorrect formatting ("catch" should be on the same line with "}") } Product Version: NetBeans IDE Dev (Build 090917) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 System: Linux version 2.6.28-15-generic running on amd64; UTF-8; cs_CZ (nb)
moving user case from 173906 that doesn't belong to 173906 here code: <?php try { } catch(Exception $e) { } ?> is formatted like: <?php try { } catch(Exception $e) { } ?>
Fixed all the use cases except the 'switch' template, which has a different nature. A clean fix would probably involve a change in the AST parser. I would consider to add ; to the template instead. Downgrading back to P3 http://hg.netbeans.org/web-main/rev/cc849368204b
Integrated into 'main-golden', will be available in build *200910280201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/cc849368204b User: Tomasz Slota <tslota@netbeans.org> Log: #172475: Some templates incorrectly formatted/indented
Integrated into 'main-golden', will be available in build *200910300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/d2ddb5603afb User: Filip Zamboj <fzamboj@netbeans.org> Log: qa #173906 and #172475 are stable now
ppisl is the new owner of formatting/indentation area
Still the problem with the switch template.
Reproducible in NB 7.0 as well (the switch template)
Still reproducible
Most cases fixed -> P4.