Truncated spell file?

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Truncated spell file?

Bill McCarthy
Hello Vim Developers,

After building 82, I get:

[c:\vim\vim70aa\src].\vim -u NONE -N -n
Error detected while processing C:\vim\vim70aa\runtime\spell\en.latin1.spl:
E758: Truncated spell file

Build 81 works fine with that file.

--
Best regards,
Bill


Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

A.J.Mechelynck
Bill McCarthy wrote:

> Hello Vim Developers,
>
> After building 82, I get:
>
> [c:\vim\vim70aa\src].\vim -u NONE -N -n
> Error detected while processing C:\vim\vim70aa\runtime\spell\en.latin1.spl:
> E758: Truncated spell file
>
> Build 81 works fine with that file.
>

I got the same on loading gvim. I tabled the matter temporarily since I
don't use spell checking myself. But on thinking back: I leave the
'spell' option at its default of FALSE, why should gvim show that error
popup while starting up? Oughtn't it to leave all spell-check files
alone until or unless 'spell' is turned on?


Best regards,
Tony.

Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

Bram Moolenaar

Tony Mechelynck wrote:

> Bill McCarthy wrote:
> > Hello Vim Developers,
> >
> > After building 82, I get:
> >
> > [c:\vim\vim70aa\src].\vim -u NONE -N -n
> > Error detected while processing C:\vim\vim70aa\runtime\spell\en.latin1.spl:
> > E758: Truncated spell file
> >
> > Build 81 works fine with that file.
> >
>
> I got the same on loading gvim. I tabled the matter temporarily since I
> don't use spell checking myself. But on thinking back: I leave the
> 'spell' option at its default of FALSE, why should gvim show that error
> popup while starting up? Oughtn't it to leave all spell-check files
> alone until or unless 'spell' is turned on?

Strange, I don't see that problem and I don't see the spell file being
loaded.  I did change the default for "spelllang" to "en", that very
likely has something to do with this.  But the spell file shouldn't be
loaded before 'spell' is set.  This smells like an uninitialized
variable...

--
The future isn't what it used to be.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

Bram Moolenaar
In reply to this post by Bill McCarthy

Johnny Blaze wrote:

> On 6/8/05, Bill McCarthy <[hidden email]> wrote:
> >
> > Hello Vim Developers,
> >
> > After building 82, I get:
> >
> > [c:\vim\vim70aa\src].\vim -u NONE -N -n
> > Error detected while processing
> > C:\vim\vim70aa\runtime\spell\en.latin1.spl:
> > E758: Truncated spell file
> >
> > Build 81 works fine with that file.
>
> same here... I tried using the spl files from the ftp'd zip archive
> and from CVS... the spl files in the zip were different, but produced
> the same error.

I can't reproduce it.  Any idea what options/features trigger the
problem?

I did change quite a few things in spell checking yesterday, can't guess
which one of them would cause this kind of problem.

--
Well, you come from nothing, you go back to nothing...  What have you
lost?  Nothing!
                                -- Monty Python: The life of Brian

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

A.J.Mechelynck
In reply to this post by Bram Moolenaar
Bram Moolenaar wrote:

> Tony Mechelynck wrote:
>
>
>>Bill McCarthy wrote:
>>
>>>Hello Vim Developers,
>>>
>>>After building 82, I get:
>>>
>>>[c:\vim\vim70aa\src].\vim -u NONE -N -n
>>>Error detected while processing C:\vim\vim70aa\runtime\spell\en.latin1.spl:
>>>E758: Truncated spell file
>>>
>>>Build 81 works fine with that file.
>>>
>>
>>I got the same on loading gvim. I tabled the matter temporarily since I
>>don't use spell checking myself. But on thinking back: I leave the
>>'spell' option at its default of FALSE, why should gvim show that error
>>popup while starting up? Oughtn't it to leave all spell-check files
>>alone until or unless 'spell' is turned on?
>
>
> Strange, I don't see that problem and I don't see the spell file being
> loaded.  I did change the default for "spelllang" to "en", that very
> likely has something to do with this.  But the spell file shouldn't be
> loaded before 'spell' is set.  This smells like an uninitialized
> variable...
>

I have (among others) the following lines in my vimrc:

if ! &verbose
        au VimEnter * set verbose=1
        au VimLeave * set verbose=0
endif

However,
        (a) I see the error in gvim as an error popup and not as an error at
the bottom of the GUI window;
        (b) Bill sees it in console vim with -u NONE -N -n

The latter makes me believe that the "verbose" setting is irrelevant.

Could it have been an error while zipping the snapshot? (Bram, is the
en.latin1 spellfile in the 82nd snapshot zip identical with the one on
your development system?) But even if it was, IMHO as long as 'nospell'
is set (which is the default), there should be no read of the spellfile.

-- I notice that both Bill and I are on Windows. Could it be a misplaced
#ifdef ?

Or else, if Bill uses my builds, the error could be here. I'll try to
rebuild and see if it helps.


Best regards,
Tony.

Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

