Fork me on GitHub
#cider
<
2018-01-26
>
bozhidar11:01:30

@xiongtx Are you watching the repo?

bozhidar11:01:23

I see you’re both a member of the organization and watching the repo. Might be something to do with your personal settings.

xiongtx18:01:30

I wasn’t watching it before, but now I am.

bozhidar11:01:48

Btw, a few random notes on helm-cider: * it’d be nice if it had some changelog * there hasn’t been a stable release in a while * perhaps we should merge with clojure-cheatsheet which is now abandonware and uses helm to render the cheatsheet. Originally I planned to make the cheatsheet something that could be used with with other selection framework, but sadly I never found the time for this. Just something like a list of hashmaps mapping categories to the functions in them. With something other then helm you first select the category and then one of the vars inside. Anyways, not a big deal - I just got reminded about a past idea.

xiongtx20:01:00

Isn’t it just a matter of copying clojure-cheatsheet-hierarchy into CIDER and letting each front-end process the data as it sees fit?

xiongtx20:01:32

Personally, I’m not sure how the clojure-cheatsheet as it stands is useful. You can’t easily navigate between sections, for example. It’s not scannable like the online cheatsheet at all.

stardiviner13:01:07

This is a great idea.

bozhidar15:01:58

Unfortunately many great ideas remained just ideas due to lack of time on my side, and the desire of others to drive them forward. Let’s hope at some point we’ll make this one happen - I really want us to make newcomer experience better and this certainly ties into this overarching idea.

qqq15:01:21

@bozhidar: have I told you how amazing cider-doc is yet?

qqq15:01:24

it's fucking amazing

qqq15:01:33

no more popping up a new chrome tab, googling clojuredocs

qqq15:01:39

and typing in the function name

qqq15:01:58

now, it's just S-h c in emacs, type in function name, and it's all in the popup buffer

qqq15:01:44

cider-javadoc is cool too, but why is it a safari windows instead of a emacs popup ?

dpsutton15:01:28

grimoise is the bees knees

qqq15:01:07

do you mean https://github.com/clojure-grimoire/grimoire or somethign else? s <-> r

qqq15:01:31

@dpsutton ^

bozhidar15:01:41

> cider-javadoc is cool too, but why is it a safari windows instead of a emacs popup ?

bozhidar15:01:17

cider-doc shows javadoc as well within Emacs, cider-javadoc was meant to take you to the JavaDoc page for something online.

bozhidar15:01:15

I know this is a bit confusing, but I never got to improving it.

qqq15:01:37

https://imgur.com/a/Fk5J8 <-- it says "Not Documented"

qqq15:01:43

do I have something misconfigured ?

dpsutton15:01:53

cider-grimoire is the command

qqq16:01:08

@dpsutton: I like how I can copy/paste sample code from grimoire window

dpsutton16:01:01

my favorite thing to do is copy/past out of the kill ring buffer. it's so meta. what have i recently copied? scroll through and copy a substring out of my copies

qqq16:01:31

there needs to be a cider tricks wiki page somewhere

qqq16:01:41

there's all these cool things that I don't know how to do

michal16:01:02

hey there, if I wanted to turn off tags regeneration for one specific project (and keep in on for the rest), is it enough to add ((nil . ((projectile-enable-idle-timer nil)))) to .dir-locals.el? I think projectile tries regenerate tags anyway 😞

codeasone16:01:03

and I agree a cider tricks wiki would be great

bozhidar16:01:19

@michal Likely currently it just walks the list of known projects or something like this if this doesn’t work. I have to consult the actual implementation to know this for sure.

michal16:01:57

@bozhidar thanks. what bothers me a bit (and most likely this is the cause of my problem) is that having .dir-locals.el set as above I still see projectile-enable-idle-timerswitched on. I started wondering if the syntax of my .dir-local.el is correct.

bozhidar17:01:49

Looks correct to me, but frankly I never bothered to remember it - I always google for it. 😄

bozhidar17:01:22

Looked at the code and the dir locals should work - that functionality operates on the current project.

bozhidar17:01:26

