weavejester / environ

Library for managing environment variables in Clojure
922 stars 71 forks source link

IllegalArgumentException Don't know how to create ISeq from: clojure.lang.Symbol #91

Open theronic opened 4 years ago

theronic commented 4 years ago

I have a .lein-env file in my project. When I try to require environ.core, the following error is thrown, which prevents me from requiring environ again - I have to kill the REPL and restart to retry:

Compiling at (environ/core.clj:39:1).
Syntax error (IllegalArgumentException) compiling at (environ/core.clj:39:1).
Don't know how to create ISeq from: clojure.lang.Symbol

I took all blank lines and comments out of my .lein-env, but same issue. Very difficult to debug without any feedback. I wish env parsing would happen at runtime, or first access of env function.

weavejester commented 4 years ago

As mentioned at the top of the README, the .lein-env file is written to by the lein-environ plugin and should not be edited manually.

theronic commented 4 years ago

Ah, I see. Is there a way I can set many environment variables like in a .env file that environ can detect without using a lein plugin or typing them in front of the call to start the REPL?