Closed dzfranklin closed 3 years ago
As far as I can see, it's because there's an invalid default limit applied in lib/rexbug/printing/util.ex
. The limit is currently set to -1, but Elixir.Kernel.inspect/2
accepts only non-negative integers or :infinity
as valid for the :limit
option.
This is an issue only on Elixir versions >= 1.11.0 Relevant PR which made the changes that cause this error: https://github.com/elixir-lang/elixir/pull/10205
I think the limit should be set to :infinity
, because we want Rexbug to print everything it can, but I may be incorrect about the original intent.
@vanvoljg This seems to fix the issue, would you care to create a pull request?
Thanks for looking into this @vanvoljg. I just ran into this issue as well. Any chance we could get that PR merged?
Hey @ahsf, @jcelliott @vanvoljg @danielzfranklin, I just released Rexbug v1.0.5, please have a look if it's better now.
This was an important issue and it has been raised a long time ago - sorry for not noticing it until someone pinged me. I have updated my Github notification settings to make such a situation less likely in the future. Regardless, don't hesitate to ping me if I'm not responding in a similar situation in the future.
Some targets cause errors, while others succeed. For example,
Map
fails butMap.new/_
works.(full output: https://gist.github.com/danielzfranklin/ddc9aab8e7c0211821afa4d12c903832)
but
Versions: redbug 1.2.2 rexbug 1.0.4