Summary: | Kate raises hspell error when launched from command line | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-sonnet | Reporter: | hugo.roche.derville |
Component: | general | Assignee: | Martin Sandsmark <martin.sandsmark> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | christoph, ddascalescu+kde, fergal.mullally, g111, gerrit.huebbers, justin.zobel, kdebugs, kdelibs-bugs, lingwangneuraleng, lucasgallindo, waqar.17a |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/sonnet/-/commit/2a9ce5916367967f6321ded4f4a75374f9b76d4e | Version Fixed In: | |
Sentry Crash Report: |
Description
hugo.roche.derville
2020-05-13 09:26:17 UTC
The same error is in KWrite Version 20.04.0: Operating System: KDE neon 5.18 KDE Plasma Version: 5.18.5 KDE Frameworks Version: 5.70.0 Qt Version: 5.14.2 Confirmed on kate from git master. I cannot reproduce this. Can someone confirm if they have this file available: "/usr/share/hspell/hebrew.wgz.sizes"? And is HSpell installed properly along with its required dictionaries? For completeness, here are the contents of my /usr/share/hspell: .rw-r--r-- root root 112 KB Tue May 19 14:31:12 2020 hebrew.wgz .rw-r--r-- root root 134 KB Tue May 19 14:31:12 2020 hebrew.wgz.desc .rw-r--r-- root root 4.3 KB Tue May 19 14:31:12 2020 hebrew.wgz.hints .rw-r--r-- root root 45 KB Tue May 19 14:31:12 2020 hebrew.wgz.prefixes .rw-r--r-- root root 33 B Tue May 19 14:31:12 2020 hebrew.wgz.sizes .rw-r--r-- root root 369 KB Tue May 19 14:31:12 2020 hebrew.wgz.stems (In reply to Waqar Ahmed from comment #3) > I cannot reproduce this. > > Can someone confirm if they have this file available: > "/usr/share/hspell/hebrew.wgz.sizes"? And is HSpell installed properly along > with its required dictionaries? > > For completeness, here are the contents of my /usr/share/hspell: > > .rw-r--r-- root root 112 KB Tue May 19 14:31:12 2020 hebrew.wgz > .rw-r--r-- root root 134 KB Tue May 19 14:31:12 2020 hebrew.wgz.desc > .rw-r--r-- root root 4.3 KB Tue May 19 14:31:12 2020 hebrew.wgz.hints > .rw-r--r-- root root 45 KB Tue May 19 14:31:12 2020 hebrew.wgz.prefixes > .rw-r--r-- root root 33 B Tue May 19 14:31:12 2020 hebrew.wgz.sizes > .rw-r--r-- root root 369 KB Tue May 19 14:31:12 2020 hebrew.wgz.stems After testing (on a different OS from last time, now Solus) I can't reproduce the issue. kate launches without any terminal feedback showing missing dictionary files. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! I remember it was recently fixed. There was even a blog post about it. Operating System: Kubuntu 21.10 KDE Plasma Version: 5.23.4 KDE Frameworks Version: 5.89.0 Qt Version: 5.15.2 Kernel Version: 5.13.0-22-generic (64-bit) Graphics Platform: X11 I still get the warning when starting e.g. kwrite Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed I do not have hspell installed. Also I do not need hebrew spell checking on my system. So why is this warning given? (And why not other languages, too?) Reopening due to user post. > I do not have hspell installed. > Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. The above lines says that you do have it installed but don't have the dictionaries. Please either uninstall it completely or install the dictionaries and check if its still giving warnings. https://packages.ubuntu.com/hirsute/amd64/hspell/filelist shows the list of files installed on your system if hspell is installed. Hello Waqar, at least I do not have an "hspell" package installed. Maybe it comes in another package name? Here are all installed packages with "spell" in their name or description title: $ dpkg -l | grep spell ii aspell 0.60.8-3 amd64 GNU Aspell spell-checker ii aspell-en 2018.04.16-0-1 all English dictionary for GNU Aspell ii dictionaries-common 1.28.4 all spelling dictionaries - common utilities ii enchant-2 2.3.1-1 amd64 Wrapper for various spell checker engines (binary programs) ii hunspell-de-at-frami 1:7.1.0~rc3-3 all German (Austria) dictionary for hunspell ("frami" version) ii hunspell-de-ch-frami 1:7.1.0~rc3-3 all German (Switzerland) dictionary for hunspell ("frami" version) ii hunspell-de-de-frami 1:7.1.0~rc3-3 all German dictionary for hunspell ("frami" version) ii hunspell-en-us 1:2019.10.06-1 all English_american dictionary for hunspell ii libaspell15:amd64 0.60.8-3 amd64 GNU Aspell spell-checker runtime library ii libenchant-2-2:amd64 2.3.1-1 amd64 Wrapper library for various spell checker engines (runtime libs) ii libhfstospell11:amd64 0.5.2-1build2 amd64 HFST spell checker runtime libraries ii libhunspell-1.7-0:amd64 1.7.0-3 amd64 spell checker and morphological analyzer (shared library) ii libkf5sonnet5-data 5.89.0-0ubuntu1~ubuntu21.10~ppa1 all spell checking library for Qt, data files ii libkf5sonnetcore5:amd64 5.89.0-0ubuntu1~ubuntu21.10~ppa1 amd64 spell checking library for Qt, core lib ii libkf5sonnetui5:amd64 5.89.0-0ubuntu1~ubuntu21.10~ppa1 amd64 spell checking library for Qt, ui lib ii libqt5hunspellinputmethod5:amd64 5.15.2+dfsg-2 amd64 Qt virtual keyboard - helper library for Hunspell input method ii python3-enchant 3.2.0-1 all spellchecking library for Python 3 ii qml-module-org-kde-sonnet:amd64 5.89.0-0ubuntu1~ubuntu21.10~ppa1 amd64 spell checking library for Qt, plugins ii sonnet-plugins:amd64 5.89.0-0ubuntu1~ubuntu21.10~ppa1 amd64 spell checking library for Qt, plugins The whole /usr/share/hspell directory is not present: $ ls -l /usr/share/hspell ls: cannot access '/usr/share/hspell': No such file or directory try the following instead: sudo find / -iname *hspell* root# find / -iname *hspell* find: ‘/run/user/1000/doc’: Permission denied /usr/lib/x86_64-linux-gnu/enchant-2/enchant_hspell.so /usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/sonnet_hspell.so /snap/gnome-3-28-1804/161/usr/lib/x86_64-linux-gnu/enchant/libenchant_hspell.so This is all. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Hello, which Info are you waiting for? Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging Thank you for helping us make KDE software even better for everyone! For anyone coming across this issue, I solved it by installing hspell on my system with apt. It's about 1.2Mb in size ``` sudo apt install hspell -y ```` My guess -- and it's only a guess -- is that Kate comes bundled with hspell, but it missing some of the dictionary files. Installing hspell directly installs those dictionary files and removes the warning. (In reply to Fergal Mullally from comment #17) > For anyone coming across this issue, I solved it by installing hspell on my > system with apt. It's about 1.2Mb in size > > ``` > sudo apt install hspell -y > ```` > > My guess -- and it's only a guess -- is that Kate comes bundled with hspell, > but it missing some of the dictionary files. Installing hspell directly > installs those dictionary files and removes the warning. But why does it even try? I don't need Hebrew spelling. (In reply to Christoph Feck from comment #6) > I remember it was recently fixed. There was even a blog post about it. On a up to date Ubuntu Budgie 22.04.2 LTS x86_64, kate installed from Muon package manager: Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed What really bugs me is: Why do I need a Hebrew dictionary? *** Bug 433154 has been marked as a duplicate of this bug. *** *** Bug 420469 has been marked as a duplicate of this bug. *** Git commit 2a9ce5916367967f6321ded4f4a75374f9b76d4e by Waqar Ahmed. Committed on 22/07/2024 at 16:23. Pushed by cullmann into branch 'master'. Avoid initializing full HSpellDict when getting languages We can just check if the dictionary exists at the given path M +8 -5 src/plugins/hspell/hspellclient.cpp https://invent.kde.org/frameworks/sonnet/-/commit/2a9ce5916367967f6321ded4f4a75374f9b76d4e |