Hi !
I defined a macro like this:
```
defmodule Test do
defmacro __using__ do
quote do
require Test
import Test
end
end
defmacro my_macro do
quote do
Gernserver.call() # generic server call from other module
end
end
end
```
I have this code inside a lib which I am building. When testing this lib in a different application I get a compile error on the file which has the `use Test`.
Error: `exited in: GenServer.call ...` `exit no process` (on the line of the my_macro call, more specifically on the genserver call). As if the genserver was not running, and it is not because it is compile time.
Adding a simple Application.ensure_all_started(:lib_name) to the __using__ macro seems to fix the problem. But then again, at compile time the code shouldn't be running, am I right ? Or is here something I am not seeing ? Maybe I can not use genserver calls on a macro ? Or is it a bug ?
Thanks.