how to use RBClassRegexRefactoring in Pharo 2 ?
Hi- In Nautilus when I try to use the 'Class Regex' menu item in Pharo 2 20605 I get an error that RBRegexClassRefactoring is an existing class in the system. In earlier Pharo versions you would select that menu item, make your changes, save them and then the refactoring would run. How do you do it now? Thanks Paul
On 2013-06-27, at 20:36, Paul DeBruicker <pdebruic@gmail.com> wrote:
In Nautilus when I try to use the 'Class Regex' menu item in Pharo 2 20605 I get an error that RBRegexClassRefactoring is an existing class in the system. In earlier Pharo versions you would select that menu item, make your changes, save them and then the refactoring would run. How do you do it now?
Where do you have this menu? I couldn't find it in Nautilus :/
On 06/27/2013 02:38 PM, Camillo Bruni wrote:
On 2013-06-27, at 20:36, Paul DeBruicker <pdebruic@gmail.com> wrote:
In Nautilus when I try to use the 'Class Regex' menu item in Pharo 2 20605 I get an error that RBRegexClassRefactoring is an existing class in the system. In earlier Pharo versions you would select that menu item, make your changes, save them and then the refactoring would run. How do you do it now?
Where do you have this menu? I couldn't find it in Nautilus :/
Ahh. Right click on a class name in the class list pane, then choose Refactoring > Code Rewriting > Class Regex
On 2013-06-27, at 23:45, Paul DeBruicker <pdebruic@gmail.com> wrote:
On 06/27/2013 02:38 PM, Camillo Bruni wrote:
On 2013-06-27, at 20:36, Paul DeBruicker <pdebruic@gmail.com> wrote:
In Nautilus when I try to use the 'Class Regex' menu item in Pharo 2 20605 I get an error that RBRegexClassRefactoring is an existing class in the system. In earlier Pharo versions you would select that menu item, make your changes, save them and then the refactoring would run. How do you do it now?
Where do you have this menu? I couldn't find it in Nautilus :/
Ahh. Right click on a class name in the class list pane, then choose
Refactoring > Code Rewriting > Class Regex
Ok, better, now I can reproduce it :), However I don't think this will be fixed in 2.0, sorry. That is a too "exotic" feature. Currently 2.0 is in stable mode, so we do as little changes to that system as possible, mainly "real"/"big" bugs (highly subjective ;)) I'll open a bug report for 3.0 though https://pharo.fogbugz.com/default.asp?11052 thanks for reporting
On 06/27/2013 02:52 PM, Camillo Bruni wrote:
On 2013-06-27, at 23:45, Paul DeBruicker <pdebruic@gmail.com> wrote:
On 06/27/2013 02:38 PM, Camillo Bruni wrote:
On 2013-06-27, at 20:36, Paul DeBruicker <pdebruic@gmail.com> wrote:
In Nautilus when I try to use the 'Class Regex' menu item in Pharo 2 20605 I get an error that RBRegexClassRefactoring is an existing class in the system. In earlier Pharo versions you would select that menu item, make your changes, save them and then the refactoring would run. How do you do it now?
Where do you have this menu? I couldn't find it in Nautilus :/
Ahh. Right click on a class name in the class list pane, then choose
Refactoring > Code Rewriting > Class Regex
Ok, better, now I can reproduce it :),
However I don't think this will be fixed in 2.0, sorry. That is a too "exotic" feature. Currently 2.0 is in stable mode, so we do as little changes to that system as possible, mainly "real"/"big" bugs (highly subjective ;))
I'll open a bug report for 3.0 though
https://pharo.fogbugz.com/default.asp?11052
thanks for reporting
Its a Nautilus bug and not with the RB stuff. You can run the RB rule in a workspace like so: rule:=RBClassRegexRefactoring new. rule renameClasses; replace: '^SH(.*)$' with: 'Shout$1' ignoreCase: false; yourself. rule execute. There is probably a way to see what it'll do before it actually modifies things too.
participants (2)
-
Camillo Bruni -
Paul DeBruicker