You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
getting the dependencies succeeds but compiling fails:
➜ live_view_black_jack git:(master) ✗ pwd
/Users/jakew/Documents/work/live_view_black_jack
➜ live_view_black_jack git:(master) ✗ mix deps.get
Resolving Hex dependencies...
Dependency resolution completed:
Unchanged:
connection 1.0.4
cowboy 2.6.1
cowlib 2.7.0
db_connection 2.0.6
decimal 1.7.0
ecto 3.0.7
ecto_sql 3.0.5
file_system 0.2.6
gettext 0.16.1
jason 1.1.2
mime 1.3.1
phoenix_ecto 4.0.0
phoenix_html 2.13.1
phoenix_live_reload 1.2.0
phoenix_pubsub 1.1.2
plug 1.7.2
plug_cowboy 2.0.2
plug_crypto 1.0.0
postgrex 0.14.1
ranch 1.7.1
telemetry 0.3.0
All dependencies are up to date
➜ live_view_black_jack git:(master) ✗ mix compile
Compiling 16 files (.ex)
warning: variable "opts" is unused (if the variable is not meant to be used, prefix it with an underscore)
lib/black_jack_web/game_manager/supervisor.ex:4: GameManager.Supervisor.start_link/1
warning: variable "blank_player" does not exist and is being expanded to "blank_player()", please use parentheses to remove the ambiguity or change the variable name
lib/black_jack_web/game_manager/manager.ex:322: GameManager.Manager.restart_game/0
warning: variable "start_next_action" does not exist and is being expanded to "start_next_action()", please use parentheses to remove the ambiguity or change the variable name
lib/black_jack_web/game_manager/manager.ex:451: GameManager.Manager.handle_cast/2
warning: variable "start_next_action" does not exist and is being expanded to "start_next_action()", please use parentheses to remove the ambiguity or change the variable name
lib/black_jack_web/game_manager/manager.ex:468: GameManager.Manager.handle_cast/2
warning: variable "seat_id" is unused (if the variable is not meant to be used, prefix it with an underscore)
lib/black_jack_web/game_manager/manager.ex:460: GameManager.Manager.handle_cast/2
== Compilation error in file lib/black_jack_web/live/black_jack_live.ex ==
** (FunctionClauseError) no function clause matching in Phoenix.LiveView.Engine.bins_and_vars/3
The following arguments were given to Phoenix.LiveView.Engine.bins_and_vars/3:
# 1
["\n </div>\n\n ", "\n ", "\n <div class=\"hand-value ", {:arg6, [], Phoenix.LiveView.Engine}, "\">\n <span>Hand value:</span>\n ", {:arg7, [], Phoenix.LiveView.Engine}, "\n ", {:arg8, [], Phoenix.LiveView.Engine}, "\n </div>\n\n ", {:arg9, [], Phoenix.LiveView.Engine}, "\n </div>\n "]
# 2
["\">\n\n <div class=\"cards\">\n ", "\n <div class=\"player-seat "]
# 3
[{:arg5, [], Phoenix.LiveView.Engine}, {:arg4, [], Phoenix.LiveView.Engine}]
Attempted function clauses (showing 4 out of 4):
defp bins_and_vars([bin, var | acc], bins, vars) when is_binary(bin) and is_tuple(var)
defp bins_and_vars([var | acc], bins, vars) when is_tuple(var)
defp bins_and_vars([bin], bins, vars) when is_binary(bin)
defp bins_and_vars([], bins, vars)
(phoenix_live_view 0.1.0) lib/phoenix_live_view/engine.ex:393: Phoenix.LiveView.Engine.bins_and_vars/3
(phoenix_live_view 0.1.0) lib/phoenix_live_view/engine.ex:327: Phoenix.LiveView.Engine.to_live_struct/3
(phoenix_live_view 0.1.0) lib/phoenix_live_view/engine.ex:296: Phoenix.LiveView.Engine.to_conditional_var/5
(elixir 1.11.4) lib/enum.ex:1411: Enum."-map/2-lists^map/1-0-"/2
(elixir 1.11.4) lib/enum.ex:1411: Enum."-map/2-lists^map/1-0-"/2
(phoenix_live_view 0.1.0) lib/phoenix_live_view/engine.ex:363: Phoenix.LiveView.Engine.to_rendered_struct/3
(phoenix_live_view 0.1.0) lib/phoenix_live_view/engine.ex:237: Phoenix.LiveView.Engine.handle_body/1
(phoenix_live_view 0.1.0) expanding macro: Phoenix.LiveView.sigil_L/2
lib/black_jack_web/live/black_jack_live.ex:5: BlackJackWeb.BlackJackLive.render/1
(elixir 1.11.4) lib/kernel/parallel_compiler.ex:314: anonymous fn/4 in Kernel.ParallelCompiler.spawn_workers/7
getting the dependencies succeeds but compiling fails:
Using Elixir 1.11.4
The text was updated successfully, but these errors were encountered: