Skip to content

Instantly share code, notes, and snippets.

@developerworks
Created September 23, 2016 08:19
Show Gist options
  • Select an option

  • Save developerworks/e11560cff249a94e45beedfca14b707f to your computer and use it in GitHub Desktop.

Select an option

Save developerworks/e11560cff249a94e45beedfca14b707f to your computer and use it in GitHub Desktop.
ranch_test

➜ tmp git clone https://github.com/jekens/ranch_test.git Cloning into 'ranch_test'... remote: Counting objects: 21, done. remote: Compressing objects: 100% (16/16), done. remote: Total 21 (delta 2), reused 21 (delta 2), pack-reused 0 Unpacking objects: 100% (21/21), done. Checking connectivity... done.

➜ tmp cd ranch_test

➜ ranch_test git:(master) mix deps.get ➜ ranch_test git:(master) Running dependency resolution Dependency resolution completed exfswatch: 0.2.1 exsync: 0.1.3 fs: 0.9.2 ranch: 1.2.1

➜ ranch_test git:(master) ✗ mix compile

** (Mix) You're trying to run :ranch_test on Elixir v1.2.6 but it has declared in its mix.exs file it supports only Elixir ~> 1.3

➜ ranch_test git:(master) ✗ kiex use 1.3.3 Using 1.3.3 ➜ ranch_test git:(master) ✗ mix compile
==> fs (compile) Compiled src/sys/inotifywait.erl Compiled src/sys/fsevents.erl Compiled src/sys/inotifywait_win32.erl Compiled src/fs_event_bridge.erl Compiled src/fs_sup.erl Compiled src/fs_app.erl Compiled src/fs_server.erl Compiled src/fs.erl Compiling c_src/mac/cli.c Compiling c_src/mac/compat.c Compiling c_src/mac/main.c ==> ranch DEPEND ranch.d ERLC ranch.erl ranch_acceptor.erl ranch_acceptors_sup.erl ranch_app.erl ranch_conns_sup.erl ranch_listener_sup.erl ranch_protocol.erl ranch_server.erl ranch_ssl.erl ranch_sup.erl ranch_tcp.erl ranch_transport.erl APP ranch.app.src ==> exfswatch Compiling 4 files (.ex) Generated exfswatch app ==> exsync Compiling 6 files (.ex) Generated exsync app ==> ranch_test Compiling 7 files (.ex) warning: variable opts is unused lib/ranch_test/ssl_protocol_handler.ex:8

warning: variable opts is unused lib/ranch_test/tcp_protocol_handler.ex:7

warning: variable data is unused lib/ranch_test/ssl_protocol_handler.ex:20

warning: variable data is unused lib/ranch_test/tcp_protocol_handler.ex:19

warning: variable state is unused lib/ranch_test/tcp_protocol_handler.ex:19

warning: variable state is unused lib/ranch_test/ssl_protocol_handler.ex:20

warning: variable reason is unused lib/ranch_test/tcp_protocol_handler.ex:33

warning: variable reason is unused lib/ranch_test/ssl_protocol_handler.ex:34

warning: variable pid is unused lib/ranch_test/tcp_protocol_handler.ex:38

warning: variable pid is unused lib/ranch_test/ssl_protocol_handler.ex:39

warning: variable reason is unused lib/ranch_test/tcp_protocol_handler.ex:38

warning: variable reason is unused lib/ranch_test/ssl_protocol_handler.ex:39

warning: variable reason is unused lib/ranch_test/tcp_protocol_handler.ex:42

warning: variable reason is unused lib/ranch_test/ssl_protocol_handler.ex:43

warning: variable state is unused lib/ranch_test/tcp_protocol_handler.ex:42

warning: variable state is unused lib/ranch_test/ssl_protocol_handler.ex:43

Generated ranch_test app

➜ ranch_test git:(master) ✗ iex -S mix

Erlang/OTP 18 [erts-7.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

ExSync started. Interactive Elixir (1.3.3) - press Ctrl+C to exit (type h() ENTER for help) iex(1)>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment