I
Size: a a a
I
Z
A
I
RP
mix meminfo
** (exit) exited in: GenServer.call(HPDF.Controller.Supervisor, {:start_child, [id: []]}, :infinity)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
(elixir) lib/gen_server.ex:999: GenServer.call/3
lib/hpdf/controller.ex:20: HPDF.Controller.print_pdf!/2
lib/tasks/meminfo.ex:7: Mix.Tasks.Meminfo.run/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
defmodule Mix.Tasks.Meminfo do
use Mix.Task
def run(_) do
my_url = "http://localhost:4000"
{:ok, file} = File.open("output-report.pdf", [:write])
case HPDF.print_pdf!(my_url, timeout: 60_000, print_options: %{landscape: true}, after_load_delay: 10000) do
{:ok, pdf_data} -> IO.binwrite(file, pdf_data)
end
end
end
HPDF.print_pdf!/2
хочет послать сообщение процессу HPDF.Controller.Supervisor
, которого не существуетRP
HPDF
DA
max ~U[2019-08-01 23:23:00Z], ~U[2019-09-01 00:00:00Z]
: ~U[2019-08-01 23:23:00Z]
PG
DA
AF
DA
DA
АН
DA
AM
DA
|>
такой высокий приоритет? А то из-за необходимости лишних скобок каждый раз задумываешься, стоит ли его использовать.unexpected comma. Parentheses are required to solve ambiguity in nested calls.
This error happens when you have nested function calls without parentheses. For example:
one a, two b, c, d
ŹR
DA
AK
mix meminfo
** (exit) exited in: GenServer.call(HPDF.Controller.Supervisor, {:start_child, [id: []]}, :infinity)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
(elixir) lib/gen_server.ex:999: GenServer.call/3
lib/hpdf/controller.ex:20: HPDF.Controller.print_pdf!/2
lib/tasks/meminfo.ex:7: Mix.Tasks.Meminfo.run/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
defmodule Mix.Tasks.Meminfo do
use Mix.Task
def run(_) do
my_url = "http://localhost:4000"
{:ok, file} = File.open("output-report.pdf", [:write])
case HPDF.print_pdf!(my_url, timeout: 60_000, print_options: %{landscape: true}, after_load_delay: 10000) do
{:ok, pdf_data} -> IO.binwrite(file, pdf_data)
end
end
end
ŹR