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
Author of Craft GraphQL APIs in Elixir with Absinthe
If you rm -rf _build does the problem persist?
2
romenigld
this worked for me.
But I was seeking on the internet and I saw this command:
mix do clean, phx.server
1
Popular in Questions
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
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
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I’m writing a test for one of the...
New
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
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
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
In templates/appointment/index.html.eex:
<%= for appointment <- @appointments do %>
<tr>
<td><%= appoi...
New
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
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
I would like to know what is the best IDE for elixir development?
New
Other popular topics
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
New
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
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
New
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
Hi!
In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir?
Searched the docs for ip address and the web, no good results.
Thanks!
New
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
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
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
I would like to know what is the best IDE for elixir development?
New
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








