[Vim-latex-devel] Error reporting problem with dependency chain
Brought to you by:
srinathava,
tmaas
From: Jason K. H. <jho...@ma...> - 2005-12-12 17:55:38
|
I observed the following problem with latex suite. When compiling with a dependency chain, say (dvi, ps) for example, if an error occurs in the dvi compile, it is not correctly reported. What happens is that the loop in Run_Latex continues to call Tex_CompileLatex or Tex_CompileMultipleTimes even after a previous error has occurred. By the time Tex_SetupErrorWindow is called, the previous :cwindow errors have been replaced (erased) by the latest :make command. One possible fix to this problem is attached. Tex_SetupErrorWindow was modified to return a true value if an error is detected in :cwindow. Tex_SetupErrorWindow is also called after every iteration of the dependency chain loop. If an error is detected, then a flag is set which prevents future calls to the Compile functions, and thus preserves the :cwindow information. Since bailing out of the dependency chain while-loop prematurely will leave s:target having the incorrect value, the loop iteration continues through the dependency list, but with no calls to the Compile functions. Perhaps there is a more elegant way of doing all this, by knowledge of vim programming is limited. Hope it helps. -- Jason K. Howlett U.S. Army Aeroflightdynamics Directorate NASA Ames Research Center Phone: 650-604-5374 Mail Stop 243-11 Fax: 650-604-0181 Moffett Field, CA 94035-1000 mailto: jho...@ma... |