pharo-ide/Calypso

Debugger instead of dialog when extracting a method

jecisc opened this issue · 3 comments

If you try to extract a method that cannot be extracted, you currently will get a debugger instead of a dialog explaining the problem.

To reproduce add this method:

aMethod
	|  test |
	test := 1.
	1 to: 10 do: [ test := 2 ].
	test := 4.
	self flag: #todo.

Then try to extract

1 to: 10 do: [ test := 2 ].
	test := 4.
	self flag: #todo.

@tesonep

The error is still present in the latest calypso with latest Commander.
The execution of the refactorings is completly different in this scenario.