This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-12
Channels
- # announcements (2)
- # beginners (104)
- # cider (2)
- # cljs-dev (26)
- # cljsrn (1)
- # clojure (125)
- # clojure-dev (27)
- # clojure-italy (24)
- # clojure-nl (24)
- # clojure-russia (4)
- # clojure-spec (10)
- # clojure-uk (83)
- # clojurescript (18)
- # code-reviews (102)
- # community-development (14)
- # core-async (18)
- # cryogen (11)
- # cursive (15)
- # datomic (16)
- # emacs (6)
- # figwheel-main (6)
- # fulcro (142)
- # graphql (5)
- # jobs (5)
- # jobs-discuss (18)
- # kaocha (1)
- # keechma (1)
- # leiningen (20)
- # luminus (1)
- # mount (5)
- # pedestal (4)
- # reagent (17)
- # reitit (8)
- # shadow-cljs (29)
- # tools-deps (19)
- # vim (108)
there's no way to add a jvm-opt without having to enable an alias via CLI opts, is that right?
@mfikes sorry, I mean I'd like to put it in the deps.edn
and have, e.g., clojure
pick it up
without any extra args
It would seem, a top-level thing, sibling of :deps
or :paths
is where a :jvm-opts
could live
yeah; I can't tell if that is just a missing feature, or if there's some philosophical conflict
here's a command that I can run from the terminal to start a cider-ready nrepl, but I'm having a problem when putting it into an aliase in a deps.edn file.
clj -Sdeps '{:deps {nrepl {:mvn/version "0.4.5"} cider/cider-nrepl {:mvn/version "0.18.0"} refactor-nrepl {:mvn/version "2.4.0"}}}' -m nrepl.cmdline --middleware '[cider.nrepl/cider-middleware refactor-nrepl.middleware/wrap-refactor]'
the --middleware
option is a vector with a space in the middle, but I can't find any way to make it work from deps.edn.
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[cider.nrepl/cider-middleware refactor-nrepl.middleware/wrap-refactor]"
"--interactive"]
by the time it gets to the -main
function the args
binding is set to
("--middleware" "[cider.nrepl/cider-middleware" "refactor-nrepl.middleware/wrap-refactor]" "--interactive")
oh good call! it works because it gets passed as one thing to the nrepl main and then nrepl parses it from a string using edn/read-string
Thanks!
Also known as the Corfield Comma 😂
oh good call! it works because it gets passed as one thing to the nrepl main and then nrepl parses it from a string using edn/read-string
Thanks!
I seem to be bumping up against a dep conflict but I’m not quite understanding the behavior I’m seeing from tools.deps + CLI-tools; since I had a lot of text to share I started a topic over at ClojureVerse. If anyone has a minute to take a quick look and possibly enlighten me as to what I’m missing, I’d much appreciate it! https://clojureverse.org/t/tools-deps-not-downloading-all-deps-when-run-with-r-aliases/3146?u=avi
Answered on ClojureVerse.
TL:DR; dependency version resolution has a different set of versions to consider with one alias vs multiple aliases.