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

chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New

Other popular topics Top

TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 41539 114
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 53690 245
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36128 110
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
klo
Got a question about when to concat vs. prepending items to list then reversing to achieve appending. So i know lists boil down to [1 | ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

We're in Beta

About us Mission Statement