<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY>
<DIV>
<DIV style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">I have modified compiler to output file and line, and Geany was able to highlight the line with default regex. Thanks!<BR><BR>Sent from my Nokia Lumia 920</DIV></DIV>
<DIV dir=ltr>
<HR>
<SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">From: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:elextr@gmail.com">Lex Trotman</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Sent: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">7.8.2013 13:54</SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">To: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:users@lists.geany.org">Geany general discussion list</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Subject: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Re: [Geany-Users] 'Error regular expression' feature?</SPAN><BR><BR></DIV>
<DIV dir=ltr><BR>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On 7 August 2013 20:23, Vitali Samurov <SPAN dir=ltr><<A href="mailto:vitali.s@elisanet.fi" target=_blank>vitali.s@elisanet.fi</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hello,<BR><BR>oh. So, the compiler output should look like e.g. GCC outputs, which Geany does parse well?<BR></BLOCKQUOTE>
<DIV><BR></DIV>
<DIV>Well, certainly gcc outputs have been used most :) </DIV>
<DIV><BR></DIV>
<DIV>It would be the best course to use that if your compiler can be configured to produce it. If it is a very good copy of gcc it may work with the built-in decoding and no regex will be needed.</DIV>
<DIV><BR></DIV>
<DIV>But for example the regex can be used with Python output like</DIV>
<DIV><BR></DIV>
<DIV>SyntaxError: ('invalid syntax', ('untitled.py', 28, 5, '\tfor:\n'))<BR></DIV>
<DIV><BR></DIV>
<DIV>can also be parsed because it has the filename untitled.py and line number 28 in the output.</DIV>
<DIV><BR></DIV>
<DIV>The requirement for each line to have both is because compilers like C or C++ can interleave error messages from included headers with errors from the .c file so each line must be fully identified to allow marking in the source file.</DIV>
<DIV><BR></DIV>
<DIV>Cheers</DIV>
<DIV>Lex</DIV>
<DIV><BR></DIV>
<DIV> </DIV>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR>mkl2mkp_en-0.25.c:3211:11: error: 'comp_adres' undeclared (first use in this function)<BR><BR>Br,<BR>Vitali<BR><BR>Lex Trotman [<A href="mailto:elextr@gmail.com" target=_blank>elextr@gmail.com</A>] kirjoitti: <BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV class=h5>On 7 August 2013 18:38, Vitali Samurov <<A href="mailto:vitali.s@elisanet.fi" target=_blank>vitali.s@elisanet.fi</A>> wrote:<BR><BR>> Hello,<BR>><BR>> I'm trying to add a new compiler toolchain in Geany and would like to<BR>> highlight an error (waring) line in the code by using 'Error regular<BR>> expression' feature.<BR>><BR>> I have added this:<BR>> (.+)\line\s+([0-9]+)<BR>><BR>> And was able to get line 'E011 The value of symbolic....' colored in RED:<BR>><BR>> /mkl2mkp_en -i "DIYGeigerCounter_ver_1-3.mkl" (in directory: /../Temp)<BR>> MKP file DIYGeigerCounter_ver_1-3.mkl<BR>> E011 The value of symbolic reference is not defined in line 77 - RECEIVE1<BR>> First page: 0<BR>> Length (pages): 6<BR>> Compilation failed.<BR>><BR>><BR>> But editor does not show /highlight the line in edit window. Is it<BR>> possible to do that?<BR>><BR><BR>Yes, but the regular expression has to have two captures, one that extracts<BR>the line number and one that extracts the filename so it knows which file<BR>and which line. And the filename and line no must be in the same line in<BR>your compiler output. That does not appear to be the case in the output<BR>above (but it may simply be wrapped by the mailer).<BR><BR><BR>Cheers<BR>Lex<BR><BR><BR>><BR>> Br,<BR>> Vitali<BR>><BR>><BR>><BR>><BR>> --<BR>><BR>> --- Sent from the web-mail ---<BR>><BR>><BR>><BR></DIV></DIV>> ______________________________<U></U>**_________________<BR>> Users mailing list<BR>> <A href="mailto:Users@lists.geany.org" target=_blank>Users@lists.geany.org</A><BR>> <A href="https://lists.geany.org/cgi-**bin/mailman/listinfo/users" target=_blank>https://lists.geany.org/cgi-**<U></U>bin/mailman/listinfo/users</A><<A href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target=_blank>htt<U></U>ps://lists.geany.org/cgi-bin/<U></U>mailman/listinfo/users</A>>
<DIV class=im><BR>><BR><BR>______________________________<U></U>_________________<BR>Users mailing list<BR><A href="mailto:Users@lists.geany.org" target=_blank>Users@lists.geany.org</A><BR><A href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target=_blank>https://lists.geany.org/cgi-<U></U>bin/mailman/listinfo/users</A><BR><BR></DIV></BLOCKQUOTE>
<DIV>
<DIV class=h5><BR>-- <BR><BR>--- Sent from the web-mail ---<BR><BR><BR><BR>______________________________<U></U>_________________<BR>Users mailing list<BR><A href="mailto:Users@lists.geany.org" target=_blank>Users@lists.geany.org</A><BR><A href="https://lists.geany.org/cgi-bin/mailman/listinfo/users" target=_blank>https://lists.geany.org/cgi-<U></U>bin/mailman/listinfo/users</A><BR></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>