You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Michel Graciano (Jira)" <ji...@apache.org> on 2020/05/02 20:53:00 UTC

[jira] [Updated] (NETBEANS-3973) Code auto formatting for lambda arrows

     [ https://issues.apache.org/jira/browse/NETBEANS-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michel Graciano updated NETBEANS-3973:
--------------------------------------
    Attachment: image-2020-05-02-17-52-49-898.png

> Code auto formatting for lambda arrows
> --------------------------------------
>
>                 Key: NETBEANS-3973
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3973
>             Project: NetBeans
>          Issue Type: Bug
>          Components: java - Editor
>    Affects Versions: 11.3
>         Environment: Arch Linux and the included "jdk11-openjdk" package, official NB 11.3 bin download
>            Reporter: Bernd Michaely
>            Priority: Major
>         Attachments: image-2020-05-02-17-52-49-898.png
>
>
> Since NB 11.3, code auto formatting for lambda errors is broken. NB adds an additional space before the lambda arrow. To reproduce the problem choose
> Menu Tools -> Options -> Editor -> Formatting ->
> Language: Java
> Category: Wrapping ->
> - "Lambda Arrow" : Never
> - Check "Wrap After Lambda Arrow"
> Category: Spaces -> Around Operators
> -> "Lambda Arrow" unchecked:
> {{11.2: BinaryOperator plus = (a, b)->a+b;}}
> {{11.3: BinaryOperator plus = (a, b)_->a+b;}}{{}}
> -> or "Lambda Arrow" checked:
> {{11.2: BinaryOperator plus = (a, b) -> a+b;}}
> {{11.2: BinaryOperator plus = (a, b)_ -> a+b;}}{{}}
> ... the underscore chars indicating the additional space char.
> Note, that the additional space only appears, if "Wrap After Lambda Arrow" is checked.
> (This problem causes a lot of noise in Diff and VCS for existing code, so this is pretty annoying and currently prevents me from upgrading to NB 11.3)
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists