[ 
https://issues.apache.org/jira/browse/NETBEANS-3973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17098097#comment-17098097
 ] 

Michel Graciano commented on NETBEANS-3973:
-------------------------------------------

I am investigating this issue and just found a workaround. If you disable 'Wrap 
After Lambda Arrow' it works as expected.

 

!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-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to