Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-19 Thread Juergen Spitzmueller
Bernhard Roider wrote: > if we know the possible extensions we could parse for them exactly (to > avoid false matches). We don't know really. There might be specific extendions from packages (but I'm not sure about that). > otherwise i see no problem to keep your first version. I've committed

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Bernhard Roider
Jürgen Spitzmüller schrieb: Bernhard Roider wrote: i am not familiar with the possible filenames, thus the question: do all kinds of filenames that can appear in that output have an extension and does that extension never contain digits? As far as I understand it, yes. Basically, this should b

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Jürgen Spitzmüller
Bernhard Roider wrote: > i am not familiar with the possible filenames, thus the question: do all > kinds of filenames that can appear in that output have an extension and > does that extension never contain digits? As far as I understand it, yes. Basically, this should be *.tex files (and probab

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Bernhard Roider
Jürgen Spitzmüller schrieb: Bernhard Roider wrote: I did not test it, but i would suggest this regular expression: + static regex file_line_error("[^:]+:[0-9]+: (.+)"); I'm not sure. We have to be careful that no other construct matches this regex. My version checks for the dot, which

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Jürgen Spitzmüller
Bernhard Roider wrote: > I did not test it, but i would suggest this regular expression: > > +   static regex file_line_error("[^:]+:[0-9]+: (.+)"); I'm not sure. We have to be careful that no other construct matches this regex. My version checks for the dot, which should always be present in

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Bernhard Roider
Jürgen Spitzmüller schrieb: ...general, please tell me if the regex could be improved. The message style we are looking for is: filename.tex:: I did not test it, but i would suggest this regular expression: + static regex file_line_error("[^:]+:[0-9]+: (.+)"); and if there is one mes

Re: [patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread José Matos
On Tuesday 18 September 2007 09:33:02 Jürgen Spitzmüller wrote: > If there are no objections, I'd like to put this in branch and trunk. > > Jürgen > > * from the tex man page: > "-file-line-error: Print error messages in the form file:line:error which > is similar to the way many compilers format t

[patch] bug 4222: LyX cannot parse file:line:error style messages

2007-09-18 Thread Jürgen Spitzmüller
Both tex and pdflatex have an option -file-line-error that produces error messages in a style that isn't known to LyX so far and thus isn't parsed correctly.* It seems that some distributions have turned that option on by default. As a consequence, LyX doesn't report any error messages when usin