-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Closed
Description
I'm adding consolidation to escript.build, and sometimes it fails after compiling all beams. Rerunning the task finished successfully.
λ mix escript.build
==> jazz
Compiled lib/jazz.ex
Compiled lib/jazz/parser.ex
Compiled lib/jazz/decoder.ex
Compiled lib/jazz/encoder.ex
Generated jazz.app
==> miniweb
Compiled lib/miniweb/handlers.ex
Compiled lib/mix/tasks/uweb.ex
Compiled lib/miniweb/cli/serve_cmd.ex
Compiled lib/miniweb/cli/inspect_cmd.ex
Compiled lib/miniweb/cli/cli.ex
Generated miniweb.app
** (MatchError) no match of right hand side value: {:error, :no_beam_info}
(mix) lib/mix/tasks/compile.protocols.ex:53: Mix.Tasks.Compile.Protocols."-consolidate/3-lc$^0/1-0-"/3
(mix) lib/mix/tasks/compile.protocols.ex:50: Mix.Tasks.Compile.Protocols.consolidate/3
(mix) lib/mix/tasks/compile.protocols.ex:38: Mix.Tasks.Compile.Protocols.run/1
(mix) lib/mix/tasks/escript.build.ex:99: Mix.Tasks.Escript.Build.run/1
(mix) lib/mix/cli.ex:60: Mix.CLI.run_task/2
(elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/3
λ mix escript.build
Consolidated Jazz.Decoder
Consolidated Jazz.Encoder
Consolidated Access
Consolidated Collectable
Consolidated Enumerable
Consolidated Inspect
Consolidated List.Chars
Consolidated Range.Iterator
Consolidated String.Chars
Consolidated protocols written to _build/dev/consolidated
Generated escript uweb with MIX_ENV=dev