Kate spellcheck not working

Bug #1548206 reported by bob
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Hunspell
Fix Released
Undecided
Unassigned
Xenial Backports
Fix Released
Undecided
Unassigned
kate
Invalid
Low
kate (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Neither automatic nor manual spellcheck work in english with the default package install of kate.

I ran xubuntu 16.04 alpha from the xenial-desktop-amd64.iso file downloaded from http today.

I installed kate using the gui package manager.

I opened kate and typed nonsense into it.

I went to the menu Tools> Spelling> Automatic Spell Checking and activated it.

none of the nonsense was marked as misspelled.

Next I went to Tools> Spelling> Spelling... and ran a spellcheck. it marked everything as OK.

I expected gibberish to be marked as misspelled.

xubuntu@xubuntu:~$ lsb_release -rd
Description: Ubuntu Xenial Xerus (development branch)
Release: 16.04

xubuntu@xubuntu:~$ apt-cache policy kate
kate:
  Installed: 4:15.08.2-0ubuntu2
  Candidate: 4:15.08.2-0ubuntu2
  Version table:
 *** 4:15.08.2-0ubuntu2 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: kate 4:15.08.2-0ubuntu2
ProcVersionSignature: Ubuntu 4.4.0-6.21-generic 4.4.1
Uname: Linux 4.4.0-6-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CasperVersion: 1.367
CurrentDesktop: XFCE
Date: Mon Feb 22 06:57:55 2016
LiveMediaBuild: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160221)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: kate
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
bob (xubuntu-r) wrote :
Revision history for this message
bob (xubuntu-r) wrote :

when launching kate from the console it gives this output:

xubuntu@xubuntu:~$ kate
Icon theme "oxygen" not found.
Icon theme "oxygen" not found.
Error: standard icon theme "oxygen" not found!

when activating spellcheck it gives these errors:
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
HSpellDict::HSpellDict: Init failed
No language dictionaries for the language: "en"

Revision history for this message
bob (xubuntu-r) wrote :

after installing hspell with "sudo apt-get install hspell" it gives this error after restarting kate:

xubuntu@xubuntu:~$ kate
Icon theme "oxygen" not found.
Icon theme "oxygen" not found.
Error: standard icon theme "oxygen" not found!
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"
No language dictionaries for the language: "en"

Revision history for this message
Flames_in_Paradise (ellisistfroh-deactivatedaccount) wrote :
Revision history for this message
bob (xubuntu-r) wrote :

seems to be fixed in xubuntu 16.04 beta 2

Changed in hunspell:
status: New → Fix Released
Changed in xenial-backports:
status: New → Fix Released
Changed in kate (Ubuntu):
status: New → Fix Released
Revision history for this message
Marcelo Escobal (marcelo-escobal) wrote :

Not fixed (at least in Kubuntu 16.10). I still can't use spell checking. If I start Kate from command line i get:

> Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.

I have both aspell and hunspell installed.

Revision history for this message
In , Hugo-roche-derville (hugo-roche-derville) wrote :

The following error is raised when launching Kate from command line:

Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed

System Information:
Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.4.0-29-generic
OS Type: 64-bit

Revision history for this message
In , Histesh Shah (chimak111) wrote :

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

Revision history for this message
emk2203 (emk2203) wrote :

Still not fixed.

kate jp_20200316.txt
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed

Revision history for this message
Maye (michael-aye) wrote :

Not fixed in Kubuntu 20.04:

$ kate .ssh/config
Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes.
sonnet.plugins.hspell: HSpellDict::HSpellDict: Init failed

Revision history for this message
In , Justin Zobel (justin-zobel) wrote :

Confirmed on kate from git master.

Revision history for this message
In , Waqar Ahmed (waqar-17a) wrote :

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

Revision history for this message
Waqar Ahmed (waqar-17a) wrote :

Hi,

I cannot reproduce this. Can anyone confirm if they have HSpell installed properly along with its required files?

Here're the contents of my 'usr/share/hspell' directory:

.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

The bug is being tracked here in https://bugs.kde.org/show_bug.cgi?id=421451

Changed in kate:
importance: Unknown → Low
status: Unknown → Incomplete
Revision history for this message
In , Justin Zobel (justin-zobel) wrote :

(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.

Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

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!

Revision history for this message
In , Cfeck (cfeck) wrote :

I remember it was recently fixed. There was even a blog post about it.

Changed in kate:
status: Incomplete → Fix Released
Revision history for this message
In , Gert Brinkmann (g111) wrote :

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?)

Revision history for this message
In , Justin Zobel (justin-zobel) wrote :

Reopening due to user post.

Revision history for this message
In , Waqar Ahmed (waqar-17a) wrote :

> 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.

Revision history for this message
In , Gert Brinkmann (g111) wrote :
Download full text (3.2 KiB)

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: ...

Read more...

Revision history for this message
In , Waqar Ahmed (waqar-17a) wrote :

try the following instead:

sudo find / -iname *hspell*

Revision history for this message
In , Gert Brinkmann (g111) wrote :

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.

Changed in kate:
status: Fix Released → Incomplete
Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

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!

Revision history for this message
In , Gert Brinkmann (g111) wrote :

Hello,
which Info are you waiting for?

Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

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!

Revision history for this message
In , Bug-janitor (bug-janitor) wrote :

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!

Changed in kate:
status: Incomplete → Invalid
Revision history for this message
In , fergal (fergal-mullally) wrote :

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.

Revision history for this message
In , Kdebugs-k (kdebugs-k) wrote :

(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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.