Skip to content

Cannot add words to dictionaries #58

Description

@ArtemSmaznov

Describe your issue

Recently, adding words via +spell/add-word stopped working resulting in the following error:

ispell-get-decoded-string: No data for dictionary "nil" in ‘ispell-local-dictionary-alist’ or ‘ispell-dictionary-alist’

spell.log (with debug enabled on spell-fu)
spell.backtrace.log

The error has a 100% repro-rate and only while debugging I've noticed that it doesn't happen for first couple of seconds after starting doom.

I believe this started happening after I did doom upgrade (was few weeks old at that time), since I didn't update my config in recent weeks and I add new words all the time. This also started happening on my work computer as well where I've updated doom as well.

I have tried clearing my whole config aside from the spell-checking block here (ref: https://github.com/ArtemSmaznov/dotfiles-doom-emacs/blob/master/README.org?plain=1#L1339-L1392) with no better results. I've also tried emptying all my personal dictionaries and the contents of ~/.config/emacs/.local/etc/spell-fu/* - same story.

I've checked both ispell-local-dictionary-alist and ispell-dictionary-alist and can see that both are nil in the first few seconds while adding words work as well as after.

Any idea is something changed on Doom side to have caused this? Would appreciate any help troubleshooting this.

Steps to reproduce

  1. Open Emacs,
  2. Quickly open any buffer and enable spell-fu-mode if it is not enabled by default
  3. Put cursor on any word
  4. Trigger +spell/add-word (can do via zg in evil mode)
  5. If the dictionary selection popup shows up, escape it
  6. Wait for a some seconds
  7. Try +spell/add-word
  8. After a small amount of time (5-20 sec in my case) you will start getting the error on every attempt until emacs is restarted

System information

doom.info.txt

Disclosures

  • This issue was written with/by AI.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    Open to PRs

    Help Accepted

    Priority

    None yet

    Projects

    Status
    Unreviewed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions