Fork me on GitHub
#cider
<
2020-05-14
>
neo255115:05:09

@bozhidar Do I need to write any special setup to activate pretty print on CIDER with ClojureScript and Shadow-cljs?

bozhidar06:05:51

shadow-cljs doesn’t use Piggieback, so it doesn’t support pretty-printing currently. It uses it’s own evaluation middleware that has to be updated independently.

neo255115:05:17

regarding the new update on piggieback

donavan15:05:02

Apologies as this is not really a cider question but maybe someone here knows of a solution When I activate a hydra while having a cider repl buffer open the repl prompt is moved upwards (as the buffer is now smaller) but when the hydra closes the prompt is left further up in the buffer (i.e. now no longer at the bottom). This now prevents the cider buffer from scrolling with new output until I at least move focus to the repl. I can’t figure out how to turn off emacs’s overscroll feature for a buffer.

donavan15:05:12

Just thinking… if there is a cider function to reset the prompt I could call it on a ‘close hydra’ hook…

zane23:05:39

You could also consider asking in #spacemacs, which makes heavy use of hydra.

fappy18:05:10

clojure.lang.LispReader$ReaderException: java.lang.RuntimeException: No reader function for tag dbg
I’ve been getting this (above) recently when trying to debug with cider-eval-defun-at-point … has anyone else? https://github.com/clojure-emacs/cider/issues/1359with the same message is from 2 015, not sure what parts of it might still be relevant. I was able to debug just fine last week. I tried to add clj-kondo and lsp to my spacemacs. Started seeing this. Reverted my spacemacs changes but still have the problem.
$ lein version
Leiningen 2.9.1 on Java 1.8.0_221 Java HotSpot(TM) 64-Bit Server VM
;; Connected to nREPL server - 
;; CIDER 0.24.0snapshot (package: ), nREPL 0.6.0
;; Clojure 1.9.0, Java 1.8.0_221
WARNING: CIDER requires cider-nrepl to be fully functional. Some features will not be available without it!
         More information.WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.5.0-SNAPSHOT (package: 20190618.716) and n/a, respectively.

fappy18:05:57

hm. I don’t get the same error message in a different project Actually I’m able to debug only if the repl is started from within emacs …. If I start the repl in a terminal and then connect to it from emacs it complains

fappy18:05:51

… But I am reluctant to start the repl from within emacs because some of the lines this app outputs are super long and it slows down emacs a lot

dpsutton18:05:08

Cider nrepl provides nrepl middleware and also the reader tag for #dbg. You need this middleware regardless of how you start your app

fappy19:05:42

How does starting the repl within emacs include nrepl while running lein repl from the terminal not? (should I ask in #leiningen ?)

fappy19:05:52

my project.clj does not mention nrepl

dpsutton19:05:50

start your project up from within emacs and then check out the *Messages* buffer. it will show you exactly how CIDER is starting your project

fappy20:05:05

thank you kind sir!