Hi guys, How can I collect a list of methods with undefined classes in its source? Example: Iâve recently saw that Comanche http server had a package that wonât load in Pharo 3 because is using FileDirectory. Comanche now loads alright after a patch but.. Instead of iterating lazily this kind of problem in other packages, I would like to make a script that lists all this kind of cases in a given package. BTW a script like this would help to anticipate potential problems to other developers porting a product to Pharo When inspecting one of this methods Iâve sent #recompile to see if it raises an exception but it isnât. How can I perceive, using code, that a compiled method has this kind of problem? sebastian o/
sebastian@flowingconcept.com wrote
How can I collect a list of methods with undefined classes in its source?
Try the Critics Browser. I simulated by creating a method that referenced a class that I subsequently deleted, and the "Variable used, but not defined anywhere" rule caught it. ----- Cheers, Sean -- View this message in context: http://forum.world.st/List-methods-with-problematic-source-tp4744083p4744168... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
awesome! thanks Sean sebastian o/
On 16/02/2014, at 16:47, "Sean P. DeNigris" <sean@clipperadams.com> wrote:
sebastian@flowingconcept.com wrote
How can I collect a list of methods with undefined classes in its source?
Try the Critics Browser. I simulated by creating a method that referenced a class that I subsequently deleted, and the "Variable used, but not defined anywhere" rule caught it.
----- Cheers, Sean -- View this message in context: http://forum.world.st/List-methods-with-problematic-source-tp4744083p4744168... Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
participants (2)
-
Sean P. DeNigris -
Sebastian Sastre