Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip mix dynamo.filters if Mix.project[:dynamos] is not defined #147

Merged
merged 1 commit into from Oct 15, 2013
Merged

skip mix dynamo.filters if Mix.project[:dynamos] is not defined #147

merged 1 commit into from Oct 15, 2013

Conversation

parroty
Copy link
Contributor

@parroty parroty commented Oct 15, 2013

"mix dynamo.filters" on original dynamo project fails with the "Protocol.UndefinedError".
It would not be a valid scenario (it should be executed for a project created by "mix dynamo"), but it's nice to just skip the task processing if there's nothing to be displayed?

% git clone https://github.com/elixir-lang/dynamo
% cd dynamo
% mix deps.get
% mix compile
% mix dynamo.filters
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil
/Users/knakase/tmp/github/elixir/lib/elixir/lib/enum.ex:1: Enumerable.impl_for!/1
/Users/knakase/tmp/github/elixir/lib/elixir/lib/enum.ex:37: Enumerable.reduce/3
/Users/knakase/tmp/github/elixir/lib/elixir/lib/enum.ex:354: Enum.each/2
/Users/knakase/tmp/github/elixir/lib/mix/lib/mix/project.ex:153: Mix.Project.recur/2
/Users/knakase/tmp/github/elixir/lib/mix/lib/mix/task.ex:167: Mix.Task.run/2
/Users/knakase/tmp/github/elixir/lib/mix/lib/mix/cli.ex:61: Mix.CLI.run_task/2

josevalim pushed a commit that referenced this pull request Oct 15, 2013
skip mix dynamo.filters if Mix.project[:dynamos] is not defined
@josevalim josevalim merged commit c9c2fac into dynamo:master Oct 15, 2013
@parroty parroty deleted the fix branch December 1, 2013 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants