Bug 359265 - Lots of "No language dictionaries for the language: "foo" " messages when editing files
Summary: Lots of "No language dictionaries for the language: "foo" " messages when edi...
Status: REPORTED
Alias: None
Product: frameworks-sonnet
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Sandsmark
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-11 11:21 UTC by Alex Richardson
Modified: 2019-07-13 22:09 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Richardson 2016-02-11 11:21:47 UTC
I get lots of stderr messages like

No language dictionaries for the language: "en" 
No language dictionaries for the language: "en" 
No language dictionaries for the language: "de"
No language dictionaries for the language: "de" 

whenever I open a file in Kate or KDevelop and I think also sometimes during editing.
The error is printed in Sonnet::Loader::createSpeller() because there is only /usr/share/hunspell/de_DE.aff, /usr/share/hunspell/de_DE.dic, /usr/share/hunspell/en_US.aff, /usr/share/hunspell/en_US.dic, etc.

Symlinking /usr/share/hunspell/de_DE.{aff,dic} to /usr/share/hunspell/de.{aff,dic} and the same with en_GB -> en silenced the message, but to me it seems ktexteditor should not keep trying to open the "en" or "de" Speller if it was not found the first time. (possibly fall back to the first en_* and de_* file it finds? And of course similarly for other languages that have multiple variants.

For now the symlink fixes it for me, but I think we should somehow guess the right variant (or not have the no variant option at all for spell checking)



Reproducible: Always
Comment 1 Erik Quaeghebeur 2017-01-24 16:50:07 UTC
I can confirm this for KF 5.29.

Perhaps this bug should be reassigned to the frameworks-sonnet product?
Comment 2 Christoph Cullmann 2019-07-13 22:09:26 UTC
I think so.