<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="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">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="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<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="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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 class=""><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>