profile
viewpoint

Ask questionsispell-init-process: Error: The language "nil" is not known

Just in case anybody else had any problem with their multilanguage aspell configuration, this might be the reason. Hope it helps.

I use aspell in English and Spanish configurations. Until the last update Doom behaved normally, but the last update (updated yesterday) seemed to change something in the internal ispell config of emacs.

The file that I had to edit was ~/.emacs.d/.local/etc/ispell/.pws; a quick look in the Messages buffer led me to that file.

It seems that originally it was personal_ws-1.1 nil 0 (see the Messages buffer output appended down below for details) and by changing nil to es like this: personal_ws-1.1 es 0 returned things to normal.

Additional info:

Output of the Messages buffer when tried to spell-check a region in org-mode:

Starting new Ispell process aspell with espanol dictionary...
ispell-init-process: Error: /home/ma/.emacs.d/.local/etc/ispell/.pws: The language "nil" is not known. This is probably because: the file "/usr/lib/aspell/nil.dat" can not be opened for reading.

System information: <details><pre>

SYSTEM  type       gnu/linux
        config     x86_64-pc-linux-gnu
        shell      /bin/bash
        uname      Linux 5.9.16-xanmod1 #0~git20201221.c8d2626 SMP PREEMPT Mon Dec 21 14:24:27 UTC 2020 x86_64
        path       (~/.emacs.d/bin ~/bin ~/.emacs.d/bin ~/.emacs.d/bin ~/.emacs.d/bin ~/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /us$
EMACS   dir        ~/.emacs.d/
        version    26.3
        build      Mar 26, 2020
        buildopts  --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/u$
        features   XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_S$
        traits     (tty envvar-file)
DOOM    dir        ~/.doom.d/
        version    2.0.9
        font       nil
        theme      doom-one
        build      HEAD -> develop 0c9256411 2020-12-15 04:14:40 -0500
        elc-files  0
        modules    (:completion company ivy :ui doom doom-dashboard doom-quit fill-column hl-todo minimap modeline nav-flash neotree ophints (popup +defaults) vc-gutter$
        packages   (n/a)
        unpin      (n/a)
        elpa       (htmlize gnuplot-mode)

</pre></details>

I will mark it as solved.

And also I'd like to take this oportunity to say thanks to the maintainer of this Emacs incarnation; it's one of the most valuable pieces of software for a student like me. Thank you so very very much! <3 @hlissner

hlissner/doom-emacs

Answer questions hlissner

You need to set ispell-dictionary. This nil you've encountered is because Emacs can't guess the default language for your personal dictionary. e.g.

(setq ispell-dictionary "es")
useful!
source:https://uonfu.com/
answerer
Henrik Lissner hlissner Toronto, ON https://henrik.io In a relationship with gamedev, pixel art & esoteric text editors. Send help. Or cookies.
Github User Rank List