Is there a way to start IEx without starting the application, but only load the modules that compiled?
This could be enough, and be useful to test a couple of functions in which the developer is working on at the moment. terça-feira, 31 de Março de 2020 às 13:22:38 UTC+1, José Valim escreveu: > > "iex -S mix" also starts your application and it is very likely we won't > be able to start your application, or it would behave poorly, if not all > code has been compiled. > > On Tue, Mar 31, 2020 at 1:50 PM Mário Guimarães <mario.lui...@gmail.com > <javascript:>> wrote: > >> Hello, >> >> I think it would be nice that when running >> >> iex -S mix >> >> IEx could be started even in the presence of modules with compilation >> errors, by loading only the modules with no errors. >> >> Elixir would start IEx with only the modules that it could compile. Then, >> calling a compiled module would work as usual, but calling a module that >> could not compile would generate the typical "UndefinedFunctionError ... >> (module ... is not available)". >> >> During compilation Elixir would delete the ".beam" file for the modules >> that could not compile, so they would not be loaded, thus generating the >> previous error if they are called (perhaps this deletion step is already >> done by the compiler, I don't know). >> >> I think this feature has the virtue to reduce friction in the development >> workflow, by not forcing the developer to fix modules that won't be called >> in the IEx session. >> >> Do you think this would be useful ? >> >> Thanks >> Mário Guimarães >> >> -- >> You received this message because you are subscribed to the Google Groups >> "elixir-lang-core" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to elixir-l...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elixir-lang-core/fd5d8aff-0251-4893-a334-728a8b57cd2c%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elixir-lang-core/fd5d8aff-0251-4893-a334-728a8b57cd2c%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-core+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/63e78868-633a-4591-a187-5e992fb33208%40googlegroups.com.