[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#793740: kwrite: spell checking does not work at all



In data giovedì 7 gennaio 2016 21:19:55, Hagen Fuchs ha scritto:
> Hi,
> 
> > Do you have sonnet-plugins installed?
> 
> Yes.  I also tried to provide different backends (aspell, hunspell,
> myspell) exclusively and all together.  No dice.

Well, it just worked fine for me after installing it. I guess you have
the right aspell-$LANG / hspell-$LANG?
Do you have any dictionaries listed if you open the global spell check
configuration ([1] or [2])?

[1] System Settings -> Regional Settings -> Spell Check
[2] `kcmshell5 spellchecking` in a terminal

> Note again, that after starting kwrite with eg.
> 
>   strace -s 512 kwrite |& grep 'sonnet'
> 
> I'm still seeing the line
> 
>   stat("/usr//usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", 0x7fff8cff2920) = -1 ENOENT (No such file or directory)
> 
> immediately after selecting 'Tools > Spelling > Spelling ...'.

Yes, I read that in your previous email, but you are missing other
details:

$ strace -o log kwrite
(write something, then invoke the spell checking, then quit)

$ grep 'kf5/sonnet' log
stat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
openat(AT_FDCWD, "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 11
statfs("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/", {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=9578578, f_bfree=3503535, f_bavail=3011171, f_files=2445984, f_ffree=1919679, f_fsid={189876285, 1250295238}, f_namelen=255, f_frsize=4096}) = 0
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/aspell.so", {st_mode=S_IFREG|0644, st_size=19016, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/aspell.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/aspell.so", O_RDONLY|O_CLOEXEC) = 11
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hspell.so", {st_mode=S_IFREG|0644, st_size=77256, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hspell.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hspell.so", O_RDONLY|O_CLOEXEC) = 11
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hunspell.so", {st_mode=S_IFREG|0644, st_size=23144, ...}) = 0
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hunspell.so", O_RDONLY|O_CLOEXEC) = 11
open("/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet/hunspell.so", O_RDONLY|O_CLOEXEC) = 11
stat("/usr/bin/kf5/sonnet", 0x7ffc00d30e20) = -1 ENOENT (No such file or directory)
stat("/usr//usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/sonnet", 0x7ffc00d30e20) = -1 ENOENT (No such file or directory)
stat("/home/pino/.local/share/kf5/sonnet/trigrams.map", 0x7ffc00d315f0) = -1 ENOENT (No such file or directory)
stat("/home/pino/localroot/share/kf5/sonnet/trigrams.map", 0x7ffc00d315f0) = -1 ENOENT (No such file or directory)
stat("/usr/local/share/kf5/sonnet/trigrams.map", 0x7ffc00d315f0) = -1 ENOENT (No such file or directory)
stat("/usr/share/kf5/sonnet/trigrams.map", {st_mode=S_IFREG|0644, st_size=269584, ...}) = 0
open("/usr/share/kf5/sonnet/trigrams.map", O_RDONLY|O_CLOEXEC) = 11

As you can see, it finds (and then loads) all the plugins. If it does
not for you, then please attach a complete (not just one line) output of
strace.

Thanks,
-- 
Pino Toscano

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: