This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-01-24
Channels
- # announcements (22)
- # babashka (33)
- # babashka-sci-dev (161)
- # beginners (25)
- # calva (57)
- # cider (6)
- # clara (6)
- # clerk (14)
- # clj-kondo (24)
- # clojars (10)
- # clojure (65)
- # clojure-austin (1)
- # clojure-conj (2)
- # clojure-europe (23)
- # clojure-miami (3)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-uk (3)
- # clojurescript (28)
- # cursive (24)
- # datomic (136)
- # emacs (38)
- # graalvm (29)
- # graphql (3)
- # introduce-yourself (8)
- # jackdaw (4)
- # jobs-discuss (9)
- # malli (5)
- # nbb (36)
- # off-topic (11)
- # pathom (58)
- # polylith (2)
- # practicalli (1)
- # re-frame (5)
- # reagent (11)
- # releases (1)
- # remote-jobs (8)
- # sci (15)
- # shadow-cljs (31)
- # slack-help (2)
- # spacemacs (11)
- # sql (7)
- # tools-build (9)
Hi, can someone help me with Clojure Deps in Cursive. How to change "config dir"?
{:version "1.11.1.1113"
:config-files ["/usr/local/Cellar/[email protected]/1.11.1.1113/deps.edn" "/Users/jurko/.config/clojure/deps.edn" "deps.edn" ]
:config-user "/Users/jurko/.config/clojure/deps.edn"
:config-project "deps.edn"
:install-dir "/usr/local/Cellar/[email protected]/1.11.1.1113"
:config-dir "/Users/jurko/.config/clojure"
:cache-dir ".cpcache"
:force false
:repro false
:main-aliases ""
:repl-aliases ""}
the config dir is determined from the following info (the "user" deps.edn): https://clojure.org/reference/deps_and_cli#deps_sources
I suspect you have $XDG_CONFIG_HOME set
so you can override by setting CLJ_CONFIG
that's an environment variable, so you'll want to export a new setting wherever you do things like that, in such a way that Cursive sees the effects of that
Cursive can either use the clojure
CLI or use an embedded library (tools.deps). In both cases, those use the described environment variables
I don't understand, sorry
from the original post, you said you wanted to change the config dir - you do that by setting environment variables
what problem are you seeing?
ok, I would guess that at the terminal, you have $XDG_CONFIG_HOME set, but that Cursive is not seeing that environment variable due to how it is configured or started
you can check that by doing something like (System/getenv "XDG_CONFIG_HOME")
at a repl in Cursive
so then the question is how to set environment variables in a way that Cursive sees them - I don't know the answer to that, but it probably depends on how you start it
Following @U064X3EF3 suggestion, I've check at local
and remote
repl:
well in the remote case, you're checking the environment of the remote jvm, so not sure that's relevant