A.J.Mechelynck
In reply to this post by Bram Moolenaar
Bram Moolenaar wrote:

> Johnny Blaze wrote:
>
>
>>On 6/8/05, Bill McCarthy <[hidden email]> wrote:
>>
>>>Hello Vim Developers,
>>>
>>>After building 82, I get:
>>>
>>>[c:\vim\vim70aa\src].\vim -u NONE -N -n
>>>Error detected while processing
>>>C:\vim\vim70aa\runtime\spell\en.latin1.spl:
>>>E758: Truncated spell file
>>>
>>>Build 81 works fine with that file.
>>
>>same here... I tried using the spl files from the ftp'd zip archive
>>and from CVS... the spl files in the zip were different, but produced
>>the same error.
>
>
> I can't reproduce it.  Any idea what options/features trigger the
> problem?
>
> I did change quite a few things in spell checking yesterday, can't guess
> which one of them would cause this kind of problem.
>

No idea. I'm building a full-featured (some would possibly say
"bloated") big version for W32 with all five interpreted languages; I
see the error in the GUI+OLE version (":version" listing here at bottom)
and also (like Bill) in the corresponding console version.

-- The error appears in French here (but about the en.latin1 spell
file). French error text means it was triggered either before sourcing
the ~/_vimrc, or at the latest while handling one of the following,
which are at the very top of my ~/_vimrc:

        set nocompatible
        if has("unix")
                language messages C
        else
                language messages en
        endif

Best regards,
Tony.


VIM - Vi IMproved 7.0aa ALPHA (2005 Jun 7, compiled Jun  8 2005 00:54:57)
MS-Windows 32 bit GUI version with OLE support
Compiled by [hidden email]
Big version with GUI.  Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent +clientserver +clipboard +cmdline_compl +cmdline_hist
+cmdline_info +comments +cryptv +cscope +dialog_con_gui +diff +digraphs
-dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +folding -footer +gettext/dyn -hangul_input
+iconv/dyn +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse +mouseshape +multi_byte_ime/dyn +multi_lang
+mzscheme/dyn
+netbeans_intg +ole -osfiletype +path_extra +perl/dyn -postscript
+printer -profile +python/dyn +quickfix +rightleft +ruby/dyn +scrollbind
+signs +smartindent -sniff +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white +tcl/dyn -tgetent -termresponse
+textobjects +title +toolbar +user_commands +vertsplit +virtualedit
+visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows
+writebackup -xfontset -xim -xterm_save -xpm_w32
   system vimrc file: "$VIM\vimrc"
     user vimrc file: "$HOME\_vimrc"
 2nd user vimrc file: "$VIM\_vimrc"
      user exrc file: "$HOME\_exrc"
  2nd user exrc file: "$VIM\_exrc"
  system gvimrc file: "$VIM\gvimrc"
    user gvimrc file: "$HOME\_gvimrc"
2nd user gvimrc file: "$VIM\_gvimrc"
    system menu file: "$VIMRUNTIME\menu.vim"
Compilation: gcc -O3 -fomit-frame-pointer -freg-struct-return
-fno-strength-reduce -DWIN32 -DHAVE_PATHDEF -DFEAT_BIG -DWINVER=0x0400
-D_WIN32_WINNT=0x0400 -DFEAT_PERL -DDYNAMIC_PERL
-DDYNAMIC_PERL_DLL="perl58.dll" -DFEAT_PYTHON -DDYNAMIC_PYTHON
-DDYNAMIC_PYTHON_DLL="python24.dll" -DFEAT_RUBY -DDYNAMIC_RUBY
-DDYNAMIC_RUBY_DLL="msvcrt-ruby18.dll" -DDYNAMIC_RUBY_VER=18
-DFEAT_MZSCHEME -DDYNAMIC_MZSCHEME
-DDYNAMIC_MZSCH_DLL="libmzsch209_000.dll"
-DDYNAMIC_MZGC_DLL="libmzgc209_000.dll" -DFEAT_TCL -DDYNAMIC_TCL
-DDYNAMIC_TCL_DLL="tcl83.dll" -DDYNAMIC_GETTEXT -DDYNAMIC_ICONV
-DFEAT_MBYTE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_CSCOPE
-DFEAT_NETBEANS_INTG -DFEAT_GUI_W32 -DFEAT_CLIPBOARD -DFEAT_OLE
-march=i386 -Iproto -I/cygdrive/c/Perl/lib/CORE
-I/cygdrive/c/Python24/include
-I/cygdrive/c/ruby/lib/ruby/1.8/i386-mswin32
-I/cygdrive/c/PROGRA~1/MZSCHEME/include -I/cygdrive/c/ruby/include -s
-mno-cygwin
Linking: gcc -s -o gvim.exe  -luuid -lole32
/cygdrive/c/ruby/lib/tclstub83.lib -lwsock32 -mwindows -lcomctl32
-loleaut32 -lstdc++

Reply | Threaded
Open this post in threaded view
|

Re: [P.S.] Truncated spell file?

A.J.Mechelynck
In reply to this post by A.J.Mechelynck
A. J. Mechelynck wrote:
[...]
> Or else, if Bill uses my builds, the error could be here. I'll try to
> rebuild and see if it helps.
>
>
> Best regards,
> Tony.

It doesn't, even after re-unzipping the zipfile with "overwrite existing
files" and without "skip older files" (i.e., in Clobber mode).

I notice that the error appears even (at the very top of the output)
when doing

        vim --version


Best regards,
Tony.

Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

Bram Moolenaar
In reply to this post by A.J.Mechelynck

Tony Mechelynck wrote:

> >>>After building 82, I get:
> >>>
> >>>[c:\vim\vim70aa\src].\vim -u NONE -N -n
> >>>Error detected while processing C:\vim\vim70aa\runtime\spell\en.latin1.spl:
> >>>E758: Truncated spell file
> >>>
> >>>Build 81 works fine with that file.
> >
> > Strange, I don't see that problem and I don't see the spell file being
> > loaded.  I did change the default for "spelllang" to "en", that very
> > likely has something to do with this.  But the spell file shouldn't be
> > loaded before 'spell' is set.  This smells like an uninitialized
> > variable...
>
> I have (among others) the following lines in my vimrc:
>
> if ! &verbose
> au VimEnter * set verbose=1
> au VimLeave * set verbose=0
> endif
>
> However,
> (a) I see the error in gvim as an error popup and not as an error at
> the bottom of the GUI window;
> (b) Bill sees it in console vim with -u NONE -N -n
>
> The latter makes me believe that the "verbose" setting is irrelevant.

When using "-u NONE" the .vimrc shouldn't matter.

> Could it have been an error while zipping the snapshot? (Bram, is the
> en.latin1 spellfile in the 82nd snapshot zip identical with the one on
> your development system?) But even if it was, IMHO as long as 'nospell'
> is set (which is the default), there should be no read of the spellfile.

The zip file has a checksum, thus if it's damaged you would have
noticed.  The file size is identical to what I have and the .spl file is
identical too.

> -- I notice that both Bill and I are on Windows. Could it be a misplaced
> #ifdef ?
>
> Or else, if Bill uses my builds, the error could be here. I'll try to
> rebuild and see if it helps.

I only tried on Unix, it could be a Win32 problem.  Or something with
build options.  I'll try building on Win XP.

--
hundred-and-one symptoms of being an internet addict:
40. You tell the cab driver you live at
    http://123.elm.street/house/bluetrim.html
41. You actually try that 123.elm.street address.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Reply | Threaded
Open this post in threaded view
|

Re: [P.S.] Truncated spell file?

Bram Moolenaar
In reply to this post by A.J.Mechelynck

A. J. Mechelynck wrote:

> It doesn't, even after re-unzipping the zipfile with "overwrite existing
> files" and without "skip older files" (i.e., in Clobber mode).
>
> I notice that the error appears even (at the very top of the output)
> when doing
>
> vim --version

I found the problem: when initializing the 'encoding' Vim may try to
reload the spell files.  There was no check for 'spell' being set there.
This patch should solve it:


--- spell.c 7 Jun 2005 20:59:25 -0000 1.16
+++ spell.c 8 Jun 2005 12:24:26 -0000
@@ -1362,6 +1362,7 @@
 {
     buf_T *buf;
     slang_T *lp;
+    win_T *wp;
 
     /* Initialize the table for SPELL_ISWORDP(). */
     init_spell_chartab();
@@ -1378,8 +1379,20 @@
     for (buf = firstbuf; buf != NULL; buf = buf->b_next)
     {
  ga_clear(&buf->b_langp);
+
+ /* Only load the wordlists when 'spelllang' is set and there is a
+ * window for this buffer in which 'spell' is set. */
  if (*buf->b_p_spl != NUL)
-    did_set_spelllang(buf);
+ {
+    FOR_ALL_WINDOWS(wp)
+ if (wp->w_buffer == buf && wp->w_p_spell)
+ {
+    (void)did_set_spelllang(buf);
+# ifdef FEAT_WINDOWS
+    break;
+# endif
+ }
+ }
     }
 }
 # endif

--
hundred-and-one symptoms of being an internet addict:
42. Your virtual girlfriend finds a new net sweetheart with a larger bandwidth.

 /// Bram Moolenaar -- [hidden email] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

Bill McCarthy
On Wed 8-Jun-05 7:30am -0500, Bram Moolenaar wrote:

> This patch should solve it:

It worked beautifully here.  Thanks!

--
Best regards,
Bill


Reply | Threaded
Open this post in threaded view
|

Re: Truncated spell file?

A.J.Mechelynck
Bill McCarthy wrote:
> On Wed 8-Jun-05 7:30am -0500, Bram Moolenaar wrote:
>
>
>>This patch should solve it:
>
>
> It worked beautifully here.  Thanks!
>

Here too. I'll soon upload it. When you see on my site a zipfile with a
name ending in 7.0aa.0082a.zip, that will be it.


Best regards,
Tony.