[Pharo-dev] DNU Create button auto extension category

Christopher Fuhrman christopher.fuhrman at inria.fr
Sat May 11 19:16:53 EDT 2019


I had opened an issue with Create in DNU some weeks ago that's related.
See  https://github.com/pharo-project/pharo/issues/3242

On Sat, 11 May 2019 at 23:06, Tim Mackinnon <tim at testit.works> wrote:

> It’s a good point Ben - in fact categorisation in general has not been
> finished in pharo7 - the move to Calypso lost smart method categories and
> its on the todo list to fix and improve it.
>
> Tim
>
> Sent from my iPhone
>
> > On 11 May 2019, at 18:07, Ben Coman <btc at openinworld.com> wrote:
> >
> > Currently when a DNU occurs we get this cool <Create> button,
> > but when this presents the dialog "New Protocol Name" I get a blank
> > list and the default is "as yet unclassified" and I end up with a heap
> > of such unclassified methods to sort later.
> >
> > I am wondering if it could be smarter when tests are being run.  A
> > reasonable assumption could be that the test's package name is closely
> > related to the likely extension package name.
> > So for a DNU, I wonder if the debugger could walk the stack to
> > discover if a TestCase subclass was on the stack (e.g. MyTestCase) and
> > then determine which package MyTestCase belonged to, and present that
> > as a choice for "New Protocol Name", helping categorize extension
> > methods.
> >
> > I've started to play like this...
> >
> > TestCase subclass: #MyTestRoot
> >
> > MyTestRoot >> runCase
> >    [ super runCase ]
> >        on: MessageNotUnderstood
> >        do: [ :ex |
> >              "do something here, but for now..."
> >               ex pass
> >               ].
> >
> > but before getting to deep, I'm seeking suggestions/solutions from the
> > community.
> >
> > cheers -ben
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20190512/2329a0de/attachment.html>


More information about the Pharo-dev mailing list