philss / floki

Floki is a simple HTML parser that enables search for nodes using CSS selectors.
https://hex.pm/packages/floki
MIT License
2.07k stars 156 forks source link

Errors compiling floki 0.4 #25

Closed sllvn closed 9 years ago

sllvn commented 9 years ago

Created a new Elixir project (mix new floki_test), added {:floki, "~> 0.4"} to mix.exs, successfully ran mix deps.get, but when I run mix test on this blank project, Floki fails to compile and the project outputs:

➜ mix test
==> mochiweb (compile)
Compiled src/reloader.erl
*** SNIP ***
Compiled src/mochifmt.erl
Compiled src/mochiweb_charref.erl
/usr/local/Cellar/erlang/18.0.2/lib/erlang/lib/parsetools-2.1/include/leexinc.hrl:47: attribute 'dialyzer' after function definitions
/usr/local/Cellar/erlang/18.0.2/lib/erlang/lib/parsetools-2.1/include/leexinc.hrl:118: attribute 'dialyzer' after function definitions
/usr/local/Cellar/erlang/18.0.2/lib/erlang/lib/parsetools-2.1/include/leexinc.hrl:194: attribute 'dialyzer' after function definitions
/usr/local/Cellar/erlang/18.0.2/lib/erlang/lib/parsetools-2.1/include/leexinc.hrl:247: attribute 'dialyzer' after function definitions
==> floki
could not compile dependency floki, mix compile failed. You can recompile this dependency with `mix deps.compile floki` or update it with `mix deps.update floki`
==> floki_test
** (Mix) Encountered compilation errors.

I'm using mix/elixir 1.0.5. Above steps succeed with floki 0.3.3.

henrik commented 9 years ago

Just reported the same thing in #24 today. Good to know 0.3.3 works!

sllvn commented 9 years ago

Didn't realize your issue already existed. Closing this as dupe of #24. Thanks!

philss commented 9 years ago

@licyeus thank you!