Skip to content

Conversation

@f1sty
Copy link
Contributor

@f1sty f1sty commented Jan 13, 2019

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.

@josevalim
Copy link
Member

josevalim commented Jan 13, 2019 via email

@f1sty
Copy link
Contributor Author

f1sty commented Jan 13, 2019

Added test for malformed .iex, check if it sufficient, please.

@josevalim
Copy link
Member

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 make compile && mix format && make test. Thank you.

@f1sty
Copy link
Contributor Author

f1sty commented Jan 14, 2019

Can you please rebase master and rebase your PR? After that, make sure to run make compile && mix format && make test.

Done;)

@josevalim
Copy link
Member

josevalim commented Jan 14, 2019

@f1sty unfortunately your PR has unrelated changes now, probably because i told you to run mix format but you probably should have run bin/elixir bin/mix format (sorry!). Can you please exclude teh unrelated changes from your PR and push?

@f1sty
Copy link
Contributor Author

f1sty commented Jan 15, 2019

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"
Copy link
Member

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 :)

Suggested change
"** (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.

@josevalim josevalim merged commit b711d08 into elixir-lang:master Jan 15, 2019
@josevalim
Copy link
Member

❤️ 💚 💙 💛 💜

@f1sty
Copy link
Contributor Author

f1sty commented Jan 15, 2019

🎂 Thanks!

@f1sty f1sty deleted the issue8618 branch January 15, 2019 14:15
@f1sty f1sty restored the issue8618 branch January 15, 2019 14:16
fhunleth added a commit to nerves-project/nerves_bootstrap that referenced this pull request Mar 25, 2020
This was fixed in Elixir 1.9.0. See
elixir-lang/elixir#8619 for PR.
mobileoverlord pushed a commit to nerves-project/nerves_bootstrap that referenced this pull request Mar 25, 2020
This was fixed in Elixir 1.9.0. See
elixir-lang/elixir#8619 for PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants