keichan34 / exfile

File upload persistence and processing for Phoenix / Plug
MIT License
90 stars 19 forks source link

Solve #54 is not loaded and cannot be found #55

Open asiniy opened 7 years ago

asiniy commented 7 years ago

According to ensure_loaded docs:

Elixir also contains an ensure_compiled/1 function that is a superset of ensure_loaded/1.

Since Elixir’s compilation happens in parallel, in some situations you may need to use a module that was not yet compiled, therefore it can’t even be loaded.

So, this compiled code will not affect RAM somehow.

@keichan34 it it works for you, please release a new version

keichan34 commented 7 years ago

Hmm... This fix would make ecto required, though. To correctly fix this, I should break the ecto stuff out of the main exfile and put it in to a separate exfile-ecto package...