elixir-web / weber

[WiP] Web framework for Elixir inspired by Rails [#WeberMVC at freenode]
http://elixir-web.github.io/weber/
MIT License
370 stars 33 forks source link

Starting a new project with Grunt fails #135

Closed slogsdon closed 10 years ago

slogsdon commented 10 years ago

I just pulled down the latest version of Weber, and I ran into this issue.

$ mix weber.new ../project_name --grunt
** (FunctionClauseError) no function clause matching in Mix.Tasks.Weber.New.run/1
    lib/mix/tasks/weber.ex:42: Mix.Tasks.Weber.New.run(["../project_name", "--grunt"])
    /private/tmp/elixir-0cUY/lib/mix/lib/mix/cli.ex:58: Mix.CLI.run_task/2
    src/elixir_lexical.erl:18: :elixir_lexical.run/2
    /private/tmp/elixir-0cUY/lib/elixir/lib/code.ex:307: Code.require_file/2

I get the same result when using an absolute path for the new project as well. Creating a new project without the--grunt option works as expected.

Local environment is using R16B02 and Elixir 0.12.1-dev.

0xAX commented 10 years ago

Hello @slogsdon,

weird, can't reporduce it with the last weber and elixir

slogsdon commented 10 years ago

I'll double check again and report back. It may have been a fluke.

slogsdon commented 10 years ago

There must be a problem with my local install somewhere. I just booted up a VM with the latest of everything, and the --grunt option works without issue.

brennebeck commented 10 years ago

@slogsdon did you ever figure out what caused this? I'm having the same issue.

slogsdon commented 10 years ago

@brennebeck From what I remember, I stopped having issues with a fresh install, but I didn't try to debug this any further. Sorry for not having much else to offer in terms of helping you resolve this.

brennebeck commented 10 years ago

@slogsdon No worries, thanks.