Thread: [Vim-latex-devel] grep, and bug(?)
Brought to you by:
srinathava,
tmaas
From: Berta M. <ber...@ar...> - 2004-05-29 18:24:21
|
1) I have problem with completition, <F9>. I use grep program mentioned in FAQ. I installed it, it works on command-line (DOS console) from every directory in my computer with path "c:\progra~1\gnuwin32\bin\grep" and option "-nH" very well, I used to compare the grep output on the same file(s) using Linux, they were totally identical. In my _vimrc there stays set grepprg=c:\progra~1\gnuwin32\bin\grep.exe\ -nH\ $* But nothing happens if I stay in \ref{}, in INSERT mode of course. Has anybody an idea where's my mistake? 2) I write <begin writting> \begin{array} <end writting> than I want to close environment so I continue <begin writting> \begin{array} \end{ <end writting> The tab appears, it's ok, but when I close curly brackets, such thing happens: <begin writting> \begin{array} \end{<++>} <end writting> and the cursor is on the end of line. I am awaiting <begin writting> \begin{array} \end{}<++> <end writting> with the cursor between curly brackets Is this a bug? Milan Berta |
From: Srinath A. <sr...@fa...> - 2004-05-30 06:47:53
|
Could you please let me know when was the last time you downloaded latex-suite? If it was a while ago, try with the latest release. Infact try with the latest release just to make sure we are all on the same page. On Sat, 29 May 2004, Berta Milan wrote: > 1) I have problem with completition, <F9>. I use grep > program mentioned in FAQ. I installed it, it works on > command-line (DOS console) from every directory in my > computer with path "c:\progra~1\gnuwin32\bin\grep" and > option "-nH" very well, I used to compare the grep output on > the same file(s) using > Linux, they were totally identical. > > In my _vimrc there stays > > set grepprg=c:\progra~1\gnuwin32\bin\grep.exe\ -nH\ $* > > But nothing happens if I stay in \ref{}, in INSERT mode of > course. Try putting: :let g:Tex_Debug = 1 And after pressing <F9> from between the braces of a \ref{} tell me what :call Tex_PrintDebug('view') says. That should give a clue as to what latex-suite is trying to do and what is not working. > 2) I write > > <begin writting> > \begin{array} > <end writting> > > <begin writting> > \begin{array} > \end{<++>} > <end writting> This is a bug. I can reproduce it. I'll let you know as soon as I find a fix. In the meanwhile, the recommended way of entering environments in latex-suite is to type array<F5> This will automatically get converted to \begin{array}[<+position+>]{<+format+>} <++> \end{array}<++> Srinath |
From: Berta M. <ber...@ar...> - 2004-05-30 12:54:10
|
On Sat, May 29, 2004 at 11:44:35PM -0700, Srinath Avadhanula wrote: > Could you please let me know when was the last time you downloaded > latex-suite? If it was a while ago, try with the latest release. > Infact try with the latest release just to make sure we are all on the > same page. Ok, I downloaded the (newest) version 1.5 of LaTeX-Suite. I am using gvim 6.2 on WinXP. > On Sat, 29 May 2004, Berta Milan wrote: > > > 1) I have problem with completition, <F9>. I use grep > > program mentioned in FAQ. I installed it, it works on > > command-line (DOS console) from every directory in my > > computer with path "c:\progra~1\gnuwin32\bin\grep" and > > option "-nH" very well, I used to compare the grep output on > > the same file(s) using > > Linux, they were totally identical. > > > > In my _vimrc there stays > > > > set grepprg=c:\progra~1\gnuwin32\bin\grep.exe\ -nH\ $* > > > > But nothing happens if I stay in \ref{}, in INSERT mode of > > course. > > Try putting: > :let g:Tex_Debug = 1 > > And after pressing <F9> from between the braces of a \ref{} tell me what > :call Tex_PrintDebug('view') > > says. That should give a clue as to what latex-suite is trying to do and > what is not working. My gvim automatically use czech language (probably because of czech WinXP :) so I try to translate the output: <begin of output> Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..Tex_Debug: line 13: E121: Variable not defined: s:debugString_ E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..<SNR>45_Tex_SyncPreviewWindow..Tex_Debug: line 13: E121: Variable not defined: s:debugString_ E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" No bibkey, label or word begging with "" E121: Variable not defined: s:debugString_ E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..Tex_Debug: line 13: E121: Variable not defined: s:debugString_ E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" Press ENTER.... <end of output> Hopping this is the mirror of my output and no line wrap (error output should contains 15 lines, 16th is "Press ENTER..."). Some lines are the same, so it was not a hard work :) Than I press ENTER and nothing happens. Milan |
From: Berta M. <ber...@ar...> - 2004-06-01 12:06:50
|
On Sun, May 30, 2004 at 02:54:05PM +0200, Berta Milan wrote: > On Sat, May 29, 2004 at 11:44:35PM -0700, Srinath Avadhanula wrote: > > Could you please let me know when was the last time you downloaded > > latex-suite? If it was a while ago, try with the latest release. > > Infact try with the latest release just to make sure we are all on the > > same page. > > OK, I downloaded the (newest) version 1.5 of LaTeX-Suite. > I am using gvim 6.2 on WinXP. > > > On Sat, 29 May 2004, Berta Milan wrote: > > > > > 1) I have problem with completition, <F9>. I use grep > > > program mentioned in FAQ. I installed it, it works on > > > command-line (DOS console) from every directory in my > > > computer with path "c:\progra~1\gnuwin32\bin\grep" and > > > option "-nH" very well, I used to compare the grep output on > > > the same file(s) using > > > Linux, they were totally identical. > > > > > > In my _vimrc there stays > > > > > > set grepprg=c:\progra~1\gnuwin32\bin\grep.exe\ -nH\ $* B > > > > > > But nothing happens if I stay in \ref{}, in INSERT mode of > > > course. > > > > Try putting: > > :let g:Tex_Debug = 1 > > > > And after pressing <F9> from between the braces of a \ref{} tell me what > > :call Tex_PrintDebug('view') > > > > says. That should give a clue as to what latex-suite is trying to do and > > what is not working. > > My gvim automatically use czech language (probably because > of czech WinXP :) so I try to translate the output: > > <begin of output> > > Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..Tex_Debug: > line 13: > E121: Variable not defined: s:debugString_ > E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" > Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..<SNR>45_Tex_SyncPreviewWindow..Tex_Debug: > line 13: > E121: Variable not defined: s:debugString_ > E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" > No bibkey, label or word begging with "" > E121: Variable not defined: s:debugString_ > E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" > Error processing function TeX_Complete..<SNR>45_Tex_SetupCWindow..Tex_Debug: > line 13: > E121: Variable not defined: s:debugString_ > E15: Bad expression: s:debugString_.pattern.' : '.a:str."\n" > Press ENTER.... > > <end of output> > > Hopping this is the mirror of my output and no line wrap > (error output should contains 15 lines, 16th is "Press > ENTER..."). Some lines are the same, so it was not a hard > work :) Than I press ENTER and nothing happens. > > Milan I've misunderstood Your message. So the upper several lines are written by gvim only after pressing <F9> the lower ones after :call Tex_PrintDebug('view') immediately after <F9> <begin of output of :call Tex_PrintDebug('view')> s:type = ref, typeoption = silent! grep! '\\label{' *.tex +Tex_SetupCWindow +Tex_SyncPreviewWindow Tex_SyncPreviewWindow: got error E32, no matches found, quitting not in quickfix window, quitting <end of output of :call Tex_PrintDebug('view')> My mistake, sorry. As I mentioned, I use 'grep.exe', same output as grep on Linux with the same file(s). The latest test I made with grep within the directory with set grepprg=grep\ -nH\ $* in my _vimrc file. Milan |
From: Srinath A. <sr...@fa...> - 2004-06-01 19:44:43
|
On Tue, 1 Jun 2004, Berta Milan wrote: > On Sun, May 30, 2004 at 02:54:05PM +0200, Berta Milan wrote: > the lower ones after > > :call Tex_PrintDebug('view') > > immediately after <F9> > > <begin of output of :call Tex_PrintDebug('view')> > > s:type = ref, typeoption = > silent! grep! '\\label{' *.tex > +Tex_SetupCWindow > +Tex_SyncPreviewWindow > Tex_SyncPreviewWindow: got error E32, no matches found, quitting > not in quickfix window, quitting > This is strange! In yesterday's email you said that you had the latest version of latex-suite, but this debug message seems to imply that you have a pretty old version. I meant to download the latest developement version, not the latest 1.5 release. When I try this, I see something like: -----------------------%<----------------------- texviewer.vim: Catching LatexSuiteFileType event Tex_Complete: s:type = ref, typeoption = Tex_Complete: calling Tex_GrepHelper +Tex_ScanFileForLabels: grepping in file [b.tex] +Tex_SetupCWindow +Tex_SyncPreviewWindow -----------------------%<----------------------- Please make sure you have the latest version! Srinath |
From: Berta M. <ber...@ar...> - 2004-06-01 21:44:50
|
On Tue, Jun 01, 2004 at 12:46:50PM -0700, Srinath Avadhanula wrote: > On Tue, 1 Jun 2004, Berta Milan wrote: > > > On Sun, May 30, 2004 at 02:54:05PM +0200, Berta Milan wrote: > > the lower ones after > > > > :call Tex_PrintDebug('view') > > > > immediately after <F9> > > > > <begin of output of :call Tex_PrintDebug('view')> > > > > s:type = ref, typeoption = > > silent! grep! '\\label{' *.tex > > +Tex_SetupCWindow > > +Tex_SyncPreviewWindow > > Tex_SyncPreviewWindow: got error E32, no matches found, quitting > > not in quickfix window, quitting > > > > This is strange! In yesterday's email you said that you had the latest > version of latex-suite, but this debug message seems to imply that you > have a pretty old version. I meant to download the latest developement > version, not the latest 1.5 release. > > When I try this, I see something like: > > -----------------------%<----------------------- > texviewer.vim: Catching LatexSuiteFileType event > Tex_Complete: s:type = ref, typeoption = > Tex_Complete: calling Tex_GrepHelper > +Tex_ScanFileForLabels: grepping in file [b.tex] > +Tex_SetupCWindow > +Tex_SyncPreviewWindow > -----------------------%<----------------------- > > Please make sure you have the latest version! > > Srinath I downloaded the latest version [2004/05/24] finally. Now I can see the similar output as yours (after :call Tex_PrintDebug('view')). And also the completition (<F9>) works the way that I want (so I get the windows with all \label{...}s). Thanks You very much! I send additional information about the error output after pressing <F9>: The first run of <F9>: <begin> Error running function Tex_Complete..Tex_GrepHelper..Tex_ScanFileForLabels..Tex_ScanFileForLabels: line 28: E121: Variable not defined: foundCiteFile E121: Variable not defined: foundCiteFile E15: Bad expression: foundCiteFile <end> All other runs of <F9>: <begin> E121: Variable not defined: foundCiteFile E121: Variable not defined: foundCiteFile E15: Bad expression: foundCiteFile <end> Now (if there is some \label{}) the window with \label{}s open. Milan |