Hello! I have changed from
(aero/read-config
(<http://clojure.java.io/resource|clojure.java.io/resource> "config.edn")
{:profile (profile)})
to
(aero/read-config
(<http://clojure.java.io/resource|clojure.java.io/resource> "config.edn")
{:profile (profile)
:resolver aero/resource-resolver})
and suddenly am getting the exception "Cannot open <nil> as a Reader." when trying to read config, any idea why that could be?
> [http://clojure.java.io$reader doInvoke io.clj 86]
> ..
> [aero.core$read_config_into_tag_wrapper invokeStatic core.cljc 332]
It seems like Aero is passing a nil
include to io/resource
?
Update: No idea what was wrong, I reverted to the default adaptive-resolver which tries io/resource anyway (and fixed my config to include "file.edn" instead of "./file.edn")If you can provide a minimal config and version I'll look into it. Bit tricky otherwise. Shouldn't happen though, you're right
I got it working so don't worry about it. Thank you!