]> git.donarmstrong.com Git - perltidy.git/blob - BUGS
New upstream release (closes: #613417)
[perltidy.git] / BUGS
1 Perltidy open BUGS
2     You can help perltidy evolve into a better program. If you think you
3     have hit a bug or weird behavior, or have a suggested improvement,
4     please send a note to perltidy at users.sourceforge.net.
5
6     This file only lists open bugs. For bugs which have been fixed, see the
7     ChangeLog.
8
9   The --extrude option can produce code with syntax errors
10     The --extrude tries to put as many newlines in the formatted code as
11     possible. This option is very useful for testing perltidy but not for
12     actual formatting. Occasionally it will produce code which Perl
13     considers to have a syntax error. These problems usually involve code
14     where Perl is having to guess the tokenization based on whitespace.
15     Since the --extrude option is typically only used for testing perltidy,
16     this type of error should not normally occur in practice.
17
18   In some rare instances the formatting can oscillate between two states
19     The following example was sent by Denis Moskowitz, Oct 29 2010:
20
21     grep { $_->foo ne 'bar' } # asdfa asdf asdf asdf asdf asdf asdf asdf
22     asdf asdf asdf @baz;
23
24     With standard parameters this oscillates between the above and:
25
26     grep { $_->foo ne 'bar' } # asdfa asdf asdf asdf asdf asdf asdf asdf
27     asdf asdf asdf @baz;
28
29     A workaround here would be to make a slight change to the side comment
30     length.
31