This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-07
Channels
- # adventofcode (40)
- # aws (15)
- # babashka (76)
- # beginners (39)
- # calva (6)
- # cider (3)
- # clj-kondo (3)
- # clojure (89)
- # clojure-austin (1)
- # clojure-australia (4)
- # clojure-europe (42)
- # clojure-italy (9)
- # clojure-nl (27)
- # clojure-spec (8)
- # clojure-uk (17)
- # clojurescript (9)
- # conjure (1)
- # data-science (1)
- # datomic (19)
- # deps-new (4)
- # docker (9)
- # emacs (5)
- # events (1)
- # fulcro (36)
- # kaocha (31)
- # lambdaisland (5)
- # leiningen (3)
- # membrane (3)
- # nrepl (10)
- # off-topic (31)
- # pedestal (7)
- # reveal (47)
- # shadow-cljs (35)
- # sql (9)
- # test-check (1)
- # tools-deps (24)
- # uncomplicate (12)
- # xtdb (5)
I'd like to jack-in to a Clojure project using the user-wide configuration for Clojure CLI tools.
I created a calva.replConnectSequences
configuration in settings.json but in the terminal Task - Calva Jack-in output it says WARNING: Specified aliases are undeclared: [:inspect/portal-clj]
Did I miss a step to tell Calva about my ~/.clojure/deps.edn
aliases?
"calva.replConnectSequences": [
{
"name": "Inspect Portal",
"projectType": "Clojure CLI",
"cljsType": "none",
"menuSelections": {
"cljAliases": [
"env/dev",
"inspect/portal-clj"
]
}
}
],
Hmm, I think Calva replConnectSequences doesn't like Clojure CLI tools aliases that use kebab case. Is that right?
I added the inspect/portal-clj
alias to the project deps.edn
and the alias still reported as undeclared. Using the alias name :inspect/portal
in the project deps.edn
file works without issue.
Yes, it seems a calva.replConnectSequences
configuration in settings.json file does not like aliases in kebab case, like :inspect-portal
or :inspect/portal-clj
I removed the portal alias from the project deps.edn
file and removed the dash in the name of the alias in the ~/.clojure/deps.edn
file and the Inspect Portal sequence I created found the aliase.
Hmm.. I cannot reproduce. I tried your scenario as close as I could from what you said. The warning is coming from here in tools.deps: https://github.com/clojure/tools.deps.alpha/blob/b496c199388c5945f328c5d6aaf166a5cc4764d2/src/main/clojure/clojure/tools/deps/alpha/script/make_classpath2.clj#L55