Ian Clarke | 3 Jun 2003 06:42
Picon

Aspell pain

Apologies if this is received twice - it seems like my first email may 
not have gone through :-

I am having a terrible time trying to get nano to check my spelling.  I 
have upgraded to the latest nano version, 1.2.1, but it made no 
difference.

Here is the situation:

ian <at> hawk:~$ /usr/bin/aspell --version
 <at> (#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 
alpha)
ian <at> hawk:~$ nano --version
 GNU nano version 1.2.1 (compiled 21:27:31, Jun  2 2003)
 Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options:
ian <at> hawk:~$ nano -s "/usr/bin/aspell -c"

Now I type some stuff into nano - and hit Ctrl+t, but I get the 
following message on the third line from the bottom:

         [ Spell checking failed: Could not invoke "/usr/bin/aspell" ]

If I just try:

ian <at> hawk:~$ nano

And do the same thing, I get:
               [ Spell checking failed: Error invoking "spell" ]

(Continue reading)

Ian Clarke | 3 Jun 2003 06:33
Picon

Aspell pain

I am having a terrible time trying to get nano to check my spelling.  I 
have upgraded to the latest nano version, 1.2.1, but it made no 
difference.

Here is the situation:

ian <at> hawk:~$ /usr/bin/aspell --version
 <at> (#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 
alpha)
ian <at> hawk:~$ nano --version
 GNU nano version 1.2.1 (compiled 21:27:31, Jun  2 2003)
 Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options:
ian <at> hawk:~$ nano -s "/usr/bin/aspell -c"

Now I type some stuff into nano - and hit Ctrl+t, but I get the 
following message on the third line from the bottom:

         [ Spell checking failed: Could not invoke "/usr/bin/aspell" ]

If I just try:

ian <at> hawk:~$ nano

And do the same thing, I get:
               [ Spell checking failed: Error invoking "spell" ]

I am lost, I think I have tried all the obvious solutions - can anyone
help?

(Continue reading)

Jordi Mallach | 3 Jun 2003 15:00
Picon

Re: Aspell pain

Hi Ian,

On Mon, Jun 02, 2003 at 09:33:29PM -0700, Ian Clarke wrote:
> I am having a terrible time trying to get nano to check my spelling.  I 
> have upgraded to the latest nano version, 1.2.1, but it made no 
> difference.
> 
> Here is the situation:
> 
> ian <at> hawk:~$ /usr/bin/aspell --version
>  <at> (#) International Ispell Version 3.1.20 (but really Aspell .33.7.1 
> alpha)
> ian <at> hawk:~$ nano --version
>  GNU nano version 1.2.1 (compiled 21:27:31, Jun  2 2003)
>  Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
>  Compiled options:

This appears to be a problem:

 GNU nano version 1.2.1 (compiled 13:30:44, Apr 21 2003)
 Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options: --enable-extra --disable-wrapping-as-root --enable-color --enable-multibuffer --enable-nanorc

Compiling nano with --enable-all will activate most of the features in
nano. Try compiling with that option passed to configure, or if you
don't want all the stuff, just with --enable-speller.

Jordi
--

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
(Continue reading)

Ian Clarke | 3 Jun 2003 17:01
Picon

Re: Aspell pain


> Compiling nano with --enable-all will activate most of the features in
> nano. Try compiling with that option passed to configure, or if you
> don't want all the stuff, just with --enable-speller.

Thanks for the suggestion Jordi, unfortunately I am afraid it was 
unsuccessful.

I tried recompiling with:

$ ./configure --enable-all && make && sudo make install
[...]
$ nano --version
 GNU nano version 1.2.1 (compiled 07:58:45, Jun  3 2003)
 Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
 Compiled options: --enable-extra --enable-color --enable-multibuffer 
--enable-nanorc

