当我在我的凤凰应用程序中运行自定义混合任务(我认为它甚至不与凤凰相关但仍然)使用一些外部库(例如https://github.com/knrz/geocoder)我得到
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
:erlang.send(:geocoder_workers, {:"$gen_cast", {:cancel_waiting, #Reference<0.0.1.13074>}}, [:noconnect])
Run Code Online (Sandbox Code Playgroud)
直到我添加
Application.ensure_all_started(:geocoder)
混合任务.所以我的问题是为什么我的所有依赖项都不会自动启动?是我做错了什么?