- Does this error happen every time you start ReText? Or only for some
*Yes. Happens everytime. No special documents.*
special documents? (If the latter, can you attach one of them?)
- Did you configure ReText for custom language for spell checking?
*I did not configure any language setting. I enabled spell checking. I
just discovered that it only crashes when spell checking is enabled.*
*script output:*
*Script started on Wed 03 Feb 2016 03:57:29 PM PST*
*erik@incense:~$ python3*
*Python 3.5.1+ (default, Jan 13 2016, 15:09:18) *
*[GCC 5.3.1 20160101] on linux*
*Type "help", "copyright", "credits" or "license" for more information.*
*>>> import enchant*
*>>> enchant.Dict('en_US')._Dict__describe()*
*('en_US', 'myspell', 'Myspell Provider',
'/usr/lib/i386-linux-gnu/enchant/libenchant_myspell.so')*
*>>> *
*erik@incense:~$ exit*
*Script done on Wed 03 Feb 2016 03:57:59 PM PST*
**
*LANG=en_US.utf8 is set in my shell.*
On Sat, Jan 30, 2016 at 2:27 AM, Dmitry Shachnev <[email protected]> wrote:
> Control: tags -1 +moreinfo
>
> Hi Erik,
>
> On Wed, Jan 20, 2016 at 05:32:44PM -0800, Erik wrote:
> > Ran: retext docs/api.md and received the below output:
> >
> > Traceback (most recent call last):
> > File "/usr/share/retext/ReText/highlighter.py", line 129, in
> highlightBlock
> > if not self.dictionary.check(match.group(0)):
> > File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 634,
> in check
> > self._check_this()
> > File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 606,
> in _check_this
> > _EnchantObject._check_this(self,msg)
> > File "/usr/lib/python3/dist-packages/enchant/__init__.py", line 176,
> in _check_this
> > raise Error(msg)
> > enchant.errors.Error: Dict unusable: the underlying C-library object has
> been freed.
>
> I cannot reproduce this error.
> Can you please provide me the following details:
>
> - Does this error happen every time you start ReText? Or only for some
> special documents? (If the latter, can you attach one of them?)
>
> - Did you configure ReText for custom language for spell checking?
>
> - Can you please run python3 console and check what is the enchant provider
> there? For example:
>
> >>> import enchant
> >>> enchant.Dict('en_US')._Dict__describe()
> ('en_US', 'aspell', 'Aspell Provider',
> '/usr/lib/x86_64-linux-gnu/enchant/libenchant_aspell.so')
>
> ... and paste all the output here.
> If you are using a different language, replace en_US with code of that
> language.
>
> Thanks in advance,
>
> --
> Dmitry Shachnev
>