[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-22 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-6083:


Well, it's another problem, I think. So, please report it as a new issue. 
Thanks.

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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



[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-21 Thread frkinta (Jira)


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

frkinta commented on NETBEANS-6083:
---

I see.

In the previous example, when caret is after namespace line, nothing happen. 
But before namespace line a dialog is opened and statements shifted

_using netbeans12.5_

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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



[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-21 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-6083:


Duplicate: https://issues.apache.org/jira/browse/NETBEANS-4978

I'll close this as a Duplicate later.

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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



[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-21 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-6083:


Thanks. Maybe, the cause is not a docblock comment but the caret position.

Please try to do it when the caret is after a namespace name.

I'm working on this problem.

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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



[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-21 Thread frkinta (Jira)


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

frkinta commented on NETBEANS-6083:
---

*Class1.php*
{code:php}
https://www.php-fig.org/psr/psr-12/] and fix 
import

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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



[jira] [Commented] (NETBEANS-6083) Fix Imports move use statement before namespace and file-level docblock

2021-10-20 Thread Junichi Yamamoto (Jira)


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

Junichi Yamamoto commented on NETBEANS-6083:


[~frkinta] Could you also write an example code?

> Fix Imports move use statement before namespace and file-level docblock
> ---
>
> Key: NETBEANS-6083
> URL: https://issues.apache.org/jira/browse/NETBEANS-6083
> Project: NetBeans
>  Issue Type: Bug
>  Components: php - Editor
>Affects Versions: 12.4, 12.5
>Reporter: frkinta
>Priority: Minor
> Attachments: fix_import.gif
>
>
> As you can see in the video,  when I first hit _{{"Ctrl+Shift-I}}"_, all 
> 'Exception' class  of the project are not listed in dropdown.
> Then, when I hit again _{{"Ctrl+Shift-I}}"_  after file-level docblock added, 
> all 'Exception' class of the project are listed except the PHP core Exception 
> class. After validation, all use statements are moved to the top of the file 
> and previously imported 'Exception' class disappear



--
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