This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-12
Channels
- # adventofcode (2)
- # aleph (2)
- # announcements (5)
- # aws (5)
- # babashka (25)
- # beginners (167)
- # calva (8)
- # cider (1)
- # clj-kondo (3)
- # cljsrn (19)
- # clojure (87)
- # clojure-conj (7)
- # clojure-dev (19)
- # clojure-europe (1)
- # clojure-italy (14)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-norway (3)
- # clojure-spec (18)
- # clojure-uk (29)
- # clojuredesign-podcast (3)
- # clojurescript (40)
- # clojurex (11)
- # core-async (13)
- # core-logic (2)
- # cursive (16)
- # data-science (4)
- # datascript (10)
- # datomic (53)
- # emacs (1)
- # events (15)
- # fulcro (71)
- # jobs (1)
- # jvm (2)
- # malli (4)
- # nrepl (2)
- # pathom (74)
- # re-frame (1)
- # reitit (19)
- # remote-jobs (1)
- # rewrite-clj (18)
- # ring (2)
- # shadow-cljs (132)
- # spacemacs (22)
- # tools-deps (65)
Is there a way to start a tools.deps REPL from Cursive such that the alias definitions use -R:foo
instead of -A:foo
? I found this discussion from 2018 on the topic:
https://clojurians-log.clojureverse.org/cursive/2018-10-04
I'm just wondering whether anything has changed since then, or whether there are plans to support it?
@flowthing There’s no way to do it right now, but I’m open to being persuaded that there should be. I’m not sure that the alias separation that deps allows is a good idea in general though and I’d prefer to keep things simple - what’s your use case?
All right — it's not a super-big deal for me since I can think of a couple of ways to work around it (running an nREPL server from the command line and connecting to it from Cursive or having :main-opts
in separate aliases)... but my use case is that I have aliases like :test
and :sass
which have both :extra-deps
and :main-opts
, and when I start a REPL from Cursive, I just want the deps. Having separate aliases is OK, but it feels sort of weird to have these aliases that don't work by themselves — you need to couple them with the dep-declaring alias.
I wonder whether Cursive should ever take :main-opts
in aliases into account when starting a REPL…?
One thought that occurred to me is that instead of (or in addition to) alias1,alias2
, Cursive could allow just specying the full command line option that gets passed onto tools.deps (like -R:foo -A:bar
) or something.
Yes, I could probably do that, and for simplicity if only a bare alias is provided then that would be implicitly -A
I was also checking a few days ago if Cursive can start a REPL with -A:
and -R:
options. My use case was using REBL with nREPL middleware (that sends evaluated forms also to REBL, https://github.com/RickMoynihan/nrebl.middleware).
In the end I just started a separate nREPL and connected to it with Cursive
Has anyone used LSP with IntelliJ before? It seems to "kinda work", but not completely: https://github.com/gtache/intellij-lsp/issues/118
@borkdude I haven’t tried it, no. In general the JetBrains guys have opted for not going down the LSP route. They decided against it in their Rust IDE, for example.