-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: move members #735
base: master
Are you sure you want to change the base?
Conversation
@klazuka can you please provide some comments on this? |
Hi @ishmum123, I have tested the feature and I got following exception, when I invoke Rename dialog:
|
Hi @pravdomil, let me get back to you after writing some tests for this... |
Hi @pravdomil, I checked locally and the dialog doesn't seem to throw an error. Would be really grateful if you could give me the re-generation steps. Also, do you have any tips on testing it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. It looks like you're going in the right direction. And I completely agree that basing it off of intellij-rust seems totally reasonable given undocumented APIs.
My main requirement would be that it generates code that compiles. So all imports and exposings should be fixed-up (which it looks like you do for many cases).
In terms of formatting, it's not as important to me that it looks perfect, although it would be nice if it preserved a sensible amount of blank lines between top-level declarations. The user can always invoke elm-format
in the currently-editing file, but that would miss changes in the file that you moved the declarations to. So I would pay special attention to how it inserts into the other file to make sure that it's reasonably clean.
import java.io.File | ||
import javax.swing.JComponent | ||
|
||
class RsMoveTopLevelItemsDialog( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix should be changed to Elm
import org.elm.lang.core.psi.elements.* | ||
import org.elm.lang.core.psi.moduleName | ||
|
||
class RsMoveTopLevelItemsProcessor( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefix and filename need to be changed to Elm
hmmm.mov |
@pravdomil sorry for the long pause. I was worried about the tests for this. Thanks for the video and I would definitely try to look into it, God willing. |
@klazuka this issue seems to be spawning cases like a hydra. I am not sure how much more time I can allocate for this. Would be really grateful if someone could take over from here |
@pravdomil seems to work on my machine now. Would be grateful if you could try again... |
at commit acc249c hmmm.mov |
I am very sorry... I keep getting this Screen.Recording.2021-02-26.at.6.47.48.AM.mov |
Can I close this issue, or is there still a chance the PR get shaped up for merge? |
I don't remember this ever being completely functional. |
thanks for chiming in! |
the same comment applies |
This is draft PR which aims to close #16 (eventually). The initial PR is just to ensure that this is going towards the correct direction.
Move.Members.mov