geofflane

geofflane

Phoenix Recompiling / Redefining module every page load

I’ve been playing with Ubuntu 17.04 in a VMware VM and pulled in one of my Phoenix projects (Phoenix 1.3-rc, Elixir 1.4.2, Erlang 19.2.1). It pulls the deps fine, compiles fine, and runs the tests fine. But when I load a Phoenix page in my browser it recompiles the whole application and gives a bunch of warnings about redefining module. It does this over and over for every page load and, of course, it’s super slow because of that.

warning: redefining module Molly.Integration.Server (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Integration.Server.beam)
  lib/molly/integration/server.ex:1

warning: redefining module Molly.Web.Api.PlayerView (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Web.Api.PlayerView.beam)
  lib/molly/web/views/api/player_view.ex:1

warning: redefining module Molly.Web.Api.PackageView (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.Web.Api.PackageView.beam)
  lib/molly/web/views/api/package_view.ex:1

warning: redefining module Molly.FranchisePreferredPackage (current version loaded from _build/dev/lib/molly/ebin/Elixir.Molly.FranchisePreferredPackage.beam)
  lib/molly/core/franchise_preferred_packages.ex:1

Has anyone seen anything like this? Thanks!

Most Liked

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

If you rm -rf _build does the problem persist?

romenigld

romenigld

this worked for me.
But I was seeking on the internet and I saw this command:
mix do clean, phx.server

Where Next?

Popular in Questions Top

vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
LegitStack
I’m hoping you guys can give me some general advice and perhaps code examples if you’re feeling up to it. I’m very interested in Elixir,...
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
makeitrein
Hey all, just started picking up Elixir last week and am writing a scraper as a learning project. Baby step #1 is extracting the number ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
kostonstyle
Hi all I want to have a unix time, from the current time plus 1 hour. DateTime.now + 1 hour How to get it in elixir? Thanks
New

Other popular topics Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New

We're in Beta

About us Mission Statement