Fork me on GitHub
#cider
<
2018-07-13
>
bozhidar05:07:41

Yeah, in the beginning the command was much shorter and the ... were there to indicate it’s going to take a while for nREPL to start.

dpsutton05:07:04

ah. that's why i thought it was truncated as well

bozhidar05:07:19

All of the code/configuration about the jack-in commands is in cider.el currently, although this probably won’t be the case for long.

bozhidar05:07:22

The message used to be first simply Starting nREPL..., then it became Starting nREPL via lein..., then Starting nREPL via lein repl... and so it became really long after we started auto-injecting the deps as we had to craft an awfully long command.

manuel05:07:23

I always looked at . . . as a "waiting" indicator.

arrdem09:07:24

http://{www,docs,}.http://nrepl.org should all point to the readthedocs page now @bozhidar

bozhidar11:07:29

@arrdem http://nrepl.org currently redirects to your blog 🙂

bozhidar12:07:05

Also seems to be some redirect to rtd, instead of a CNAME.

kambiing12:07:33

Hi sirs, I am having a hard time with the recent version.

kambiing12:07:42

I was using the 0.14.0 for quite sometime. A year i think.

kambiing12:07:49

I notice a difference that really get on my nerve.

kambiing12:07:04

(range 1 102) (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 ...)

kambiing12:07:12

Notice the ... at the end

kambiing12:07:19

This goes terribly with spit, as anything that i spit will be truncated and have a ... at the end

bozhidar12:07:19

@kambiing I guess you didn’t read the changelog. 😉

bozhidar12:07:02

At some point we started setting the *print-length* to avoid the problems people faced when they dumped a huge data structure in the REPL.

bozhidar12:07:23

@gonewest818 is working on a more robust solution for this, hopefully we’ll introduce this soon.

bozhidar12:07:46

In the mean time you just just disable the *print-length* (which is 100 by default).

bozhidar12:07:34

I’m still puzzled why someone decided that this should affect spit, though. Seems really odd.

kambiing12:07:35

i did a workaround by rewriting the spit yesterday to write line by line 🤤. anyway thanks for the reply sir.

eggsyntax21:07:21

I like to do:

(defn pretty-spit
  "Same args as spit"
  [f content & options]
  (assert f "You're trying to spit to an unnamed file!")
  ( f)
  (binding [*print-namespace-maps* false
            *print-length* 100000]
    (apply spit f
           (with-out-str (ppr/pprint content))
           options)))

eggsyntax21:07:07

Makes for nice readable files.

bozhidar13:07:52

You’re welcome!

dpsutton14:07:24

this bit of code will return random docstrings of defcustoms. This would be a nice addition to the startup message i think

(let* ((customs (seq-filter (lambda (entry)
                              (not (eq (nth 1 entry) 'custom-group)))
                            (get 'cider 'custom-group)))
       (max (length customs))
       (elt (random max))
       (thing (car (nth elt customs))) )
  (list thing (get thing 'variable-documentation)))

bozhidar14:07:07

@dpsutton We can probably integrated something like this with cider-tips.

jjttjj16:07:49

I was messing around with cider dependencies in emacs/lein profiles.clj and now for some reason the C-c M-n switch to namespace command isn't working at all, and doesn't show up in the describe-mode docs. Everything else seems to be working. Does this sound like a familiar issue to anyone

soulflyer02:07:33

Just started seeing this too, no idea why. I get a message saying No cljs REPLs found. Have you linked a session? when I try to run switch to namespace.

soulflyer04:07:43

Just noticed that the emacs buffer name shows as *cider-repl nnn(clj)* although it is a cljs repl. Pretty sure this is new, I clearly remember locating the correct buffer in the past by looking for the (cljs) Maybe cider is also looking for the cljs repl by buffer name. renaming the buffer doesn't fix this.

arrdem16:07:50

@bozhidar I couldn't use cnames because it lead to ssl cert issues. if you can configure readthedocs to use a "real" ssl cert for http://docs.nrepl.org then the cname will work. otherwise I suggest we stick with the current redirect.

arrdem16:07:33

will try to debug the failure to redirect tho, may just be a caching thing in your browser unfortunately. I was issuing 302 moved permanently for a while and that was a mistake.

bozhidar16:07:39

> @bozhidar I couldn’t use cnames because it lead to ssl cert issues. if you can configure readthedocs to use a “real” ssl cert for http://docs.nrepl.org then the cname will work. otherwise I suggest we stick with the current redirect.

bozhidar16:07:16

That’s not supported there - you’re http-only when using this feature, but I think it’s perfectly fine for site of this type.

bozhidar16:07:10

It’s more flexible to just deploy the mkdocs site directly to GH pages, but you lose the automated builds, which are quite handy.

bozhidar16:07:44

Probably something like this can be setup as a CI job, but dealing with the credentials is always a bit of a hassle.