Skip to content

Error when compiling on Windows 7, missing module :cowboy_req #4

@tinat

Description

@tinat

Hi,
I am encountering this error in Windows 7 with most current master on Elixir (VERSION=0.12.2-dev) .

I ran in the Windows Command Shell prompt:

mix new test_plug
cd test_plug

modified mix.exs to have the following snippets:

def application do
[ applications: [:cowboy, :plug],
mod: { TestPlug, [] }]
end

defp deps do
[ { :cowboy, github: "extend/cowboy" },
{ :plug, github: "elixir-lang/plug" } ]
end

then ran:

mix deps.get

And get the following error:

== Compilation failed ==
Compilation failed on the following files:

  • lib/plug/adapters/cowboy/connection.ex is missing module :cowboy_req
  • lib/plug/adapters/cowboy/handler.ex is missing module :cowboy_req

The first failure is shown below...
== Compilation error on file lib/plug/adapters/cowboy/connection.ex ==
could not compile dependency plug, mix compile failed. You can recompile this dependency with mix deps.compile plug or update it with mix deps.update plug
** (CompileError) deps/plug/lib/plug/adapters/cowboy/connection.ex:5: module :cowboy_req is not loaded and could not be found
(elixir) src/elixir_exp.erl:95: :elixir_exp.expand/2
(stdlib) lists.erl:1339: :lists.mapfoldl/3
(stdlib) lists.erl:1340: :lists.mapfoldl/3
(elixir) src/elixir_exp.erl:43: :elixir_exp.expand/2
(elixir) src/elixir.erl:150: :elixir.quoted_to_erl/3

Thanks!
Tina

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions