Bug 359265

Summary: Lots of "No language dictionaries for the language: "foo" " messages when editing files
Product: [Frameworks and Libraries] frameworks-sonnet Reporter: Alex Richardson <arichardson.kde>
Component: generalAssignee: Martin Sandsmark <martin.sandsmark>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.kde.org, christoph, joh82875, kdelibs-bugs-null, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.
Comment 3 Waqar Ahmed 2024-07-26 10:04:25 UTC
Fixed now, the messages are downgraded to debug