On 1/23/07, John McCabe-Dansted <[EMAIL PROTECTED]> wrote: > ChkTex does not create .tex file before running chktex, causing "could > not run chktex successfully" error.
This is caused by runChkTeX outputting the .tex file to the same directory as the lyx file. Fixed in the patch below. > Even if .tex file exists (because it was generated in tmp dir by some > other function), LyX does not display chktex's errors. However the > errors do show up in Document->"LaTeX Log". This is due to a case mismatch between ChkTe*x* and ChkTe*X*. Fixed in the patch below. Index: buffer.C =================================================================== --- buffer.C (revision 16830) +++ buffer.C (working copy) @@ -1145,8 +1145,8 @@ busy(true); // get LaTeX-Filename - string const name = getLatexName(false); string const path = temppath(); + string const name = path + '/' + getLatexName(); string const org_path = filePath(); support::Path p(path); // path to LaTeX file @@ -1167,7 +1167,9 @@ _("Could not run chktex successfully.")); } else if (res > 0) { // Fill-in the error list with the TeX errors - bufferErrors(*this, terr, errorLists_["ChkTex"]); + bufferErrors(*this, terr, errorLists_["ChkTeX"]); + //The following might be cleaner: + //bufferErrors(*this, terr, errorList("ChkTeX")); } busy(false); -- John C. McCabe-Dansted PhD Student University of Western Australia