Oh, thatâs an interesting use case. Itâs not easy no make predictions further in stack so by default it is assumed that the change should happen in the method that has called the deprecated one. In fact usually this should help with the method deprecation, and in the particular case we are dealing with a class deprecation hacked as a method deprecation :) But itâs good that now I know more use cases ;) Uko
On 21 Mar 2016, at 14:56, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Ah okay! But how does the system resolve it ? I mean, the class RTLabelled does not refer to RTLabeled. So, what is the magic behind your tool?
I found an interesting situation. Look at this:
<Screen Shot 2016-03-21 at 10.53.09 AM.png> Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Mar 21, 2016, at 10:19 AM, Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>> wrote:
Hi Alex,
this is not about criticsâ¦
If you have a method like
labeledObject ^ RTLabelled new
in the latest roassal image and you will execute it, you will get a debugger deprecation warning with an option to fix that.
Cheers. Uko
On 21 Mar 2016, at 14:07, Alexandre Bergel <alexandre.bergel@me.com <mailto:alexandre.bergel@me.com>> wrote:
Hi!
I cannot figure out what I should expect after loading DeprecationAssistant. I have loaded it and created a method: -=-=-=-=-=-=-=-=-= foo self deprecated: 'use bar insteadâ -=-=-=-=-=-=-=-=-=
Is there anything that should be displayed in the critic list?
Alexandre -- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu <http://www.bergel.eu/> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
On Mar 21, 2016, at 9:59 AM, Yuriy Tymchuk <yuriy.tymchuk@me.com <mailto:yuriy.tymchuk@me.com>> wrote:
HI everyone,
last week Iâve created a little tool that automates deprecation resolution. The goal is to provide a help based on the existing code (no need for extra actions). You can read more here: http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.ht... <http://blog.yuriy.tymch.uk/2016/03/deprecationassistant-aiding-developers.ht...>
You can install and try it out with: Metacello new repository: 'github://Uko/DeprecationAssistant' <github://Uko/DeprecationAssistant'>; baseline: 'DeprecationAssistant'; load
This will add additional actions to the debugger once you will get a deprecation warning.
Have fun! Cheers. Uko