question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refactoring does not update reference to file after dragging files to different package

See original GitHub issue

2.7.0

Steps to reproduce:

  1. Import this project into Android Studio https://github.com/igorwojda/kotlin-coding-puzzle

  2. Open app/src/test/java/com/igorwojda/datastructure/linkedlist/base in Project

  3. create new package abc like this app/src/test/java/com/igorwojda/datastructure/linkedlist/base/abc

  4. 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:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
vschcommented, Dec 7, 2018

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

0reactions
vschcommented, Dec 15, 2018

@igorwojda, EAP update with a fix for the issue is available.

Installing EAP Plugin Version

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found