New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String.slice(str, 0, -1) raises FunctionClauseError #496
Comments
Trying to build out same functionality without library function String.slice/2:
Hit same error condition:
With similar debug values:
Breaking it down: So, reducing it to bare necessary expression to break ElixirScript:
|
This snippet of Elixir:
String.slice(str, 0, -1)
Started with slice/2 form of this call, but swapped to slice/3 to confirm the error wasn't being generated by the Elixir range.
Raises the following exception
Modified Transcript.Form.compile! as follows:
Which revealed the following debugging info:
Thoughts
Not too familiar with this codebase, but I'm working from the premise that
inspect_fun: &Inspect.inspect/2
might be malformed, for it to be promoted into theast
parameter ofcompile!
.The text was updated successfully, but these errors were encountered: