Bug 424734

Summary: Unnecessary console messages: "Sonnet: Unable to load plugin ...."
Product: [Frameworks and Libraries] frameworks-sonnet Reporter: Juan Simón <decedion>
Component: generalAssignee: Martin Sandsmark <martin.sandsmark>
Status: CONFIRMED ---    
Severity: normal CC: alexander.lohnau, gudvinr+kde, kde.podagric, kdelibs-bugs-null, loh.tar, lucia.mrenica
Priority: NOR    
Version First Reported In: 5.74.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Juan Simón 2020-07-28 07:57:41 UTC
When I execute "Kate" in console, it shows several messages:

sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_hspell.so: (libhspell.so.0: cannot open shared object file: No such file or directory)"
sonnet.core: Sonnet: Unable to load plugin "/usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so" Error: "Cannot load library /usr/lib/qt/plugins/kf5/sonnet/sonnet_voikko.so: (libvoikko.so.1: cannot open shared object file: No such file or directory)"


"libvoikko" and "hspell" are the packages that contain (in Arch Linux) these libraries but they are optional.
"hspell" is a Hebrew spell-checker.
"libvoikko" is a spelling and grammar checker, hyphenator and collection of related linguistic data for Finnish language.

Nothing in my system indicates that I use these languages, why does "sonnet" alert me to the lack of these libraries if they are optional and I don't need to use them?

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.19.3
KDE Frameworks Version: 5.72.0
Qt Version: 5.15.0
Kernel Version: 5.7.10-zen1-1-zen
OS Type: 64-bit
Comment 1 Lucia Mrenica 2020-10-08 18:14:06 UTC
Same issue here.
Comment 2 Podagric 2021-05-11 22:09:21 UTC
apparently this is a krunner bug.
it is displayed to me as soon as I type anything into krunner after its first run.

If the dictionary and spell check runners are disabled, these messages are not displayed.

In fact, that seems to be the reason the dictionary runner doesn't work for me. The spelling checker works perfectly.

In addition, although the log reports that the files exist, it is possible to find them in the folder.

$ ls /usr/lib/qt/plugins/kf5/sonnet/
sonnet_aspell.so  sonnet_hspell.so  sonnet_hunspell.so  sonnet_voikko.so
Comment 3 Alexander Lohnau 2021-05-12 06:57:36 UTC
>apparently this is a krunner bug.
>it is displayed to me as soon as I type anything into krunner after its first run.

That is because then the KRunner plugins are loaded.

>In fact, that seems to be the reason the dictionary runner doesn't work for me.

Why do you think so? Have you checked the KRunner settings for the dictionary runner to make sure you have typed the right Trigger Word?
Comment 4 Podagric 2021-05-12 16:57:43 UTC
> Why do you think so? Have you checked the KRunner settings for the dictionary runner to make sure you have typed the right Trigger Word?

Yes. for my language (pt-br), the word that activates the dictionary is "definir", but typing anything after that does not display any results.

on the console, no errors other than those listed here are displayed.
Comment 5 gudvinr+kde 2021-11-09 16:31:10 UTC
If support for these languages is optional then sonnet shouldn't complain about missing files unless some kind of debug/verbose output is enabled.

When user doesn't have these libraries he would never install them if he doesn't need Hebrew or Finnish language checking.

That being said, these errors become quite annoying after a while.