But the result is the same :-(  Do you have any other ideas?

Many thanks,

Ian.

> _______________________________________________
> Help-nano mailing list
> Help-nano <at> gnu.org
> http://mail.gnu.org/mailman/listinfo/help-nano

--

-- 
(Continue reading)

Jordi Mallach | 3 Jun 2003 18:47
Picon

Re: Aspell pain

On Tue, Jun 03, 2003 at 08:01:12AM -0700, Ian Clarke wrote:
> Thanks for the suggestion Jordi, unfortunately I am afraid it was 
> unsuccessful.
> 
> I tried recompiling with:
> 
> $ ./configure --enable-all && make && sudo make install
> [...]
> $ nano --version
>  GNU nano version 1.2.1 (compiled 07:58:45, Jun  3 2003)
>  Email: nano <at> nano-editor.org    Web: http://www.nano-editor.org/
>  Compiled options: --enable-extra --enable-color --enable-multibuffer 
> - --enable-nanorc
> 
> But the result is the same :-(  Do you have any other ideas?

Darn, this is working for me:

65576:jordi <at> nubol:~$ nano -s "aspell -c"

... Ctrl-T ... enters aspell... exit aspell...

                         [ Finished checking spelling ]

Have you tried not specifying the path? (it works for me with the path,
too, but...).

This should work, as it's working for me, but as another alternative,
try settign the spelling command in your ~/.nanorc. You'll find an
example of nanorc in the tarball.
(Continue reading)

Ian Clarke | 3 Jun 2003 20:10
Picon

Re: Aspell pain

> Have you tried not specifying the path? (it works for me with the path,
> too, but...).

Yes, I tried that but the result was the same.

> This should work, as it's working for me, but as another alternative,
> try settign the spelling command in your ~/.nanorc. You'll find an
> example of nanorc in the tarball.

Just tried that - same result :-(

> Maybe someone else has more ideas...

Indeed, thanks for trying anyway.  Does anyone know what the error even 
indicates?  (ie. that aspell terminated with an error code?  that the 
command couldn't be found?).

Ian.

--

-- 
Ian Clarke                			            ian <at> locut.us
Coordinator, The Freenet Project	      http://freenetproject.org/
Founder, Locutus				        http://locut.us/
Personal Homepage				    http://locut.us/ian/
Chris Odum | 3 Jun 2003 21:34

Re: Aspell pain

I've never used the apsell program so not sure exactly how it works, but are
you able to call aspell from other applications or from the command line (if
that's possible)? What I'm getting at is perhaps the problem is with aspell
and not specifically with nano?

----- Original Message -----
From: "Ian Clarke" <ian <at> locut.us>
To: <help-nano <at> gnu.org>
Sent: Tuesday, June 03, 2003 1:10 PM
Subject: [despammed] Re: [Help-nano] Aspell pain

> > Have you tried not specifying the path? (it works for me with the path,
> > too, but...).
>
> Yes, I tried that but the result was the same.
>
> > This should work, as it's working for me, but as another alternative,
> > try settign the spelling command in your ~/.nanorc. You'll find an
> > example of nanorc in the tarball.
>
> Just tried that - same result :-(
>
> > Maybe someone else has more ideas...
>
> Indeed, thanks for trying anyway.  Does anyone know what the error even
> indicates?  (ie. that aspell terminated with an error code?  that the
> command couldn't be found?).
>
> Ian.
>
(Continue reading)

Paul Fotheringham | 4 Jun 2003 00:30
Favicon

Re: Aspell pain

> Indeed, thanks for trying anyway.  Does anyone know what the error even
> indicates?  (ie. that aspell terminated with an error code?  that the
> command couldn't be found?).

Well the first thing, as far as I can see, is that aspell is not the problem
since you say it doesn't work with the default choice.

Having had a look at the source (and applying what primitive skills I have in
that area!) it seems that the 'Error invoking "spell"' message is returned if
the child process spawned for the spell program exits abnormally. This still
seems to leave the two possibilities of an abnormal exit of the spell program
itself or problem finding the executable.

Not helping much here am I? :)

The child process is spawned with execlp() which uses your $PATH variable to
locate the executable. The default is simply specified in the call to execlp
as "spell" which on my system is resolved to /usr/bin/spell and everything
works fine.

The only things I can suggest at the moment (until my programming skills
improve) are

1. What shell are you invoking it from and what is $PATH in that shell?

2. Can you invoke "spell" from the command line?

3. Do both spell (if it is there) and aspell work without exiting abnormally
if run from the command line independently of nano?

(Continue reading)

Jordi Mallach | 4 Jun 2003 12:19
Picon

Re: Aspell pain

Hi,

On Tue, Jun 03, 2003 at 11:10:24AM -0700, Ian Clarke wrote:
> > Have you tried not specifying the path? (it works for me with the path,
> > too, but...).
> Yes, I tried that but the result was the same.

Hrm.

> > This should work, as it's working for me, but as another alternative,
> > try settign the spelling command in your ~/.nanorc. You'll find an
> > example of nanorc in the tarball.
> Just tried that - same result :-(

A quick glance at the spell functions (nano.c) tells me that mesasge is
printed if the speller command returns != 0. Are you able to use aspell
-c from the shell, normally?

Jordi
--

-- 
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
jordi <at> sindominio.net     jordi <at> debian.org     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/~jordi/
_______________________________________________
Help-nano mailing list
Help-nano <at> gnu.org
http://mail.gnu.org/mailman/listinfo/help-nano
(Continue reading)

Ian Clarke | 4 Jun 2003 18:13
Picon

Re: Aspell pain


> A quick glance at the spell functions (nano.c) tells me that message is
> printed if the speller command returns != 0. Are you able to use aspell
> -c from the shell, normally?

You are right - "aspell -c" was failing because I had upgraded aspell 
but for some reason libaspell4 (which contains the English dictionary) 
had not upgraded to aspell-en and aspell could not understand the old 
dictionary files.

It works perfectly now - thanks to everyone for the help.

Ian.

--

-- 
Ian Clarke                			            ian <at> locut.us
Coordinator, The Freenet Project	      http://freenetproject.org/
Founder, Locutus				        http://locut.us/
Personal Homepage				    http://locut.us/ian/

Gmane