You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "frkinta (Jira)" <ji...@apache.org> on 2021/11/12 14:38:00 UTC

[jira] [Commented] (NETBEANS-6194) Renaming folder inside PSR-4 directory don't use refactor feature

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

frkinta commented on NETBEANS-6194:
-----------------------------------

just found something similar
[https://blog.jetbrains.com/phpstorm/2017/05/renaming-a-psr-namespace-directory-in-phpstorm-2017-1/|https://blog.jetbrains.com/phpstorm/2017/05/renaming-a-psr-namespace-directory-in-phpstorm-2017-1/]

> Renaming folder inside PSR-4 directory don't use refactor feature
> -----------------------------------------------------------------
>
>                 Key: NETBEANS-6194
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-6194
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Editor, php - Refactoring
>    Affects Versions: 12.4, 12.5
>            Reporter: frkinta
>            Priority: Minor
>
> {code:php}
> <?php
> declare(strict_types=1);
> namespace Issue\PDO;
> class ClassTest
> {
>     public function __construct(string $a)
>     {
>         error_log($a);
>     }
>     public function doNothingAction(): Class2
>     {
>         throw new \Exception('nothing to do');
>     }
> }
> {code}
> The code above is a file inside a PSR-4 project located in directory "src/PDO". If I try to rename the folder "PDO" to "MySQL", a refactor dialog open, "PDO" is changed to new name and nothing else happen ("Rename Without Refactoring" checkbox not checked).
> What I expect is the refactoring feature to
>  * change namespaces all over the project from "Issue\PDO" to "Issue\MySQL"
>  * adjust "use" statements
> after renaming "PDO" to "MySQL".



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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