Closed lb90 closed 3 years ago
This is not a Meson exception. Meson exceptions do print line numbers.
This is a meson bug, throwing a python traceback and must be fixed.
Duplicate of #9350
Ah, indeed. Thanks!
This is not a Meson exception. Meson exceptions do print line numbers.
For the record, since 3c039f42a066a9ae43789bcce3b2dd14ba077d82 we report a better error on python exceptions too.
We still print the full traceback, but we follow up on that with something like:
meson.build:1234:0: ERROR: Unhandled python exception
This is a Meson bug and should be reported!
This also means that
it's probably the fault of the Meson build definition
this will be clearly contradicted by Meson. Meson knows that anything which produces a traceback is automatically a bug, if for no other reason than that all errors should be caught and communicated clearly with regard to why meson considers it problematic... so when Meson encounters an unrecognizable traceback, it tells you that you should report it as a bug to us.
The meson.build line number context is provided too, to help narrow down what meson.build content triggered an internal error.
If a Meson exception is thrown then it's probably the fault of the Meson build definition (meson.build) of the project. The user is presented with a call stack but doesn't know which statement in
meson.build
caused thatToday I tried building GIMP using Meson from the main branch. I get a Meson exception but I don't quite know where to look at in the Meson build definitions:
It'd be very useful to know the meson.build and line number / op that is being parsed or interpreted.