I also tried it
Erlang/OTP 22 [erts-10.4] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
Elixir 1.11.0 (compiled with Erlang/OTP 21)
user@WIN-5A0PDOIDA9K MINGW64 /d/1. Functional programming/Phoenix/phoenix-conspect/01. Основы Phoenix/hello (main)
$ mix ecto.create
==> file_system
Compiling 7 files (.ex)
Generated file_system app
==> decimal
Compiling 4 files (.ex)
Generated decimal app
==> jason
Compiling 10 files (.ex)
Generated jason app
==> db_connection
Compiling 15 files (.ex)
warning: calling super for GenServer callback child_spec/1 is deprecated
lib/db_connection/connection_pool.ex:25: DBConnection.ConnectionPool.child_spec/1
Generated db_connection app
==> expo
Compiling 2 files (.erl)
Compiling 21 files (.ex)
Generated expo app
==> gettext
Compiling 17 files (.ex)
Generated gettext app
==> ecto
Compiling 56 files (.ex)
Generated ecto app
==> phoenix_pubsub
Compiling 13 files (.ex)
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/tracker.ex:273: Phoenix.Tracker.init/1
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/pubsub/local_supervisor.ex:42: Phoenix.PubSub.LocalSupervisor.init/1
warning: Supervisor.Spec.worker/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/tracker.ex:269: Phoenix.Tracker.init/1
warning: Supervisor.Spec.supervisor/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/pubsub/local_supervisor.ex:39: Phoenix.PubSub.LocalSupervisor.init/1
warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
Found at 2 locations:
lib/phoenix/pubsub/local_supervisor.ex:35: Phoenix.PubSub.LocalSupervisor.init/1
lib/phoenix/pubsub/local_supervisor.ex:36: Phoenix.PubSub.LocalSupervisor.init/1
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/pubsub/pg2.ex:97: Phoenix.PubSub.PG2.init/1
warning: Supervisor.Spec.supervisor/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/pubsub/pg2.ex:93: Phoenix.PubSub.PG2.init/1
warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/pubsub/pg2.ex:94: Phoenix.PubSub.PG2.init/1
Generated phoenix_pubsub app
===> Compiling cowboy
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling cowboy_telemetry
==> mime
Compiling 1 file (.ex)
Generated mime app
==> postgrex
Compiling 68 files (.ex)
Generated postgrex app
==> ecto_sql
Compiling 25 files (.ex)
Generated ecto_sql app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 8 files (.ex)
Generated phoenix_html app
==> plug_cowboy
Compiling 5 files (.ex)
Generated plug_cowboy app
==> phoenix
Compiling 67 files (.ex)
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/router.ex:281
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/endpoint/cowboy2_handler.ex:40
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/endpoint/cowboy2_handler.ex:45
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/endpoint/cowboy_websocket.ex:29
warning: duplicate key :route found in struct
(elixir 1.11.0) lib/kernel/utils.ex:119: Kernel.Utils.warn_on_duplicate_struct_key/1
(elixir 1.11.0) lib/kernel/utils.ex:98: Kernel.Utils.defstruct/2
lib/phoenix/router/resource.ex:24: (module)
(elixir 1.11.0) src/elixir_compiler.erl:75: :elixir_compiler.dispatch/4
(elixir 1.11.0) src/elixir_compiler.erl:60: :elixir_compiler.compile/3
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/test/conn_test.ex:661
warning: function actions/1 required by protocol Plug.Exception is not implemented (in module Plug.Exception.Phoenix.ActionClauseError)
lib/phoenix/exceptions.ex:67: Plug.Exception.Phoenix.ActionClauseError (module)
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/phoenix/code_reloader/server.ex:62
warning: IEx.started?/0 defined in application :iex is used by the current application but the current application does not directly depend on :iex. To fix this, you must do one of:
-
If :iex is part of Erlang/Elixir, you must include it under :extra_applications inside “def application” in your mix.exs
-
If :iex is a dependency, make sure it is listed under “def deps” in your mix.exs
-
In case you don’t want to add a requirement to :iex, you may optionally skip this warning by adding [xref: [exclude: IEx] to your “def project” in mix.exs
lib/mix/tasks/phx.server.ex:40: Mix.Tasks.Phx.Server.iex_running?/0
warning: Supervisor.Spec.supervisor/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix.ex:53: Phoenix.start/2
warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix.ex:52: Phoenix.start/2
warning: Supervisor.Spec.supervisor/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/socket.ex:507: Phoenix.Socket.child_spec/2
warning: Supervisor.Spec.worker/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/socket.ex:505: Phoenix.Socket.child_spec/2
warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/endpoint/supervisor.ex:89: Phoenix.Endpoint.Supervisor.config_children/3
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/transports/long_poll_server.ex:14: Phoenix.Transports.LongPoll.Supervisor.init/1
warning: Supervisor.Spec.worker/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/transports/long_poll_server.ex:11: Phoenix.Transports.LongPoll.Supervisor.init/1
warning: Supervisor.Spec.supervise/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/socket/pool_supervisor.ex:54: Phoenix.Socket.PoolSupervisor.init/1
warning: Supervisor.Spec.supervisor/3 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/socket/pool_supervisor.ex:51: Phoenix.Socket.PoolSupervisor.init/1
warning: Supervisor.Spec.supervisor/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/presence.ex:307: Phoenix.Presence.start_link/4
warning: Supervisor.Spec.worker/2 is deprecated. Use the new child specifications outlined in the Supervisor module instead
lib/phoenix/presence.ex:308: Phoenix.Presence.start_link/4
Generated phoenix app
==> phoenix_live_reload
Compiling 4 files (.ex)
Generated phoenix_live_reload app
==> phoenix_ecto
Compiling 7 files (.ex)
Generated phoenix_ecto app
warning: the :gettext compiler is no longer required in your mix.exs.
Please find the following line in your mix.exs and remove the :gettext entry:
compilers: [..., :gettext, ...] ++ Mix.compilers(),
(gettext 0.23.1) lib/mix/tasks/compile.gettext.ex:5: Mix.Tasks.Compile.Gettext.run/1
(mix 1.11.0) lib/mix/task.ex:394: Mix.Task.run_task/3
(mix 1.11.0) lib/mix/tasks/compile.all.ex:90: Mix.Tasks.Compile.All.run_compiler/2
(mix 1.11.0) lib/mix/tasks/compile.all.ex:70: Mix.Tasks.Compile.All.compile/4
(mix 1.11.0) lib/mix/tasks/compile.all.ex:57: Mix.Tasks.Compile.All.with_logger_app/2
(mix 1.11.0) lib/mix/tasks/compile.all.ex:35: Mix.Tasks.Compile.All.run/1
(mix 1.11.0) lib/mix/task.ex:394: Mix.Task.run_task/3
(mix 1.11.0) lib/mix/tasks/compile.ex:119: Mix.Tasks.Compile.run/1
(mix 1.11.0) lib/mix/task.ex:394: Mix.Task.run_task/3
(mix 1.11.0) lib/mix/tasks/app.config.ex:30: Mix.Tasks.App.Config.run/1
(mix 1.11.0) lib/mix/task.ex:394: Mix.Task.run_task/3
(ecto 3.10.3) lib/mix/ecto.ex:70: Mix.Ecto.ensure_repo/2
(ecto 3.10.3) lib/mix/tasks/ecto.create.ex:50: anonymous fn/3 in Mix.Tasks.Ecto.Create.run/1
(elixir 1.11.0) lib/enum.ex:786: Enum.“-each/2-lists^foreach/1-0-”/2
(elixir 1.11.0) lib/enum.ex:786: Enum.each/2
(mix 1.11.0) lib/mix/task.ex:394: Mix.Task.run_task/3
(mix 1.11.0) lib/mix/cli.ex:84: Mix.CLI.run_task/2
==> hello
Compiling 13 files (.ex)
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex:1
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/endpoint.ex
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/router.ex:4
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/router.ex:12
warning: System.stacktrace/0 is deprecated, use STACKTRACE instead
lib/hello_web/controllers/page_controller.ex:1
warning: incompatible types:
map() !~ atom()
in expression:
# lib/hello_web/router.ex:1
endpoint.static_url
where “endpoint” was given the type atom() in:
# lib/hello_web/router.ex:1
is_atom(endpoint)
where “endpoint” was given the type map() (due to calling var.field) in:
# lib/hello_web/router.ex:1
endpoint.static_url
HINT: “var.field” (without parentheses) implies “var” is a map() while “var.fun()” (with parentheses) implies “var” is an atom()
Conflict found at
lib/hello_web/router.ex:1: HelloWeb.Router.Helpers.static_url/2
Generated hello app
08:08:54.373 [error] Postgrex.Protocol (#PID<0.3601.0>) failed to connect: ** (Postgrex.Error) я┐╜я┐╜я┐╜я┐╜я┐╜ 28P01 (invalid_password) я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ “postgres” я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ (я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜)
08:08:54.417 [error] Postgrex.Protocol (#PID<0.3608.0>) failed to connect: ** (Postgrex.Error) я┐╜я┐╜я┐╜я┐╜я┐╜ 28P01 (invalid_password) я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ “postgres” я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜ (я┐╜я┐╜ я┐╜я┐╜я┐╜я┐╜я┐╜я┐╜)
** (Mix) The database for Hello.Repo couldn’t be created: killed