-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix .iex.exs error behaviour #8618 #8619
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
Conversation
Can you please include tests? Thank you!
--
*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D
|
Added test for malformed .iex, check if it sufficient, please. |
Thanks @f1sty! Your PR was written on top of a very old master. Can you please rebase master and rebase your PR? After that, make sure to run |
Done;) |
@f1sty unfortunately your PR has unrelated changes now, probably because i told you to run |
Sorry, removed unrelated changes. |
File.write!("dot-iex", "malformed") | ||
|
||
assert capture_iex("malformed", [], dot_iex_path: "dot-iex") =~ | ||
"** (CompileError) iex:1: undefined function malformed/0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be dot-iex
:)
"** (CompileError) iex:1: undefined function malformed/0" | |
"** (CompileError) dot-iex:1: undefined function malformed/0" |
Besides, I would use a different input for the capture_iex
function so it's clear the error comes from the "dot iex" file.
❤️ 💚 💙 💛 💜 |
🎂 Thanks! |
This was fixed in Elixir 1.9.0. See elixir-lang/elixir#8619 for PR.
This was fixed in Elixir 1.9.0. See elixir-lang/elixir#8619 for PR.
Loading .iex.exs with compile or runtime errors currently halts the system.
This fix intended to print error message, but still run iex with default state.