Closed doughsay closed 8 months ago
I'm also running into this error, but can't find what code in my project is causing it
** (ArgumentError) ranges (first..last) expect both sides to be integers, got: 1..100.0
(elixir 1.15.6) lib/range.ex:193: Range.new/2
(sobelow 0.13.0) lib/sobelow/parse.ex:458: Sobelow.Parse.create_fun_cap/3
(sobelow 0.13.0) lib/sobelow/parse.ex:437: Sobelow.Parse.get_funs_of_type/3
(elixir 1.15.6) lib/macro.ex:688: anonymous fn/4 in Macro.do_traverse_args/4
(stdlib 5.1) lists.erl:1706: :lists.mapfoldl_1/3
(stdlib 5.1) lists.erl:1707: :lists.mapfoldl_1/3
(elixir 1.15.6) lib/macro.ex:673: Macro.do_traverse/4
(stdlib 5.1) lists.erl:1706: :lists.mapfoldl_1/3
Yep same here and can't find the source of it.
** (ArgumentError) ranges (first..last) expect both sides to be integers, got: 1..100.0
(elixir 1.15.7) lib/range.ex:193: Range.new/2
(sobelow 0.13.0) lib/sobelow/parse.ex:465: Sobelow.Parse.create_fun_cap/3
(sobelow 0.13.0) lib/sobelow/parse.ex:444: Sobelow.Parse.get_funs_of_type/3
(elixir 1.15.7) lib/macro.ex:688: anonymous fn/4 in Macro.do_traverse_args/4
(stdlib 5.1.1) lists.erl:1706: :lists.mapfoldl_1/3
(stdlib 5.1.1) lists.erl:1707: :lists.mapfoldl_1/3
(elixir 1.15.7) lib/macro.ex:660: Macro.do_traverse/4
(stdlib 5.1.1) lists.erl:1706: :lists.mapfoldl_1/3
A fix for this has been merged to master
- please let me know if this has solved the issues you've been encountering! Apologies for the delay! (and thank you @realcorvus for the bump and providing the fix)
@houllette the issue has been resolved for me on the master branch
Resolved for me!
Fantastic! I will give it just a smidge to wait for a response in #142 (since #146 addresses two issues at once) before pushing out v0.13.1 to hex!
A project with this file in it:
crashes
mix sobelow
with the following error: