Hi,
this already cropped up in the list: sometimes the Latex bundle does not catch errors which are however catched by TeXshop (and by collaborators :). But if you look into the .log file you see that the error was correctly identified by TeX, so the problem must be in the bundle.
To reproduce, create a new .tex file containing
\documentclass{article} \begin{document} \begin{equation} \frac a b } \end{equation} \end{document}
(notice the unmatched brace).
If you save the file as "a.tex" and run CMD-R, the error is caught (catched?).
Now the fun: save the file as "a-b.tex" (a hyphen must be in the name) and run CMD-R again. The error is not caught (but is reported in the a-b.log file).
So Haris: this has something to do with how the bundle handles files. Or not?
Piero
PS happy new year everybody!
On Jan 4, 2007, at 7:10 AM, Piero D'Ancona wrote:
To reproduce, create a new .tex file containing
Thanks for the great minimal example, I can definitely reproduce it here. Very interesting! I'm leaving for a conference in a couple of hours, but I'll try to take a look at it when I get a moment. I am guessing it might have to do with the following line in Support/bin/ latexErrWarnHtml.py:
errPat = re.compile('^([./\w\x7f-\xff]+.tex):(\d+):.*')
I don't know much about Python so it would take me some time to figure it out exactly, but I wonder if this would match:
./a.tex:4: Extra }, or forgotten $.
but not:
./a-b.tex:4: Extra }, or forgotten $.
hence causing the problem we are seeing. I am just not sur what the \x7f-\xff stuff is doing, but it seems the part of the pattern referring to the filename is a bit restrictive. Perhaps some Python guru can help us out a bit here. Brad? Jacob?
Haris
Haris,
\xhh is the the character with hex value hh. So \x7f-\xff is the range of characters from \x7f to \xff. Everything else in there is just regular expression syntax. So, the reason that the regular expression doesn't match "./a-b.tex" is that the "-" character isn't matched in that regex. I think there are probably other valid characters that aren't matched.
– Alex
On Jan 4, 2007, at 4:58 AM, Charilaos Skiadas wrote:
On Jan 4, 2007, at 7:10 AM, Piero D'Ancona wrote:
To reproduce, create a new .tex file containing
Thanks for the great minimal example, I can definitely reproduce it here. Very interesting! I'm leaving for a conference in a couple of hours, but I'll try to take a look at it when I get a moment. I am guessing it might have to do with the following line in Support/bin/ latexErrWarnHtml.py:
errPat = re.compile('^([./\w\x7f-\xff]+.tex):(\d+):.*')
I don't know much about Python so it would take me some time to figure it out exactly, but I wonder if this would match:
./a.tex:4: Extra }, or forgotten $.
but not:
./a-b.tex:4: Extra }, or forgotten $.
hence causing the problem we are seeing. I am just not sur what the \x7f-\xff stuff is doing, but it seems the part of the pattern referring to the filename is a bit restrictive. Perhaps some Python guru can help us out a bit here. Brad? Jacob?
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate