Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 66341 - vimspell doesn't like latest aspell update
Summary: vimspell doesn't like latest aspell update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-04 13:05 UTC by Greg Kroah-Hartman (RETIRED)
Modified: 2004-10-31 07:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
gentoo-x86/app-vim/vimspell/files/vimspell-1.84-aspell-0.6.patch (vimspell-1.84-aspell-0.6.patch,684 bytes, patch)
2004-10-08 07:07 UTC, Ciaran McCreesh
Details | Diff
vimspell-1.84.patch (vimspell-1.84.patch,7.17 KB, patch)
2004-10-21 01:18 UTC, Molchanov Alexander
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-10-04 13:05:01 UTC
After upgrading to the latest version of aspell, whenever starting up vim, the
vimspell plugin tries to do a find on my whole disk.

This is due to the following line in the vimspell script:
    let l:dirs = system('aspell config | '. s:grep . ' "dict-dir current"')

Unfortunatly, 'aspell config' does not report any 'dict-dir current' in its
configuration anymore.  This makes the directory vimspell should search for
the same as the current directory, and away the find goes...
Comment 1 Ciaran McCreesh 2004-10-07 10:03:38 UTC
Hm. 0.50* gives:

# dict-dir descrip: location of the main word list
# dict-dir default: <prefix:lib/aspell>
# dict-dir current: /usr/lib/aspell

And 0.60* gives:

# dict-dir (string)
#   location of the main word list
# default: <data-dir> = /usr/lib/aspell-0.60

Yuck. I'll send an email to upstream and see if they have a fix for this already written.
Comment 2 Ciaran McCreesh 2004-10-08 06:18:26 UTC
Ok, looks like it's up to me to write the patch :) Shouldn't be too bad though, since it turns out we can do:

0.50*:
ciaranm@snowdrop ~ 0 0.04 $ aspell config dict-dir
/usr/lib/aspell

0.60*:
ciaranm@snowdrop ~ 0 0.20 $ aspell config dict-dir
/usr/lib/aspell-0.60
Comment 3 Ciaran McCreesh 2004-10-08 07:07:33 UTC
Created attachment 41361 [details, diff]
gentoo-x86/app-vim/vimspell/files/vimspell-1.84-aspell-0.6.patch

This should make it find the directories correctly again.

but... It seems :SpellCheck is broken too with aspell 0.60.
:SpellProposeAlternatives works fine here, but :SpellCheck always gives "Spell
check done: 1 possible spell errors in 1 words.". Does this happen for anyone
else?
Comment 4 Ciaran McCreesh 2004-10-13 08:44:41 UTC
Ok, the other problem is that aspell -l no longer works, so aspell list is required instead. I'll produce a patch for this that doesn't break ispell compatability.
Comment 5 Molchanov Alexander 2004-10-21 01:18:13 UTC
Created attachment 42295 [details, diff]
vimspell-1.84.patch

this patch is dirty (i think) but working ! :)
(i shall sand it to upstream)
Comment 6 Ciaran McCreesh 2004-10-22 12:43:14 UTC
Perfect, thanks. 1.84-r2 in the tree, please test.
Comment 7 Ciaran McCreesh 2004-10-31 07:01:08 UTC
Assuming that this is fixed. Please reopen if not.