spacemacs

Spacemacs docs: http://develop.spacemacs.org/doc/DOCUMENTATION.html http://develop.spacemacs.org/layers/+lang/clojure/README.html https://practicalli.github.io/spacemacs/
ivar 2021-02-16T14:59:50.131900Z

if I see WARNING: CIDER 1.1.0-snapshot requires cider-nrepl 0.25.9, but you're currently using cider-nrepl 0.21.1. The version mismatch might break some functionality! have I done something wrong, or did I catch my spacemacs dependenies in a weird state when I updated my packages? (I just refreshed develop and updated all my packages)

ivar 2021-02-16T15:11:37.132700Z

hmm.. following up, I tried using the practicalli spacemacs config and it has the same error.

ivar 2021-02-16T16:52:52.132900Z

ugh. I'm still new to this. I found the old version of cider-nrepl was specified in the project.clj

ivar 2021-02-16T22:52:42.135200Z

Another newb question - how do I load environment variables into my repl ? I've got direnv setup in my shell, and a .envrc file at the root of my clojure project, but I'm stumped as to how to provide the env vars to the repl process. Any pointers appreciated.

practicalli-john 2021-02-17T08:12:55.135800Z

If you add an environment variable to you operating system with Emacs already running, you will need to restart before Emacs picks it up. If you are using Spacemacs develop them add the environment variable to spacemacs.env SPC f e e Then reload spacemacs.env (which I think is SPC f e E )

👀 1
ivar 2021-02-17T15:56:28.136100Z

oooh. Interesting

ivar 2021-02-17T16:05:05.136400Z

My use case is that I want the jvm started with cider-jack-in to have certain environment vars. For my shell I use direnv but I'm not sure what's the best way (or frankly any way) to get this to work in spacemacs. I see there's at least a couple of existing emacs plugins (https://github.com/purcell/envrc and https://github.com/wbolster/emacs-direnv) but I'm not comfortable enough with spacemacs (or emacs) to try creating my own layer. Am I missing existing functionality in spacemacs on how to use these env vars ? is it possible to set environment variables with .dir-locals.el that would be exposed to a repl process?

ivar 2021-02-17T16:06:15.136900Z

in the short term, I guess I can swap out different versions of spacemacs.envand restart emacs when switching projects.. I didn't know about spacemacs.env - thank you!

practicalli-john 2021-02-17T17:42:36.137200Z

I would probably create a spacemacs.env file for each set of environment variables, naming them something like spacemacs.env.appone, spacemacs.env.apptwo and create a symbolic link called spacemacs.env that links to which ever file has the ones I need. When changing apps, I'd recreate the symbolic link to point to the other file and run SPC f e E to load it.

ivar 2021-02-17T17:54:54.137400Z

that seems viable, and is a step better than what I've got going.. thank you for your advice