pharo icon indicating copy to clipboard operation
pharo copied to clipboard

ExtractTempDriver

Open SandraSamardzic opened this issue 1 year ago • 6 comments

Creating an interaction driver for RBExtractToTemporaryRefactoring

SandraSamardzic avatar Sep 27 '24 00:09 SandraSamardzic

Thanks a lot!

Ducasse avatar Sep 29 '24 07:09 Ducasse

I will try to find some time to have a look.

Ducasse avatar Sep 29 '24 07:09 Ducasse

Okay, thank you @Ducasse, I appreciate it.

SandraSamardzic avatar Sep 29 '24 20:09 SandraSamardzic

I deleted the dialog related to the selector as you suggested @balsa-sarenac , before I didn't consider that there might not be a need for it, my mistake. If @Ducasse thinks otherwise, it's not a problem for me to add it again and change it so that it's an optional dialog.

SandraSamardzic avatar Oct 05 '24 19:10 SandraSamardzic

nearly there!

Ducasse avatar Oct 18 '24 14:10 Ducasse

testFailureInvalidVariableNameWhenVariableIsAlreadyTemporary is failing

Ducasse avatar Oct 18 '24 14:10 Ducasse

I could also integrate and skip that test. Let me know

Ducasse avatar Oct 20 '24 09:10 Ducasse

@Ducasse the dialog is not working very well, so my focus is on that now. I will let you know when I fix the dialog so you can integrate it then we will see what is wrong with the tests

SandraSamardzic avatar Oct 20 '24 10:10 SandraSamardzic

Super. Keep us up to date.

Ducasse avatar Oct 21 '24 14:10 Ducasse

Hello do you have some update?

Ducasse avatar Nov 03 '24 16:11 Ducasse

Hello @Ducasse, unfortunately I have been caught up with other commitments, which has slowed down my pace. Thankfully, these other obligations are getting resolved, and I hope that I will fix the dialog by Thursday. I apologize to keep you waiting.

SandraSamardzic avatar Nov 04 '24 02:11 SandraSamardzic

I am sorry @Ducasse , I still haven't been able to fix the problems. There are two problems :

  • no error message is printed in the dialog when the precondition is not met,
  • refactoring does not make any changes.

It is possible that there are some other mistakes that I did not see. I don't do well with the presenter, not sure if the presenter is the problem or runRefactoring method. I will contact @balsa-sarenac , if he has time to take a look at the problems, maybe I should change the approach to the dialog. Again, apologies for the slow work.

SandraSamardzic avatar Nov 07 '24 20:11 SandraSamardzic

Ok no problem. What is the problem? Because may be we can merge and fix the rest in another PR?

Ducasse avatar Nov 09 '24 21:11 Ducasse

Maybe it is possible, but I am not sure how big the problems are @Ducasse. When the refactoring is started, a dialog appears, which is created using the presenter class, if the precondition is not met, an error message should be displayed in the dialog, I set the error message to a label in the presenter but I am not sure how to print it. This is the first problem, the second problem is when the correct variable is entered and the refactoring should happen there are no changes, the variable should be created and have the value of the selected interval but that is not the case, I don't know why.

SandraSamardzic avatar Nov 11 '24 04:11 SandraSamardzic

Ok @balsa-sarenac do you have some cycles for this? Else we can integrate it and see later because I'm afraid that further changes will impact it.

Ducasse avatar Nov 22 '24 12:11 Ducasse

@balsa-sarenac when I integrated this PR it broke the build

Error: Package Refactoring-UI depends on the following classes: RBInteractionDriver You must resolve these dependencies before you will be able to load these definitions: ReExtractToTemporaryDriver ReExtractToTemporaryDriver>>#changes

I will add RBInteractionDriver to be able to load it.

Ducasse avatar Nov 26 '24 12:11 Ducasse