is there a way to find the location of errors like this in a workflow?..
> cylc val .
WARNING - Support for integers with leading zeros was dropped in Jinja2 v3. Rose will extend support until
a future version.
Please amend your Rose configuration files e.g:
* 01 => 1
* 00 => 0
* 09 => 9
i have lots of rose configuration files and so lookng through all of them would be very time consuming. i know it doesn’t matter for now because i can still run with this warning but it would be great to be able to home in on them a bit better. i’ve tried cylc val -v but that doesn’t seem to help.
Rose doesn’t preserve line numbers when it reads in configs so we can’t give you a position.
FYI, Jinja2 completely dropped support for zero-prefixed integers. We thought this was too disruptive so we hacked Jinja2 to maintain support for the short term. This hack is tricky, we won’t be able to keep it going with the next Jinja2 upgrade, so definitely act on this warning, next time it will be an error.
i gave up using regex to be honest (too hard for me at the best of times let alone a friday afternoon) and deleted each directory inside the workflow definition until i was left with only a rose-suite.conf and a flow.cylc file left.
once i’d got there i realised that Jinja2 was complaining about this in my rose-suite.conf…
EXPT_BASIS=1978,09,01,00,00
which needed to be changed to…
EXPT_BASIS=1978,9,1,0,0
quite how on earth one would construct a regex to find that i don’t know haha