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.
I have the formatter configured to put the starting bracket on the same line after an 'if' statement. Given the code: if ($test = true) // comment { echo 'foo'; } the formatter produces: if ($test = true) // comment { echo 'foo'; } resulting in a syntax error.
reproducible Product Version: NetBeans IDE Dev (Build 100607-272cdc06fedb) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01
confirmed in FCS as well => 69_HR_FIX_CANDIDATE
Fixed in the web-main
Filipe, could you test it?
(In reply to comment #4) > Filipe, could you test it? sure, already updating build. will be done in a while.
Product Version: NetBeans IDE Dev (Build 100608-9161b6a57229) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 verified in trunk. can be ported to 69
Transplanted to release69 branch: http://hg.netbeans.org/release69/rev/3432e9f10c31
Integrated into 'main-golden', will be available in build *201006090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/33196f945b79 User: Petr Pisl <ppisl@netbeans.org> Log: #187264 - Formatter moves bracket inside the comment.
Product Version: NetBeans IDE 6.9 (Build 100609-a94d6a4a87fe) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 verified in release69 clone.
Added keyword 6.9.1_CANDIDATE to bugfixes, which were integrated in release69 repository *after* the release691 clone has been created.
Transplanted to release691 as ddc8c08c82b7
Works fine in the following 6.9.1 build: Product Version: NetBeans IDE 6.9.1 Dev (Build 201007062301) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)