Multiple build files created causing errors in terminal

Hi,

I keep running into an issue where duplicate files within my build directory will be created. If I delete the build folder it fixes it temporarily but then I see these errors in the terminal:

[error] Loading of /Users/work/Documents/engine/ev2/_build/dev/lib/ev2/ebin/Elixir.Ev2Web.Router.Helpers 2.beam failed: :badfile

[error] beam/beam_load.c(1428): Error loading module ‘Elixir.Ev2Web.UserController 2’:
module name in object code is Elixir.Ev2Web.UserController

[error] Loading of /Users/work/Documents/engine/ev2/_build/dev/lib/ev2/ebin/Elixir.Ev2Web.UserController 2.beam failed: :badfile

1 Like

I am having the same issue. Without much debugging, I suspect it may be related to use of Docker and/or Elixir LS (VSCode). What’s your setup look like?

I found out what was going on. I updated the OS on my Mac which meant that it backed-up my documents to iCloud which was causing the duplication. I had to change my iCloud settings and switch off the document backup and the issue was fixed.

4 Likes