Subject: Re: bug#60830: 30.0.50; The *Compilation* buffer does not recognize Lua errors

From: Stefan Kangas <[email-masked]>
Date: Wed, 13 Sep 2023 07:55:30 -0700

Rudolf Adamkovič <[email-masked]> writes:

> REPRODUCTION STEPS:
>
> 1. Write the following in some buffer:
>
> /usr/bin/lua: database.lua:31: assertion failed!
> stack traceback:
> 	[C]: in function 'assert'
> 	database.lua:31: in field 'statement'
> 	database.lua:42: in field 'table'
> 	database.lua:55: in field 'row'
> 	database.lua:63: in field 'value'
> 	database.lua:68: in main chunk
> 	[C]: in ?
>
> 2. Enable the `compilation-mode'.
>
> EXPECTED:
>
> The Compilation mode recognizes the following as error loci:
>
> - database.lua:31: (twice)
> - database.lua:42:
> - database.lua:55:
> - database.lua:63:
> - database.lua:68:
>
> ACTUAL:
>
> The Compilation mode finds no error loci.
>
> NOTES:
>
> The source files can any extension, such as `fnl' for Fennel.

This breaks because it doesn't follow the GNU standard's

      [PROGRAM:]FILE:LINE: MESSAGE

Any chance we could get the lua developers to follow that format,
instead?

See also:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58984#26