Skip to content
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

mix compile fails #1

Open
jzwood opened this issue May 17, 2021 · 0 comments
Open

mix compile fails #1

jzwood opened this issue May 17, 2021 · 0 comments

Comments

@jzwood
Copy link

jzwood commented May 17, 2021

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

Using Elixir 1.11.4

➜  live_view_black_jack git:(master) ✗ elixir --version
Erlang/OTP 23 [erts-11.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe] [dtrace]

Elixir 1.11.4 (compiled with Erlang/OTP 23)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant