Closed mattraykowski closed 8 years ago
@mattraykowski,
So sorry about the late response. I wasn't watching this repo so I never saw the notifications 😢
So here's what you can do for now to get around this problem:
In mix.exs
:
defp deps do
[# existing deps...,
{:cowboy, github: "ninenines/cowboy", tag: "1.0.4", override: true},
{:cowlib, "~> 1.3.0", override: true},
{:gun, github: "ninenines/gun", override: true},
{:ranch, "~> 1.1.0", override: true}]
end
I am tempted to swap out gun
for https://github.com/meh/elixir-socket to avoid this problem. However I'm not sure how the license will effect adoption within companies.
Please let me know if this solves you issue. Sorry again for the late response.
@mattraykowski I am having the same issue. Followed instructions in your new post but this is the error I am getting now when I changed my dependencies.
mix run --no-halt ==> cowboy (compile) src/cowboy_protocol.erl:272: undefined macro 'INLINE_LOWERCASE/9' src/cowboy_protocol.erl:397: undefined macro 'INLINE_LOWERCASE/4' src/cowboy_protocol.erl:257: function parse_hd_name/8 undefined src/cowboy_protocol.erl:369: function parse_host/3 undefined src/cowboy_protocol.erl:275: Warning: function parse_hd_name_ws/8 is unused src/cowboy_protocol.erl:282: Warning: function wait_hd_before_value/8 is unused src/cowboy_protocol.erl:295: Warning: function parse_hd_before_value/8 is unused src/cowboy_protocol.erl:314: Warning: function wait_hd_value/9 is unused src/cowboy_protocol.erl:329: Warning: function wait_hd_value_nl/9 is unused src/cowboy_protocol.erl:343: Warning: function parse_hd_value/9 is unused Compiling src/cowboy_protocol.erl failed: ERROR: compile failed while processing /home/me/Documents/hedwig/myapp/deps/cowboy: rebar_abort \ (Mix) Could not compile dependency :cowboy, "/home/me/.mix/rebar compile skip_deps=true deps_dir="/home/me/Documents/hedwig_slack3/myapp/_build/dev/lib"" command failed. You can recompile this dependency with "mix deps.compile cowboy", update it with "mix deps.update cowboy" or clean it with "mix deps.clean cowboy"
I have started work on this but have not yet had time to finish it. I will attempt to finish it up this week.
I will be using a combination of hackney
and websocket_client
. I really wish gun
was ready for prime time 😢
Thanks for your patience.
@scrogson thank you for working on it. I'll just be patient, it's not critical to me. When you're ready for some testing though just let me know and I'll update my umbrella.
Hey folks, please pull in master
and give it a shot. You can review the code changes in #8
I attempted to include Hedwig with Slack in an umbrella which also included a Phoenix project and there are dependency conflicts:
It appears that cowboy requires an older version of ranch and cowlib than gun, which is required by hedwig_slack. It also appears that the newer version of cowlib is not backwards compatible and I was unable to get it to work with cowboy. There is no more recent version of cowboy.
Not sure how I can get around this problem.