mix_generator icon indicating copy to clipboard operation
mix_generator copied to clipboard

mix template.hex blowing up

Open MrTortoise opened this issue 6 years ago • 5 comments

installed the generator and templates ... then got this

Are you sure you want to install "mix_generator-0.1.9.ez"? [Yn] y
* creating /home/john/.mix/archives/mix_generator-0.1.9
john@John-Ubuntu:~/git$ mix template.hex
** (UndefinedFunctionError) function Hex.API.Package.search/1 is undefined or private. Did you mean one of:

      * search/2

    (hex) Hex.API.Package.search("gen_template")
    lib/mix/tasks/template.hex.ex:15: Mix.Tasks.Template.Hex.run/1
    (mix) lib/mix/task.ex:301: Mix.Task.run_task/3
    (mix) lib/mix/cli.ex:75: Mix.CLI.run_task/2
    (elixir) lib/code.ex:376: Code.require_file/2

MrTortoise avatar Oct 04 '17 15:10 MrTortoise

Asking the Hex team about this.

On Wed, Oct 4, 2017 at 10:56 AM, John Nicholas [email protected] wrote: installed the generator and templates ... then got this

Are you sure you want to install "mix_generator-0.1.9.ez"? [Yn] y

  • creating /home/john/.mix/archives/mix_generator-0.1.9 john@John-Ubuntu:~/git$ mix template.hex ** (UndefinedFunctionError) function Hex.API.Package.search/1 is undefined or private. Did you mean one of:

    * search/2
    

    (hex) Hex.API.Package.search("gen_template") lib/mix/tasks/template.hex.ex:15: Mix.Tasks.Template.Hex.run/1 (mix) lib/mix/task.ex:301: Mix.Task.run_task/3 (mix) lib/mix/cli.ex:75: Mix.CLI.run_task/2 (elixir) lib/code.ex:376: Code.require_file/2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [https://github.com/pragdave/mix_generator/issues/6] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAApmOZDRvEOaVQKhb7TCdEMIeRz01_nks5so6qcgaJpZM4Pt2GS] .

pragdave avatar Oct 05 '17 22:10 pragdave

So, they’ve changed a function I was calling in Hex.API. I think I have pushed a change that should work with both old and new hexes. Any chance you could try out master and see if it works for you? Thanks

Dave

On Thu, Oct 5, 2017 at 5:33 PM, Dave Thomas [email protected] wrote: Asking the Hex team about this.

On Wed, Oct 4, 2017 at 10:56 AM, John Nicholas [email protected] wrote: installed the generator and templates ... then got this

Are you sure you want to install "mix_generator-0.1.9.ez"? [Yn] y

  • creating /home/john/.mix/archives/mix_generator-0.1.9 john@John-Ubuntu:~/git$ mix template.hex ** (UndefinedFunctionError) function Hex.API.Package.search/1 is undefined or private. Did you mean one of:

    * search/2
    

    (hex) Hex.API.Package.search("gen_template") lib/mix/tasks/template.hex.ex:15: Mix.Tasks.Template.Hex.run/1 (mix) lib/mix/task.ex:301: Mix.Task.run_task/3 (mix) lib/mix/cli.ex:75: Mix.CLI.run_task/2 (elixir) lib/code.ex:376: Code.require_file/2

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [https://github.com/pragdave/mix_generator/issues/6] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAApmOZDRvEOaVQKhb7TCdEMIeRz01_nks5so6qcgaJpZM4Pt2GS] .

pragdave avatar Oct 05 '17 23:10 pragdave

youll have to forgive me i cant figure out how

MrTortoise avatar Oct 06 '17 22:10 MrTortoise

OK, I pushed version 0.1.14-experimental to hex. mix archive.install hex mix_templates

On Fri, Oct 6, 2017 at 5:33 PM, John Nicholas [email protected] wrote: youll have to forgive me i cant figure out how

— You are receiving this because you commented. Reply to this email directly, view it on GitHub [https://github.com/pragdave/mix_generator/issues/6#issuecomment-334885693] , or mute the thread [https://github.com/notifications/unsubscribe-auth/AAApmH8KdHgUf5qFtEvPo_aEUVM83zy8ks5spqq-gaJpZM4Pt2GS] .

pragdave avatar Oct 06 '17 23:10 pragdave

Thanks looks like that works!

MrTortoise avatar Oct 07 '17 07:10 MrTortoise