This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-23
Channels
- # announcements (11)
- # architecture (14)
- # babashka (34)
- # bangalore-clj (8)
- # beginners (108)
- # calva (10)
- # cider (19)
- # circleci (9)
- # clj-kondo (19)
- # clojars (4)
- # clojure (62)
- # clojure-australia (2)
- # clojure-europe (62)
- # clojure-italy (14)
- # clojure-nl (8)
- # clojure-poland (1)
- # clojure-spec (14)
- # clojure-uk (59)
- # clojurescript (14)
- # community-development (5)
- # conjure (2)
- # core-async (10)
- # cryogen (1)
- # cursive (11)
- # data-science (1)
- # datahike (13)
- # datomic (21)
- # deps-new (4)
- # ethereum (1)
- # events (4)
- # fulcro (34)
- # helix (2)
- # jobs (2)
- # juxt (33)
- # kaocha (4)
- # lsp (18)
- # malli (4)
- # membrane (2)
- # off-topic (23)
- # re-frame (3)
- # reitit (4)
- # remote-jobs (1)
- # reveal (6)
- # shadow-cljs (47)
- # slack-help (2)
- # spacemacs (5)
- # sql (45)
- # startup-in-a-month (6)
- # testing (4)
- # tools-deps (21)
- # xtdb (4)
when I click the link below I get a 404. Just a heads up… bb --nrepl-server 1667 Started nREPL server at 127.0.0.1:1667 For more info visit https://github.com/babashka/babashka/blob/master/doc/repl.md#nrepl.
Ah right, that link moved to the http://book.babashka.org. I will change it, thanks
@borkdude @cfleming what’s the state of play for using bb --nrepl-server in Cursive? It seems to work for me but for each eval I also get a Cursive exception clojure.lang.ExceptionInfo: Could not resolve symbol: cursive.repl.runtime/completions
No, vanilla cursive. I’d guess it’s Cursive assuming a CLJ or CLJS env. prob best if we wait for comment from Colin
I might try creating an nrepl middleware that throws away that specific exception. that would make life a little nicer
Yeah, the thing is with babashka nREPL is that you (at the moment) can't have middleware, since the nREPL server is pretty much a monolithic thing that supports only the basic nREPL features + the pprint middleware
We could support defining middleware in a babashka script possibly, but that's not there at the moment
Ok. That's definitely my knowledge limit. Let's see what Colin says in (our downunder) morning
Ugh, I’ve been meaning to look at this, sorry. Cursive should probably either interrogate the REPL at startup to get an idea of the env available, or allow the user to configure it and assume they know what they’re doing.
Cursive doesn’t use middleware, so it’s not that. I suspect the code it sends over for completion uses features that bb doesn’t offer.
@cfleming Can Cursive connect to an already started nREPL that hasn't been started by Cursive itself? I would expect the same problem to manifest there
I thought this might be the case. I’ll ignore the exceptions for now. It’s worth it because using a REPL for bb is much faster than testing using bb cli
fwiw: I am starting the nrepl server in a terminal window and connecting to that. It was trivial to get started, this is a really good DX
@adam.james Thanks for becoming a sponsor on Github. Would you like to have access to the private sponsors channel?
Sure, that sounds nice
@heow Thanks for sponsoring! Would you like to have access to the private sponsors channel?
i've noticed that clojure.instant is not included. is it an oversite or there is a reason for it?
btw this lib also works with babashka: https://github.com/henryw374/cljc.java-time