Skip to content

Commit bba8835

Browse files
committed
Fix IEx parser fetching on mix release
1 parent dea8456 commit bba8835

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/iex/lib/iex/config.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ defmodule IEx.Config do
8080
end
8181

8282
def parser() do
83-
Application.fetch_env!(:iex, :parser)
83+
# Since the parser itself can be invoked from the remote node
84+
# without IEx running, we cannot use fetch_env!
85+
Application.get_env(:iex, :parser, {IEx.Evaluator, :parse, []})
8486
end
8587

8688
def color(color) do

lib/iex/mix.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ defmodule IEx.MixProject do
1919
mod: {IEx.App, []},
2020
env: [
2121
colors: [],
22-
parser: {IEx.Evaluator, :parse, []},
2322
inspect: [pretty: true],
2423
history_size: 20,
2524
default_prompt: "%prefix(%counter)>",

0 commit comments

Comments
 (0)