peter-de-boer
Swoosh related compile errors after switching branches
I have one feature branch in which I am implementing email handling using Swoosh. It is the only branch in which I have swoosh in my dependencies, etc. It all seems to run fine.
When I switch from that feature branch to any other branch, and run mix compile, I get this:
08:14:59.391 [warn] The on_load function for module Elixir.Bw.Mailer returned:
{:undef,
[
{Swoosh.Mailer, :parse_config, [:bw, Bw.Mailer, [otp_app: :bw], []], []},
{Bw.Mailer, :validate_dependency, 0, [file: 'lib/bw/mailer.ex', line: 6]},
{:code_server, :"-handle_on_load/5-fun-0-", 1,
[file: 'code_server.erl', ...]}
]}
08:14:59.390 [error] Process #PID<0.251.0> raised an exception
** (UndefinedFunctionError) function Swoosh.Mailer.parse_config/4 is undefined (module Swoosh.Mailer is not available)
Swoosh.Mailer.parse_config(:bw, Bw.Mailer, [otp_app: :bw], [])
lib/bw/mailer.ex:6: Bw.Mailer.validate_dependency/0
(kernel 7.2) code_server.erl:1355: anonymous fn/1 in :code_server.handle_on_load/5
The application still seems to run fine though, but the message is a bit annoying. What is the root cause for this, and can it be solved/avoided?
Popular in Questions
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,
is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
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
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
Background
Let’s assume I have a typical GenServer that receives messages as requests, does some operation in a DB and returns responses....
New
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
I am trying to run a deploy with docker and I successfully runned with this command:
docker build -t romenigld/blog-prod .
but when I t...
New
Other popular topics
Update:
How to use the Blogs & Podcasts section
You can post links to your blog posts or podcasts either in one of the Official Blog...
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
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...
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
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New







