Config section is empty and non-empty
Config section is empty and non-empty I have this: defmodule SomeModule do @my_custom_config_section (Application.get_env(:my_app, :common)[:key1][:key2]) IO.puts("@my_custom_config_section debug1: #{Kernel.inspect(@my_custom_config_section)}") IO.puts("@my_custom_config_section debug2: #{@my_custom_config_section}") # .......... And I have this when trying to run it - during compilation: @my_custom_config_section (Application.get_env(:my_app, :common)[:key1][:key2]) # goood! the values are correct! @my_custom_config_section debug1: %{aaa: "", bbb: "fdsafds", ccc: false, dddd: "afdsafdsfdsfds"} # also good! == Compilation error in file lib/my_app/some_module.ex == ** (Protocol.UndefinedError) protocol String.Chars not implemented for %{aaa: "", bbb: "fdsafds", ccc: false, dddd: "afdsafdsfdsfds"} However! This prints an empty string defmodule SomeModule do @my_cus...