You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On rails boot we've got a bunch of stuff loading and normally everything works fine. HOWEVER, whenever I try to debug something by running rails boot via ruby -d (aka $DEBUG = true), rails bootstrap blows out thusly:
GEMS/moneta-1.5.1/lib/moneta/transformer.rb:359:in `%': too many arguments for format string (ArgumentError)
from GEMS/moneta-1.5.1/lib/moneta/transformer.rb:359:in `block in compile_transformer'
from GEMS/moneta-1.5.1/lib/moneta/transformer.rb:348:in `each'
from GEMS/moneta-1.5.1/lib/moneta/transformer.rb:348:in `compile_transformer'
from GEMS/moneta-1.5.1/lib/moneta/transformer.rb:65:in `compile'
from GEMS/moneta-1.5.1/lib/moneta/transformer.rb:38:in `new'
from GEMS/moneta-1.5.1/lib/moneta/builder.rb:65:in `new_proxy'
from GEMS/moneta-1.5.1/lib/moneta/builder.rb:25:in `block in build'
from GEMS/moneta-1.5.1/lib/moneta/builder.rb:23:in `each'
from GEMS/moneta-1.5.1/lib/moneta/builder.rb:23:in `inject'
from GEMS/moneta-1.5.1/lib/moneta/builder.rb:23:in `build'
from GEMS/moneta-1.5.1/lib/moneta.rb:167:in `build'
from GEMS/moneta-1.5.1/lib/moneta.rb:145:in `new'
... lots
I don't know if debug mode is changing the args going to that string format, or if debug mode is disabling something that's swallowing this exception and it is happening all the time.
I've doped the run to print out the format string:
Hey, thanks for the report. I've got covid right now, but will take a look at this when I can. If you work out how to fix this a PR would be most welcome
On rails boot we've got a bunch of stuff loading and normally everything works fine. HOWEVER, whenever I try to debug something by running rails boot via
ruby -d
(aka$DEBUG = true
), rails bootstrap blows out thusly:I don't know if debug mode is changing the args going to that string format, or if debug mode is disabling something that's swallowing this exception and it is happening all the time.
I've doped the run to print out the format string:
vs:
So I think since the last marshal line doesn't have
%s
on both sides, I suspect someone is swallowing that exception.It LOOKS like this is being hit:
and the result of that doesn't have a
%s
and gets passed to format.The text was updated successfully, but these errors were encountered: