Fork me on GitHub
#cider
<
2018-07-31
>
richiardiandrea02:07:00

@drewverlee I would open a cider issue and continue from there, cannot think of an immediate reason for that off the top of my head

bozhidar04:07:32

@drewverlee Just looking at the error - it seems you on the nREPL 0.4, but figwheel-sidecar doesn’t know about it. Updating this should be trivial, but someone (e.g. @bhauman should do it).

bozhidar04:07:12

P.S. There’s also figwheel-main these days, which I believe will replace lein-figwheel completely soon, so it should be updated as well.

simple_smile 1
bozhidar05:07:05

It also seems I made an epic typo in piggieback 0.3.7 - in the namespace check I used clojure.tool.nrepl instead of the correct clojure.tools.nrepl. I’ll issue 0.3.8 in a moment.

manuel07:07:47

@bozhidar fantastic podcast on defn

2
bozhidar07:07:35

@manuel Thanks! :man-bowing:

donavan09:07:00

Hi all, just a little stuck on a config question. Is it easily possible to get coloured output in a Cider repl? Currently if I pprint a complex map it’s all in a yellow face (except some ns stuff). But if I manually enter a map at the repl it’s returned value is coloured correctly. Much thanks!

bozhidar09:07:19

Pretty-printed output is treated as any other other output, therefore the lack of any special syntax-highlighting.

bozhidar09:07:08

Btw, how exactly are you doing the pretty printing?

donavan10:07:25

via (clojure.pprint/pprint something)

bhauman11:07:15

@bozhidar @drewverlee I don't think this is figwheel-sidecar, We'd have to see the rest of the stacktrace but it looks like this is piggieback

👍 1
bozhidar12:07:58

@bhauman Yeah, yeah - this was the result of the typo I mentioned. I had written (find-ns 'clojure.tool.nrepl) intead of (find-ns 'clojure.tools.nrepl).

bozhidar12:07:08

0.3.8 should work again with tools.nrepl.

👍 2
bozhidar12:07:17

Btw, I just cut nREPL 0.4.4 and it has some sweet support for clj baked in - you can now launch nREPL with whatever custom handler you need without resorting to 3rd party tools (details here - http://nrepl.readthedocs.io/en/latest/usage/#starting-a-server)

bozhidar13:07:02

In a nutshell - starting a ClojureScript REPL is now as simple as:

bozhidar13:07:05

clj -R:nrepl -m nrepl.cmdline --middleware "[cider.piggieback/wrap-cljs-repl]"

bozhidar13:07:36

And can be made even simpler with extra aliases.

👏 5
dominicm13:07:17

That's awesome, I guess I should look at porting that 🙂

bozhidar13:07:50

@dominic You started all of this a while ago with your work in cider-nrepl. 🙂

bozhidar13:07:18

I plan to tweak the cmdline functionality in nREPL a bit more in the upcoming releases, but the foundation is here. Btw, now it also outputs exactly the same message as lein repl and boot repl, so clients parsing the output to find the port should work without any changes.

bozhidar13:07:02

Ops, I meant to write @dominicm 🙂

drewverlee15:07:46

@bozhidar thanks for your work on this! sadly i upgraded to piggieback 3.8 and i still get the same error. im sketching out a github issue and ill post it to cider-nrepl... though im not sure which lib needs to change 🙂 here is the issue. thanks again https://github.com/clojure-emacs/cider-nrepl/issues/541

bozhidar15:07:39

@drewverlee And I guess that works with 0.3.6, right?

bozhidar15:07:37

My best guess is that lein figwheel android is not loading nREPL the same way lein repl does. @bhauman can enlighten us here.

bozhidar15:07:23

I’m puzzled why the cider-nrepl middleware is having problems, though. Which version are you using?

drewverlee17:07:00

it seems it might have been due to a mismtach between the version of cider-nrepl installed on emacs and that i was injecting into the project. i downgraded to cider nrepl 18 and everything worked!

drewverlee17:07:55

i really appreciate your time on this. im going to donate some money to the cause as the world needs you and emacs and cider!

💯 1
dpsutton19:07:15

downgraded to 18 is a funny sounding phrase

j0ni16:07:57

holy cow I just M-.'d from a clojure buffer right into my hugsql raw sql file to a query definition - when did that happen? ❤️ the ever increasing awesome

💪 1