dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
2016-12-11T00:29:28.000357Z

Hmm. Actually I am a newbee of Cider, but couldnt I use "cider-jack-in-crojurescript" with Dirac?

2016-12-11T00:29:52.000358Z

can’t tell, I’m not familiar with cider

2016-12-11T00:34:03.000359Z

I see, actually I dont know Cider can be used without "com.cemerick/piggieback" or not (I cannot so far), but as you wrote its impossible to use "dirac.nrepl/middleware" with it, right?

2016-12-11T00:34:45.000361Z

I forked piggieback, so there would be a clash between piggieback and dirac, you cannot use them at the same time

2016-12-11T00:35:05.000362Z

but cider could work with dirac’s nrepl middleware, because it is piggieback plus extra stuff

2016-12-11T00:35:21.000363Z

Right! I will try more! I guess you have changed the ns of it, right?

2016-12-11T00:36:20.000365Z

I think some people are using it with cider, at least I was asked to fix some dependency issues https://github.com/binaryage/dirac-sample/blob/master/project.clj#L92

2016-12-11T00:36:52.000367Z

try lein repl-cider from https://github.com/binaryage/dirac-sample/blob/master/project.clj#L214

2016-12-11T00:38:54.000369Z

Thanks! but can I understand "repl-cider" on the sample doesnt start with "binaryage/dirac"? Is it ok for using Dirac?

2016-12-11T00:40:09.000370Z

no, it starts dirac agent: https://github.com/binaryage/dirac-sample/blob/master/project.clj#L128

2016-12-11T00:40:26.000372Z

lein repl uses the :repl profile

2016-12-11T00:40:48.000373Z

this is automagical behaviour of lein, by default lein task brings in :lein profile

2016-12-11T00:41:15.000374Z

Ah, I might understand 🙂

cmal 2016-12-11T11:43:55.000388Z

Hi, if I want to use lein repl to start a dirac repl, should I add a :repl k/v pair to :profiles? I tried to add

:repl
             {:repl-options {:port             8230
                             :nrepl-middleware [dirac.nrepl/middleware]
                             :init             (do
                                                 (require 'dirac.agent)
                                                 (dirac.agent/boot!))}}
to my project.clj, but lein repl cannot start.(But the dirac-sample project works). Did I misunderstand something? error: Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: do in this context, compiling:(/private/var/folders/3n/cbv5r8rd2bj_f6lpjr2ck0_r0000gn/T/form-init2130278905813355364.clj:1:7275)

cmal 2016-12-11T11:44:44.000390Z

the :repl key is under :profiles key

2016-12-11T22:33:46.000412Z

@cmal: sorry, no idea, maybe share full project.clj

🦜 1