This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-09-14
Channels
- # babashka (18)
- # beginners (92)
- # calva (11)
- # cljs-dev (2)
- # clojure (37)
- # clojure-berlin (6)
- # clojure-czech (2)
- # clojure-dev (6)
- # clojure-europe (50)
- # clojure-france (15)
- # clojure-nl (4)
- # clojure-spec (1)
- # clojure-uk (18)
- # clojurescript (29)
- # cursive (31)
- # data-science (1)
- # datascript (2)
- # datomic (26)
- # depstar (55)
- # devcards (1)
- # duct (3)
- # emacs (49)
- # fulcro (29)
- # joker (3)
- # kaocha (1)
- # membrane (5)
- # midje (3)
- # music (2)
- # nrepl (4)
- # off-topic (3)
- # parinfer (13)
- # pathom (1)
- # portal (5)
- # re-frame (13)
- # ring (1)
- # schema (1)
- # sci (7)
- # shadow-cljs (25)
- # tools-deps (10)
- # vim (34)
- # vrac (2)
- # xtdb (20)
Duuno if this has been reported already but stub generation doesn't work for me anymore:
Syntax error (FileNotFoundException) compiling at (C:\Users\Niklas\AppData\Local\Temp\create-stub14382613955835016522.clj:1:1).
Could not locate cursive/stubs/metadata/clojure__init.class, cursive/stubs/metadata/clojure.clj or cursive/stubs/metadata/clojure.cljc on classpath.
Can you try this please? Help->Diagnostic Tools->Debug Log Settings…, add #cursive.stubs
there, then reproduce the problem and send me the logs to <mailto:[email protected]|[email protected]>?
Is there a way to make alternative repls like REBL or Reveal work with the nREPL option from Cursive > run configurations? I can make it work with clojure.main from the run config, and also by starting the REPL from the shell and then connecting to it from Cursive. But both of these have some drawbacks for running tests / debugging.
I use nrebl middleware, which works good most of the time; https://github.com/RickMoynihan/nrebl.middleware
Could you share your run configuration settings in Cursive? I can't make it work with starting the repl from inside IntelliJ
@U0539NJF7 I haven’t tried this, but I’ll have a go at setting it up in the next day or so.
The author of reveal is a Cursive user, so I imagine it can be made to work well there (paging @U47G49KHQ)
Ah I didn't know that. Here's some more documentation on what I tried: Solution 1 (works) add alias
:reveal-nrepl {:extra-deps {vlaaad/reveal {:mvn/version "0.1.0-ea30"}
nrepl/nrepl {:mvn/version "0.7.0"}}
:main-opts ["-m" "nrepl.cmdline" "--middleware" "[vlaaad.reveal.nrepl/middleware]"]}
and start from cli
clj -A:reveal-nrepl
and connect Cursive remote nREPL to that process
Solution 2 (works)
define alias
:reveal {:extra-deps {vlaaad/reveal {:mvn/version "0.1.0-ea30"}}
:main-opts ["-m" "vlaaad.reveal" "repl"]}
and from Cursive, create run configuration as follows (see screenshot)
• clojure.main
• add reveal
to aliasesOk, but you’d like to start the process using a local REPL, install the middleware and be able to connect to it?
because, the clojure.main repl doesn't have run tests
integration, and the remote repl doesn't allow debugging
Have you tried setting the middleware using .nrepl.edn
? https://nrepl.org/nrepl/0.8/usage/server.html#server-configuration
For remote debugging, see: https://groups.google.com/g/cursive/c/iTri7vvXViA/m/w_HXi5mlDAAJ
just adding
:middleware [vlaaad.reveal.nrepl/middleware]
to the config and ensuring to add an alias that includes the dep works
thanks!I never had a need for test integration provided by nrepl, tests can be run from the repl ¯\(ツ)/¯