chatgris / currently

currently is a tool to display cards currently assigns on Trello.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bad argument on `currently configure`

chussenot opened this issue · comments

chussenot @ macbook-air in ~/Sites/currently on git:master x [19:26:41]

$ mix escript.build
==> jsx (compile)
Compiled src/jsx_verify.erl
Compiled src/jsx_to_term.erl
Compiled src/jsx_to_json.erl
Compiled src/jsx_encoder.erl
Compiled src/jsx_config.erl
Compiled src/jsx.erl
Compiled src/jsx_parser.erl
Compiled src/jsx_decoder.erl
==> jsex
Compiling 1 file (.ex)
Generated jsex app
==> httpotion
Compiling 1 file (.ex)
warning: the variable "ib_options" is unsafe as it has been set inside a case/cond/receive/if/&&/||. Please explicitly return the variable value instead. For example:

case int do
  1 -> atom = :one
  2 -> atom = :two
end

should be written as

atom =
  case int do
    1 -> :one
    2 -> :two
  end

Unsafe variable found at:
lib/httpotion.ex:209

warning: the variable "ib_options" is unsafe as it has been set inside a case/cond/receive/if/&&/||. Please explicitly return the variable value instead. For example:

case int do
  1 -> atom = :one
  2 -> atom = :two
end

should be written as

atom =
  case int do
    1 -> :one
    2 -> :two
  end

Unsafe variable found at:
lib/httpotion.ex:209

warning: function :ibrowse.send_req/6 is undefined (module :ibrowse is not available)
lib/httpotion.ex:209

warning: function :ibrowse.send_req_direct/7 is undefined (module :ibrowse is not available)
lib/httpotion.ex:209

warning: function :ibrowse.stop_worker_process/1 is undefined (module :ibrowse is not available)
lib/httpotion.ex:209

Generated httpotion app
==> ibrowse (compile)
Compiled src/ibrowse_lib.erl
Compiled src/ibrowse_sup.erl
Compiled src/ibrowse_socks5.erl
Compiled src/ibrowse_app.erl
Compiled src/ibrowse_lb.erl
Compiled src/ibrowse.erl
Compiled src/ibrowse_http_client.erl
==> currently

Compiling 4 files (.ex)
warning: function IO.ANSI.escape/2 is undefined or private
Found at 2 locations:
lib/currently/renderer.ex:58
lib/currently/renderer.ex:75

Generated currently app
Generated escript currently with MIX_ENV=dev

chussenot @ macbook-air in ~/Sites/currently on git:master x [19:26:49]

$ ./currently configure -k xxxxxxx -t xxxxx
** (File.Error) could not write to file "/Users/chussenot/.currently.json": bad argument
(elixir) lib/file.ex:716: File.write!/3
(elixir) lib/kernel/cli.ex:76: anonymous fn/3 in Kernel.CLI.exec_fun/2