Refactoring does not update reference to file after dragging files to different package
See original GitHub issue2.7.0
Steps to reproduce:
-
Import this project into Android Studio https://github.com/igorwojda/kotlin-coding-puzzle
-
Open
app/src/test/java/com/igorwojda/datastructure/linkedlist/base
in Project -
create new package
abc
like thisapp/src/test/java/com/igorwojda/datastructure/linkedlist/base/abc
-
Drag all files from
.../linkedlist/base
to newly cerated package.../linkedlist/abc
Result:
Reference in README.md
the file is not updated
1. [Linked list](app/src/test/java/com/igorwojda/datastructure/linkedlist/base/LinkedList.md)
Expected Result
Reference should be updated
1. [Linked list](app/src/test/java/com/igorwojda/datastructure/linkedlist/base/abc/LinkedList.md)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Java Class move refactoring does not change references to ...
If a single Java file is moved then no file references to the Java file will be updated causing broken links.
Read more >Auto update import paths and "move to a new file" refactoring ...
Import paths are not updated and it's not possible to refactor a class to a new file with a specific value of files...
Read more >IntelliJ IDEA 14 can't drag files to other packages
Right now my workaround is F6 (Refactor -> Move) and manually specifying the destination. intellij-idea · intellij-14.
Read more >Moving a Class to a Different Package - InformIT
If you want to place a class in a different package, you can use the IDE's refactoring features to move the class and...
Read more >8 Refactoring Oracle ADF Components
Moving to a different package, Class name in the managed bean definition in the corresponding configuration file. Deleting the Java class. No change...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@igorwojda, I agree creating a project is easy but it is not a real project and any markdown usage in it will reflect my pre-conceptions that I already use in IntelliJ. Real benefit for me is to see how users use the plugin in real projects.
If there is an annoyance or discomfort, there is a feature that can be used or needs minor tweaks to make it painless to use. In the extreme case there is a need for a new feature or configuration.
Many features without which I cannot work were originally requested by users. So I am always eager to hear user suggestions. It is an opportunity to learn something new for both involved.
@igorwojda, EAP update with a fix for the issue is available.
Installing EAP Plugin Version