Giter Club home page Giter Club logo

elixir-cowboy-example's People

Contributors

dry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

elixir-cowboy-example's Issues

Doesn't work under current versions of elixir, cowboy, and lager

Looks like this may have been written pre-Hex. Currently, cowboy is a few versions newer and lager is not in the Hex database. In elixir 0.14, cowboy doesn't compile with this version of the code.

I attempted to update the dependencies (in mix.exs) to current versions pulled from github, which worked, both deps compiled, as follows:

defp deps do
  [ { :cowboy, github: "extend/cowboy", tag: "0.10.0" },
    { :lager, github: "basho/lager", tag: '2.0.3' } ]
end

However, once compiled, the example code then fails to run, with the following message:

[22:04:11 elixir-cowboy-example (master)]$ mix compile
==> lager (compile)
Compiled src/lager_app.erl
Compiled src/lager.erl
Compiled src/lager_file_backend.erl

== Compilation error on file lib/lager.ex ==
** (CompileError) lib/lager.ex:4: undefined function lc/2
    (elixir) src/elixir.erl:195: :elixir.quoted_to_erl/3
    (stdlib) erl_eval.erl:657: :erl_eval.do_apply/6
    (elixir) src/elixir.erl:163: :elixir.erl_eval/2

As yet i'm too much of an elixir noob (started just 4 days ago) to debug that on my own. If I do manage to fix it, however, I'll issue an pull request. In the meantime, any advice is appreciated!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.