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 196368 - Failure to detect line-breaks in arrays when formatting function calls.
Summary: Failure to detect line-breaks in arrays when formatting function calls.
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
: 202556 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-06 14:41 UTC by marcusson
Modified: 2016-09-23 10:29 UTC (History)
2 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 marcusson 2011-03-06 14:41:16 UTC
Formatting a multi-row function call like this:

foo(
    'test',
    array(
        'test',
        'test'
    ),
    'test'
);

Using the dev-version of March 6th I get an invalid indentation:

foo(
    'test', array(
    'test',
    'test'
    ), 'test'
);

Expected:

foo(
    'test', array('test', 'test'), 'test'
);

This is esp. causing issues when formatting a whole file, where you won't check for every single line.
Comment 1 Petr Pisl 2011-09-29 15:21:26 UTC
The array formatting is now broken more.
Comment 2 Ondrej Brejla 2011-10-27 08:42:47 UTC
Still reproducible
Comment 3 marcusson 2012-02-08 14:15:43 UTC
Still reproducible in Netbeans 7.2 Dev 20120118601
Comment 4 Ondrej Brejla 2013-06-04 13:13:20 UTC
Still broken.

Product Version: NetBeans IDE Dev (Build 20130604-31cd1883d6b1)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.8.0-22-generic running on i386; UTF-8; cs_CZ (nb)
Comment 5 Ondrej Brejla 2013-06-19 11:37:55 UTC
*** Bug 202556 has been marked as a duplicate of this bug. ***