Fork me on GitHub
#calva
<
2022-04-01
>
Jacob Emcken07:04:44

How can I get a specific environment variable set, when starting a REPL started from Calva?

Jacob Emcken08:04:05

I found the jackInEnv Calva setting :thumbsup: and did a Workspace-wide configuration.

pez08:04:55

Awesome. Iirc there is also a jackInEnv in the custom connect sequences.

Jacob Emcken08:04:17

what is "the custom connect sequence"?

Jacob Emcken08:04:44

I'm just using "Jack-in"

pez12:04:30

https://calva.io/connect-sequences/ is a way to automate jack-in or connect a bit further. It comes in especially handy if you need to enrich the REPL some at start, and especially with some ClojureScript REPLs. For environment variables it could be a way to support two or more environments conveniently.

Jacob Emcken09:04:29

When I do a project wide search Ctrl + Shift + f I also get (a lot of) results from clj-kondo cache and lsp I see I can exclude folder from my search, but maybe they should be excluded by default?

Jacob Emcken09:04:41

Maybe the fact that my git repo is a "mono repo" and I've chosen just to open a sub-folder from the mono repo i VS Code makes the search stumble. 🤷

ericdallo13:04:11

You should have in your gitignore:

.lsp/.cache
.clj-kondo/.cache

ericdallo13:04:18

Then search should consider it