You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by "Eugene-Melbourne (via GitHub)" <gi...@apache.org> on 2023/06/14 05:13:03 UTC

[GitHub] [netbeans] Eugene-Melbourne opened a new issue, #6074: Formating of "match" expression same as arrays

Eugene-Melbourne opened a new issue, #6074:
URL: https://github.com/apache/netbeans/issues/6074

   ### Apache NetBeans version
   
   Apache NetBeans 18
   
   ### What happened
   
   when you formatting PHP code, the match expression is being formatted 
   
   ```
   match ($type) {
           'integer' => 'a',
           'string' => 'b',
           default => null,
       };
   ```
       
   I think it should be formatted like this
   
   ```
   match ($type) {
           'integer' => 'a',
           'string'  => 'b',
           default   => null,
       };
   ```
   
   ### How to reproduce
   
   alt + shift + f
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Windows 10 version 10.0 running on amd64; UTF-8; en_AU (nb)
   
   ### JDK
   
   19.0.1; Java HotSpot(TM) 64-Bit Server VM 19.0.1+10-21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] KacerCZ commented on issue #6074: Formating of "match" expression same as arrays in PHP

Posted by "KacerCZ (via GitHub)" <gi...@apache.org>.
KacerCZ commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-1592501760

   @Eugene-Melbourne Yes, this is feature request, so I changed labels.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [I] Formating of "match" expression same as arrays in PHP [netbeans]

Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-2154092069

   just for the record, the new configuration can be found like this 
   `Alignment > Group Multiline Alignment >Match Arm Arrow`
   It is working fine


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] KacerCZ commented on issue #6074: Formating of "match" expression same as arrays in PHP

Posted by "KacerCZ (via GitHub)" <gi...@apache.org>.
KacerCZ commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-1591802204

   Formatting of array is configured by option under Alignment > Group Multiline Alignment > Array Initializer.
   Formatting of `match` should have individual option.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [I] Formating of "match" expression same as arrays in PHP [netbeans]

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 closed issue #6074: Formating of "match" expression same as arrays in PHP
URL: https://github.com/apache/netbeans/issues/6074


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [I] Formating of "match" expression same as arrays in PHP [netbeans]

Posted by "terax6669 (via GitHub)" <gi...@apache.org>.
terax6669 commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-1816751554

   @junichi11 Nothing happened for almost half a year. Can we add this to a milestone?
   
   Also, is there a checklist for adding support for a new language feature? This should've been part of 8.0 support.
   If there is no such checklist may I suggest one be created to avoid such overlooks?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] Eugene-Melbourne commented on issue #6074: Formating of "match" expression same as arrays in PHP

Posted by "Eugene-Melbourne (via GitHub)" <gi...@apache.org>.
Eugene-Melbourne commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-1592116980

   @KacerCZ , yes, sorry, I was clear enough. I meant to say that the same way as formatting for `array `has an option, there should be an option for `match`. Would you like me to change the initial post/header?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


Re: [I] Formating of "match" expression same as arrays in PHP [netbeans]

Posted by "junichi11 (via GitHub)" <gi...@apache.org>.
junichi11 commented on issue #6074:
URL: https://github.com/apache/netbeans/issues/6074#issuecomment-1817289867

   > Nothing happened for almost half a year. Can we add this to a milestone?
   
   I'll work on it when I have time although I can't promise anything. Maybe, it will take some time, I guess.
   I have more important issue than this. It's PHP 8.3 support.
   
   > This should've been part of 8.0 support.
   
   No, This is not a required feature. It's an additional feature. (Normal formatting feature should work fine.)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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