Thread: [Vim-latex-devel] jump to error problem
Brought to you by:
srinathava,
tmaas
From: ahmet n. <ahm...@ya...> - 2007-08-25 18:43:19
|
I am an addicted user of vim-latex. I can't think any other choice other than it. I have even tried emacs+latex macros but I am not satisfied at all(due to complex keybord keys to complete your job.) I am much faster with vim-latex. I wonder anyboyd has fixed "jump to error" problem in multi-file projects. thanks, Ahmet ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 |
From: Franco S. <sa...@gm...> - 2007-08-25 20:36:44
|
On 8/25/07, ahmet nurlu <ahm...@ya...> wrote: > I wonder anyboyd has fixed "jump to error" problem in > multi-file projects. I think I have experienced what you are talking about, but to be sure, can you explain the problem in more detail? Franco -- |
From: Franco S. <sa...@gm...> - 2007-08-26 05:40:55
|
Jushan, On 8/26/07, Jushan Bai <jus...@ny...> wrote: > Hi Franco, > > Thanks for your willingness to help. Both the file name and and line number appear to be correct. > A simple screen shot is attached (MS doc file). > > Here is the orginal program, no empty lines at the beginning. On the 4th line "lpha" is undefined, > the Quickfix recognize the error, but no jump. > > \documentclass[12pt]{article} > \begin{document} > This is my first paragraph. > Consider the equation $\lpha = \beta$, here ``lpha'' is undefined on purpose. > > This is my second paragraph. > \end{document} As I suspected, the filename is not deduced correctly by latex-suite. In the quickfix window you should see the line ivnote.tex|4 error| Undefined control sequence. \lpha Consider the equation ... but your line is missing "ivnote.tex" at the beginning. I tried your example on my machine, a linux box with vim7, and I have no problem. But I do see this problem sometimes on other files (especially when I am using certain packages). It seems that the latex-suite procedures to detect the errors (including finding the filenames and line numbers) from the latex output isn't satisfactory. I took a look at the code, but was not able to find a way to quickly fix it. The problem is that the latex compilation messages are not consistent across all packages, so the currently defined procedure doesn't always work. I have problems with the xypic package. If the package is loaded and if there is an error in my file, then vim always jumps to the some file that belongs to the xypic package (some .sty file, I think). I'm sending this reply to the list in case someone has any suggestions. But the list seems to be very quite these days. Take care, Franco -- |
From: Jushan B. <jus...@ny...> - 2007-08-26 05:57:24
|
Hi Franco, Thanks for the quick reply. Quickfix recognizes the errors and is able to detect the location of errors, it sounds odd that it cannot deduce the file name that is being compiled? Jushan > Jushan, > > On 8/26/07, Jushan Bai <jus...@ny...> wrote: > > > Hi Franco, > > > > Thanks for your willingness to help. Both the file name and and > line number appear to be correct. > > A simple screen shot is attached (MS doc file). > > > > Here is the orginal program, no empty lines at the beginning. On > the 4th line "lpha" is undefined, > > the Quickfix recognize the error, but no jump. > > > > \documentclass[12pt]{article} > > \begin{document} > > This is my first paragraph. > > Consider the equation $\lpha = \beta$, here ``lpha'' is undefined > on purpose. > > > > This is my second paragraph. > > \end{document} > > As I suspected, the filename is not deduced correctly by latex-suite. > In the quickfix window you should see the line > > ivnote.tex|4 error| Undefined control sequence. \lpha Consider the > equation ... > > but your line is missing "ivnote.tex" at the beginning. > > I tried your example on my machine, a linux box with vim7, and I have > no problem. But I do see this problem sometimes on other files > (especially when I am using certain packages). It seems that the > latex-suite procedures to detect the errors (including finding the > filenames and line numbers) from the latex output isn't satisfactory. > > I took a look at the code, but was not able to find a way to quickly > fix it. The problem is that the latex compilation messages are not > consistent across all packages, so the currently defined procedure > doesn't always work. I have problems with the xypic package. If the > package is loaded and if there is an error in my file, then vim always > jumps to the some file that belongs to the xypic package (some .sty > file, I think). > > I'm sending this reply to the list in case someone has any > suggestions. But the list seems to be very quite these days. > > Take care, > Franco > > -- > |
From: Franco S. <sa...@gm...> - 2007-08-26 14:53:27
|
On 8/26/07, Jushan Bai <jus...@ny...> wrote: > Thanks for the quick reply. Quickfix recognizes the errors and is able to detect the location of errors, it sounds odd that it cannot deduce the file name that is being compiled? LaTeX-suite uses the errorformat variable to define how vim processes the latex output. Although the command is set within the latexsuite files, it is based on the example in the help files. :help errorformat-LaTeX Here is what happens. Vim scans the latex output looking for a filename, then keeps scanning for errors within that filename. It switches filenames when a new filename is found or when it finds something that indicates it is no longer processing the current file. For example, when vim encounters a line of the form (filename.tex it adds filename.tex to its stack of directories, and certain conditions trigger vim to remove the last file from a stack of directories. For example, whenever a line with a solitary ) is processed. In the following excerpt from a logfile sent to me by Jushan offlist, ivnote.tex is added to the directory stack on line 1 and it is removed on the last line. But it should not be. (ivnote.tex LaTeX2e <2005/12/01> Babel <v3.8g> and hyph ... rman, ngerman, french, loaded. ("F:\Program Files\MiKTeX 2.5\tex\latex\base\article.cls" Document Class: article 2005/09/16 v1.4f Standard LaTeX document class ("F:\Program Files\MiKTeX 2.5\tex\latex\base\size12.clo" File: size12.clo 2005/09/16 v1.4f Standard LaTeX file (size option) ) >From what I can tell, it's not easy to detect when I file is no longer being processed, so there are errors in constructing the appropriate directory stack. One way to fix this would be to fix latex so that its output is standardized. Maybe a script to post-process the logfile into something that vim's errorformat can deal with. Any suggestions? Franco -- |
From: ahmet n. <ahm...@ya...> - 2007-08-29 13:36:13
|
I recently have a problem with multiple file latex projects. It was not happening before and has appeared suddenly. My directory layout such as the following: ------------------------------------ thesis/ main.tex main.tex.mainlatex intro/ intro.tex --------------------------------- and my main.tex look like: documentclass{book} \begin{document} \input{intro/intro.tex} \end{document} When I go to the directory "intro"and I open intro.tex. My intro.tex file looks like: --------------------> \chapter{try} this a try ----------------------< When I compile it(\ll), I get some errors as the following: -----------------------------> Error detected while processing function Tex_RunLaTeX..Tex_SetupErrorWindow..Tex _GotoErrorLocation: line 5: E42: No Errors ------------------------------< I am using recent version TexLive and vim7.1.56 in Debian/testing. Any idea? thanks, Ahmet ____________________________________________________________________________________ Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when. http://tv.yahoo.com/collections/222 |
From: Aditya M. <ad...@um...> - 2007-08-29 15:47:34
|
On Wed, 29 Aug 2007, ahmet nurlu wrote: > I recently have a problem with multiple file latex > projects. It was not happening before and has appeared > suddenly. My directory layout such as the following: > ------------------------------------ > thesis/ > main.tex > main.tex.mainlatex ^^^^^^^^^^^ This should be main.tex.latexmain > intro/ > intro.tex > --------------------------------- > and my main.tex look like: > > documentclass{book} > \begin{document} > \input{intro/intro.tex} > \end{document} > > When I go to the directory "intro"and I open > intro.tex. > My intro.tex file looks like: > --------------------> > \chapter{try} > this a try > ----------------------< > > When I compile it(\ll), I get some errors as the > following: > -----------------------------> > Error detected while processing function > Tex_RunLaTeX..Tex_SetupErrorWindow..Tex > _GotoErrorLocation: > line 5: > E42: No Errors > ------------------------------< What is the output of :cl What does the log file (main.log or intro.log) say? Aditya |
From: ahmet n. <ahm...@ya...> - 2007-08-30 14:44:38
|
Hi, "main.tex.mainlatex" was just a typo. The correct of it is "main.tex.latexmain". I post the texput.log file below: ---------------------------------------------> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex 2007.8.4) 30 AUG 2007 17:20 entering extended mode Source specials enabled. %&-line parsing enabled. **main.tex ! Emergency stop. <*> main.tex *** (job aborted, file error in nonstop mode) Here is how much of TeX's memory you used: 3 strings out of 93924 111 string characters out of 1161648 47725 words of memory out of 1500000 3384 multiletter control sequences out of 10000+50000 3640 words of font info for 14 fonts, out of 1200000 for 2000 759 hyphenation exceptions out of 8191 0i,0n,0p,1b,6s stack positions out of 5000i,500n,6000p,200000b,5000s No pages of output. ---------------------------------------------< It looks that When I compile "intro.tex" file, latex compiles "main.tex" but somehow the job is aborted. The output of ":cl" gives: E42:No Errors Regards, Ahmet --- Aditya Mahajan <ad...@um...> wrote: > On Wed, 29 Aug 2007, ahmet nurlu wrote: > > > I recently have a problem with multiple file latex > > projects. It was not happening before and has > appeared > > suddenly. My directory layout such as the > following: > > ------------------------------------ > > thesis/ > > main.tex > > main.tex.mainlatex > ^^^^^^^^^^^ > > This should be main.tex.latexmain > > > intro/ > > intro.tex > > --------------------------------- > > and my main.tex look like: > > > > documentclass{book} > > \begin{document} > > \input{intro/intro.tex} > > \end{document} > > > > When I go to the directory "intro"and I open > > intro.tex. > > My intro.tex file looks like: > > --------------------> > > \chapter{try} > > this a try > > ----------------------< > > > > When I compile it(\ll), I get some errors as the > > following: > > -----------------------------> > > Error detected while processing function > > Tex_RunLaTeX..Tex_SetupErrorWindow..Tex > > _GotoErrorLocation: > > line 5: > > E42: No Errors > > ------------------------------< > > What is the output of :cl > > What does the log file (main.log or intro.log) say? > > Aditya > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > ____________________________________________________________________________________ Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. http://autos.yahoo.com/carfinder/ |
From: Aditya M. <ad...@um...> - 2007-08-30 15:42:33
|
On Thu, 30 Aug 2007, ahmet nurlu wrote: > Hi, > > "main.tex.mainlatex" was just a typo. The correct of > it is "main.tex.latexmain". > > I post the texput.log file below: > > ---------------------------------------------> > > This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) > (format=latex 2007.8.4) 30 AUG 2007 17:20 > entering extended mode > Source specials enabled. > %&-line parsing enabled. > **main.tex > > ! Emergency stop. > <*> main.tex > > > *** (job aborted, file error in nonstop mode) > > > Here is how much of TeX's memory you used: > 3 strings out of 93924 > 111 string characters out of 1161648 > 47725 words of memory out of 1500000 > 3384 multiletter control sequences out of 10000+50000 > 3640 words of font info for 14 fonts, out of 1200000 > for 2000 > 759 hyphenation exceptions out of 8191 > 0i,0n,0p,1b,6s stack positions out of > 5000i,500n,6000p,200000b,5000s > No pages of output. You see, the error message itself contains no line numbers, so there is no way for vim-latex to take you to the correct line number. But something goes wrong in the file very early, no documentclass or packages are loaded. What happens when you compile main.tex on the command line. Can you post the contents of main.tex (either here, or maybe offlist). > ---------------------------------------------< > It looks that When I compile "intro.tex" file, latex > compiles "main.tex" but somehow the job is aborted. main.tex is compiled because of main.tex.latexmain. > > The output of ":cl" gives: > E42:No Errors This is because emergency stop is not captured by the errorformat. Maybe it can be added to it. Aditya > --- Aditya Mahajan <ad...@um...> wrote: > >> On Wed, 29 Aug 2007, ahmet nurlu wrote: >> >>> I recently have a problem with multiple file latex >>> projects. It was not happening before and has >> appeared >>> suddenly. My directory layout such as the >> following: >>> ------------------------------------ >>> thesis/ >>> main.tex >>> main.tex.mainlatex >> ^^^^^^^^^^^ >> >> This should be main.tex.latexmain >> >>> intro/ >>> intro.tex >>> --------------------------------- >>> and my main.tex look like: >>> >>> documentclass{book} >>> \begin{document} >>> \input{intro/intro.tex} >>> \end{document} >>> >>> When I go to the directory "intro"and I open >>> intro.tex. >>> My intro.tex file looks like: >>> --------------------> >>> \chapter{try} >>> this a try >>> ----------------------< >>> >>> When I compile it(\ll), I get some errors as the >>> following: >>> -----------------------------> >>> Error detected while processing function >>> Tex_RunLaTeX..Tex_SetupErrorWindow..Tex >>> _GotoErrorLocation: >>> line 5: >>> E42: No Errors >>> ------------------------------< >> >> What is the output of :cl >> >> What does the log file (main.log or intro.log) say? >> >> Aditya >> >> > ------------------------------------------------------------------------- >> This SF.net email is sponsored by: Splunk Inc. >> Still grepping through log files to find problems? >> Stop. >> Now Search log events and configuration files using >> AJAX and a browser. >> Download your FREE copy of Splunk now >> >> http://get.splunk.com/ >> _______________________________________________ >> Vim-latex-devel mailing list >> Vim...@li... >> > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel >> > > > > ____________________________________________________________________________________ > Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool. > http://autos.yahoo.com/carfinder/ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > > -- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 |
From: ahmet n. <ahm...@ya...> - 2007-08-30 18:15:22
|
Hello Again, I have no problem latexing "main.latex" inside the "thesis" directory. I paste the "main.log" file. -----------------------------------------> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex 2007.8.4) 30 AUG 2007 21:04 entering extended mode %&-line parsing enabled. **main.tex (./main.tex LaTeX2e <2005/12/01> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, croatian, bulgarian, russian, ukrainian, czech, slovak, danish, dut ch, finnish, finnish, french, basque, french, german, ngerman, german, ngerman, greek, monogreek, ancientgreek, ibycus, hungarian, hungarian, italian, italian , latin, latin, mongolian, mongolian, norsk, norsk, coptic, esperanto, estonian , icelandic, indonesian, interlingua, romanian, serbian, slovenian, turkish, up persorbian, welsh, polish, polish, portuguese, portuguese, spanish, catalan, ga lician, spanish, catalan, galician, swedish, swedish, ukenglish, ukenglish, loa ded. (/usr/share/texmf-texlive/tex/latex/base/book.cls Document Class: book 2005/09/16 v1.4f Standard LaTeX document class (/usr/share/texmf-texlive/tex/latex/base/bk10.clo File: bk10.clo 2005/09/16 v1.4f Standard LaTeX file (size option) ) \c@part=\count79 \c@chapter=\count80 \c@section=\count81 \c@subsection=\count82 \c@subsubsection=\count83 \c@paragraph=\count84 \c@subparagraph=\count85 \c@figure=\count86 \c@table=\count87 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (./main.aux) \openout1 = `main.aux'. LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 2. LaTeX Font Info: ... okay on input line 2. (./intro/intro.tex Chapter 1. ) [1 ] (./main.aux) ) Here is how much of TeX's memory you used: 233 strings out of 93924 2441 string characters out of 1161648 48030 words of memory out of 1500000 3593 multiletter control sequences out of 10000+50000 4553 words of font info for 17 fonts, out of 1200000 for 2000 759 hyphenation exceptions out of 8191 23i,4n,17p,134b,123s stack positions out of 5000i,500n,6000p,200000b,5000s Output written on main.dvi (1 page, 356 bytes). --------------------------------------------------< My directory structure as the following: \home\ahmet\thesis\ main.tex main.tex.latexmain \home\ahmet\thesis\intro intro.tex The strange thing is that when I move "intro.tex" into the "thesis directory" in which "main.tex" and "main.tex.latexmain" resides, I can compile "intro.tex" by using "ll" command. "intro.tex" has no diffuculty to find "main.tex.latexmain" if they share the same directory. But the problem arises when I move "intro.tex" into "intro" directory(one level below from "thesis" directory. --- Aditya Mahajan <ad...@um...> wrote: > On Thu, 30 Aug 2007, ahmet nurlu wrote: > > > Hi, > > > > "main.tex.mainlatex" was just a typo. The correct > of > > it is "main.tex.latexmain". > > > > I post the texput.log file below: > > > > ---------------------------------------------> > > > > This is pdfTeXk, Version 3.141592-1.40.3 (Web2C > 7.5.6) > > (format=latex 2007.8.4) 30 AUG 2007 17:20 > > entering extended mode > > Source specials enabled. > > %&-line parsing enabled. > > **main.tex > > > > ! Emergency stop. > > <*> main.tex > > > > > > *** (job aborted, file error in nonstop mode) > > > > > > Here is how much of TeX's memory you used: > > 3 strings out of 93924 > > 111 string characters out of 1161648 > > 47725 words of memory out of 1500000 > > 3384 multiletter control sequences out of > 10000+50000 > > 3640 words of font info for 14 fonts, out of > 1200000 > > for 2000 > > 759 hyphenation exceptions out of 8191 > > 0i,0n,0p,1b,6s stack positions out of > > 5000i,500n,6000p,200000b,5000s > > No pages of output. > > > You see, the error message itself contains no line > numbers, so there > is no way for vim-latex to take you to the correct > line number. But > something goes wrong in the file very early, no > documentclass or > packages are loaded. What happens when you compile > main.tex on the > command line. Can you post the contents of main.tex > (either here, or > maybe offlist). > > > > ---------------------------------------------< > > It looks that When I compile "intro.tex" file, > latex > > compiles "main.tex" but somehow the job is > aborted. > > main.tex is compiled because of main.tex.latexmain. > > > > > The output of ":cl" gives: > > E42:No Errors > > This is because emergency stop is not captured by > the errorformat. > Maybe it can be added to it. > > > Aditya > > > > --- Aditya Mahajan <ad...@um...> wrote: > > > >> On Wed, 29 Aug 2007, ahmet nurlu wrote: > >> > >>> I recently have a problem with multiple file > latex > >>> projects. It was not happening before and has > >> appeared > >>> suddenly. My directory layout such as the > >> following: > >>> ------------------------------------ > >>> thesis/ > >>> main.tex > >>> main.tex.mainlatex > >> ^^^^^^^^^^^ > >> > >> This should be main.tex.latexmain > >> > >>> intro/ > >>> intro.tex > >>> --------------------------------- > >>> and my main.tex look like: > >>> > >>> documentclass{book} > >>> \begin{document} > >>> \input{intro/intro.tex} > >>> \end{document} > >>> > >>> When I go to the directory "intro"and I open > >>> intro.tex. > >>> My intro.tex file looks like: > >>> --------------------> > >>> \chapter{try} > >>> this a try > >>> ----------------------< > >>> > >>> When I compile it(\ll), I get some errors as > the > >>> following: > >>> -----------------------------> > >>> Error detected while processing function > >>> Tex_RunLaTeX..Tex_SetupErrorWindow..Tex > >>> _GotoErrorLocation: > >>> line 5: > >>> E42: No Errors > >>> ------------------------------< > >> > >> What is the output of :cl > >> > >> What does the log file (main.log or intro.log) > say? > >> > >> Aditya > >> > >> > > > ------------------------------------------------------------------------- > >> This SF.net email is sponsored by: Splunk Inc. > >> Still grepping through log files to find > problems? > >> Stop. > >> Now Search log events and configuration files > using > >> AJAX and a browser. > >> Download your FREE copy of Splunk now >> > >> http://get.splunk.com/ > >> _______________________________________________ > >> Vim-latex-devel mailing list > >> Vim...@li... > >> > > > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > >> > > > > > > > > > ____________________________________________________________________________________ > > Choose the right car based on your needs. Check > out Yahoo! Autos new Car Finder tool. > > http://autos.yahoo.com/carfinder/ > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? > Stop. > > Now Search log events and configuration files > using AJAX and a browser. > > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > > _______________________________________________ > > Vim-latex-devel mailing list > > Vim...@li... > > > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > > > > > > > > -- > Aditya Mahajan | EECS Systems, University of > Michigan > http://www.eecs.umich.edu/~adityam | Ph: > 734.262.4008 > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? > Stop. > Now Search log events and configuration files using > AJAX and a browser. > Download your FREE copy of Splunk now >> > http://get.splunk.com/ > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC |
From: ahmet n. <ahm...@ya...> - 2007-08-31 11:43:21
|
It looks that gvim version 7.1.56 causes problems preventing latexing a multiple file project. I compiled gvim version 6.4 from source today and have no problem using it for a multiple file project. It looks that vim-latex suite doesn't keep up pace with newer version of vims. Regards, Ahmet ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ |
From: ahmet n. <ahm...@ya...> - 2007-09-01 20:34:17
|
Hi, In the latest version of vim-latex(latexSuite20060325.zip from http://vim-latex.sourceforge.net/), some patches has not been applied yet, such as "F5" completion problem. Some of these problems have been fixed in debian version of vim-latex. I wonder somebody could apply these patches proposed by Franz Pletz into 20060325. thanks, Ahmet ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC |