This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-02
Channels
- # beginners (72)
- # boot (68)
- # cider (51)
- # clara (20)
- # cljs-dev (44)
- # cljsrn (7)
- # clojure (168)
- # clojure-brasil (1)
- # clojure-dev (48)
- # clojure-greece (2)
- # clojure-nl (29)
- # clojure-russia (4)
- # clojure-spec (19)
- # clojure-uk (28)
- # clojurescript (2)
- # cursive (9)
- # datascript (1)
- # datomic (105)
- # dirac (1)
- # docker (2)
- # duct (11)
- # emacs (19)
- # events (1)
- # figwheel (1)
- # fulcro (23)
- # garden (4)
- # graphql (5)
- # hoplon (46)
- # jobs (5)
- # juxt (13)
- # leiningen (6)
- # lumo (12)
- # off-topic (29)
- # parinfer (5)
- # re-frame (7)
- # reagent (6)
- # ring (2)
- # sql (5)
- # yada (6)
@shooodooken The way to interact with the code being debugged is usually by injecting some values from the debugger itself.
Every time you change the code definition the debugger no longer can map what the current code to what was actually instrumented by it.
Take a look at the manual for more details http://cider.readthedocs.io/en/latest/debugging/
@bozhidar My colleague just used my snippet to cider-connect to an nrepl. 2 things of note: - deps.edn needs adding to the project root finder - Someone needs to write a jack-in builder for clj in elisp
@dominicm I know. That’s trivial to do, I just didn’t have time to address it recently.
But yeah, really excited that it worked for him (when I copied the jack in command from vim 😈 )
Oh, something else @bozhidar, he had to add an explicit dependency on tools.nrepl to the project. I thought that cider-nrepl had one, so I didn't mention it anywhere.
@dominicm tools.nrepl
or orchard
? There’s an explicit dependency to tools.nrepl
, but for some reason I needed to add a dependency to orchard
, even though it should have been inlined.
@bozhidar tools.nrepl, 100%. It couldn't require clojure.tools.nrepl.server (or similar)
❯ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.17.0-SNAPSHOT"} }}' -Spath
src:/home/dominic/.m2/repository/org/clojure/clojure/1.9.0/clojure-1.9.0.jar:/home/dominic/.m2/repository/cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-SNAPSHOT.jar:/home/dominic/.m2/repository/org/clojure/spec.alpha/0.1.143/spec.alpha-0.1.143.jar:/home/dominic/.m2/repository/org/clojure/core.specs.alpha/0.1.24/core.specs.alpha-0.1.24.jar
Definitely missing.it it's only me? or my emacs configuration? or formatting is broken?
hmm looks like problem on my side, I just opened same file in cursive and looks correct
Oye, currently, whenever I include cider-nrepl (`:plugins [[cider/cider-nrepl "0.17.0-SNAPSHOT"]`), lein gives me a TLS warning.
$ lein repl
Tried to use insecure HTTP repository without TLS.
This is almost certainly a mistake; however in rare cases where it's
intentional please see `lein help faq` for details.
I totally see cider on clojars, so I don’t understand the error. https://clojars.org/repo/cider/cider-nrepl/0.17.0-SNAPSHOT/
That came up in #clojure a few hours ago: https://clojurians.slack.com/archives/C03S1KBA2/p1517581266000633
@gonewest818 Ah ok. I have an HTTP repository configured. But cider-nrepl comes from clojars. So does that qualify as a bug?
No, you can use https to access clojars. In Leiningen the url would be
.
Ok, explicitly setting “https://clojars.org/repo” as a repo, does the trick. Cheers!
:thumbsup:
Although, I don’t understand what happened in your case. If I do this:
$ lein new foo
$ cd foo
$ vi project.clj
# (in vi, insert ":plugins [[cider/cider-nrepl "0.17.0-SNAPSHOT"]]" and save)
$ lein repl
Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180131.161649-9.pom from clojars
Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180131.161649-9.jar from clojars
nREPL server started on port 53908 on host 127.0.0.1 -
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_112-b16
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> Bye for now!
no problems.
and I didn’t have to do anything with repo settings. That was leiningen 2.8.1.
I don't like that cider functions open things in other-window
all the time. jack-in, cider-scratch, etc. I want them to open in the current window. Is there a straightforward way of setting that?
@gonewest818 Right. That was also my confusion. Maybe it’s because I had those profile settings in my ~/lein/profiles.clj ? I dunno.
@twashing let me try that.
I think the other-window
configuration happens on a case by case basis. So window behaviour on repl connection, is described here: https://cider.readthedocs.io/en/latest/using_the_repl/#repl-configuration
@twashing with the following inserted into ~/.lein/profiles.clj
;;; note: CIDER injects its own dependencies these days
:repl
{:plugins
[[cider/cider-nrepl "0.17.0-SNAPSHOT"]]
:dependencies
[[org.clojure/tools.nrepl "0.2.13"]]}
and deleting the same from my “foo” project from before, and deleting ~/.m2/repository/cider/cider-nrepl/0.17.0-SNAPSHOT
, I still have no problem launching the repl:
$ lein repl
Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180131.161649-9.pom from clojars
Retrieving cider/cider-nrepl/0.17.0-SNAPSHOT/cider-nrepl-0.17.0-20180131.161649-9.jar from clojars
nREPL server started on port 56102 on host 127.0.0.1 -
REPL-y 0.3.7, nREPL 0.2.13
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_112-b16
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
Results: Stored in vars *1, *2, *3, an exception in *e
user=> Bye for now!
@gonewest818 Ok, starts for me too. Don’t know what I did wrong then.
not a problem!
@gonewest818 there was a thread, tools.nrepl is test scoped in the pom, and it shouldn't be.