infinite loop in LanguageEditor

Yoshiki Ohshima yoshiki at squeakland.org
Sat May 13 22:02:37 UTC 2006


  Pascal,

> 1. Since the status bar message of LanguageEditor is still untranslated (at
> least in french), the (un)translated phrases lists are reinitialized each
> time the status bar is updated (ie. every 2 seconds). This is caused by
> NaturalLanguageTranslator>>translate: which re-registers the phrase each
> time, thus sending a NaturalLanguageTranslator>>changed:#untranslated which
> in turn triggers the reinitialization of LanguageEditor's UI.
> Because of that, it is impossible to select a phrase for translation for
> more than 2 seconds, unless we translate the status bar phrase at lightning
> speed.
> 
> 2. Even more nasty: if using a filter in the untranslated phrases panel, an
> infinite loop between NaturalLanguageTranslator>>translate: and
> LanguageEditor>>untranslated is triggered, because the former method tries
> to find the filter string in all unstranslated phrases *and their
> translations* (which do not exist, of course).

  Takashi is the best person to comment on these, but it looks these
are real bugs.  Nice catch.

> I think I nailed the bug, which is quite easy to correct. I joined a
> changeset. I'm quite new to squeak (and even smalltalk), so pardon me if
> I'm not following established methods for reporting bugs. I don't known if
> it is possible for me to send a new version of LanguageEditor on
> squeaksource via Monticello, as I've not tried. And I don't know how to use
> Monticello for my NaturalLanguageTranslator corrections, because it is in
> another package (category ?).

  http://bugs.impara.de is the central repository to report bugs,
especially for the issues related to Squeakland, it is usually a good
idea to discuss it on the mailing lists.
(http://squeakland.org/mailman/listinfo/squeakland or squeak-dev.)

  For this matter, the change should go to both images.  For
Squeakland, we'll make sure it gets into the update stream.

-- Yoshiki



More information about the Squeak-dev mailing list