Seems you overdid the parens.

bozhidar17:01:41

((nil
  (bug-reference-url-format . "")))

bozhidar17:01:55

I saw this in CIDER’s code and I know it’s correct.

michal17:01:58

well, that's what I googled 🙂

michal17:01:03

but I will try your version

michal17:01:12

seems like there is some other magic behind. i'm still getting tags regenerated. anyway, thanks @bozhidar for sorting out the syntax of .dir-locals.el 😉

richiardiandrea17:01:53

.dir-locals.el is amazing, I need to write some small post about it

richiardiandrea17:01:45

I worked on a fix for inf-clojure yesterday that correctly loads it for all the non-file buffers (/cc @bozhidar)

bozhidar17:01:10

> seems like there is some other magic behind. i’m still getting tags regenerated. anyway, thanks @bozhidar for sorting out the syntax of .dir-locals.el 😉

bozhidar17:01:23

I’d suggest using the Elisp debugger to see what exactly is going on.

michal17:01:43

ok, got it. this should work:

((nil
  (eval when
        (require 'projectile)
        (setq projectile-enable-idle-timer nil))))

michal17:01:27

the funny thing is that it also can be used to have per-project repl history:

((nil
  (eval when
        (require 'projectile)
        (setq cider-repl-history-file (concat
                                       (projectile-project-root)
                                       ".nrepl-history")))))

richiardiandrea19:01:35

how does cider handles keyword completions? (thing-at-point 'symbol) does not return anywhing when point is at |:foo

kingmob19:01:00

Is anyone else having issues getting load-file to work in a browser REPL? It keeps sending goog.addDependency calls with out in the path, even though that’s not my :output-dir

kingmob19:01:19

The piggieback readme says > When using Piggieback to enable a browser REPL: the ClojureScript compiler defaults to putting compilation output in out, which is probably not where your ring app is serving resources from (resources, target/classes/public, etc). Either configure your ring app to serve resources from out, or pass a cljs-repl :output-dir option so that a reasonable correspondence is established. Is there some other :output-dir option I need to set somewhere?

dominicm21:01:32

@bozhidar is orchard/cider broken right now?

dominicm21:01:57

> CompilerException java.io.FileNotFoundException: Could not locate orchard/misc__init.class or orchard/misc.clj on classpath., compiling (cider/nrepl/middleware/pprint.clj:1:1)

gonewest81803:01:06

The latest Travis CI job for cider-nrepl has some failures, but they’re cljs tests on jdk9, and the eastwood check.

gonewest81803:01:09

Otherwise the master branch seems to be building and testing. I’m not sure when the most recent snapshot was pushed to clojars.

gonewest81803:01:28

There is work going on in cider-nrepl and orchard to auto-publish snapshot jars (if the tests are clean). But that’s not quite done yet.

bozhidar08:01:08

It’s working for me. Are you sure you’re using the latest snapshots?

dominicm08:01:45

I'll try now

dominicm08:01:48

so, using latest snapshots, now refactor-nrepl is unhappy, but that's not surprising.

dominicm08:01:53

> Exception in thread "main" java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath., compiling:(refactor_nrepl/middleware.clj:1:1)

dominicm08:01:52

Got it working, thanks!

bozhidar09:01:57

Yeah, refactor-nrepl needs some updates at this point.

dominicm22:01:53

I have a working init fn for clj anyway 🙂

dominicm22:01:20

I'll publish once I can do an end-to-end test with cider & everything

dominicm22:01:36

fwiw: clj -Sdeps '{:deps {refactor-nrepl {:mvn/version "2.3.1"} com.gfredericks.dominic/debug-repl {:mvn/version "0.0.1"} cider/cider-nrepl {:mvn/version "0.17.0-MYFORK"} }}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["com.gfredericks.debug-repl/wrap-debug-repl"])' -r is the CLI I've ended up with.

dominicm22:01:04

(vim jack in will get this before emacs 😉 )

richiardiandrea22:01:18

maaaaaaan, you are single single-handedly doing it 😉 Good job! I am fighting my battle on the inf-clojure side