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

Compilation error with ** (EXIT) no process #5

Closed
syamilmj opened this issue Jan 16, 2017 · 4 comments
Closed

Compilation error with ** (EXIT) no process #5

syamilmj opened this issue Jan 16, 2017 · 4 comments

Comments

@syamilmj
Copy link

I'm using Phoenix, getting this error during compilation:

== Compilation error on file lib/sitemaps.ex ==
** (exit) exited in: GenServer.call(Sitemap.Config, {:update, #Function<2.23984558/1 in Sitemap.Config.set/2>}, 5000)
    ** (EXIT) no process
    (elixir) lib/gen_server.ex:596: GenServer.call/3
    (elixir) lib/enum.ex:651: Enum."-each/2-lists^foreach/1-0-"/2
    (elixir) lib/enum.ex:651: Enum.each/2
    lib/sitemaps.ex:10: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
    (elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1

I have verified that :sitemap is already in my :applications list.

Any clues what's missing here? Thanks!

@TokiTori
Copy link

TokiTori commented Feb 1, 2017

I've got same error with 0.7.2 and 0.7.3...

@AnderLuiz
Copy link

+1

@ikeikeikeike
Copy link
Owner

Hmm. :sitemap wasn't starting during compilation and because of there is probably not wraping your sitemap's code by function. Could you write this code below into before your sitemap's code? I think that compilation is working well.

Application.ensure_all_started :sitemap

But this deal is no good due to README.md has given you guys a misunderstanding. I'm sorry that.

If you might use mix run, you guys should follow mix task documents, here:

If you might use mix phoenix.server, mix release, etc, you guys should wrap sitemap codd by function, like this

defmodule MyApp.Sitemap do
  use Sitemap

  alias MyApp.{Endpoint, Router.Helpers}

  def dosomething do
    create do
      add Helpers.page_path(Endpoint, :index),
        priority: 0.5, changefreq: "hourly", expires: nil
    end

    ping()
  end
end

Anyway, I will fix README.md later. Thanks noticed.

@ikeikeikeike
Copy link
Owner

Fixed with 6998602 cd95fe3

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

No branches or pull requests

4 participants