Fork me on GitHub
#cider
<
2023-11-01
>
λ02:11:22

Why does this code output before the cider startup messages https://tildegit.org/michael/irc-bot/src/branch/master/src/irc_bot/core.clj REPL output: https://paste.rs/LYt0U.clj

λ02:11:14

This happens when I start the REPL in the project

hifumi12305:11:07

I assume its due to https://tildegit.org/michael/irc-bot/src/branch/master/src/irc_bot/core.clj#L52 evaluating before irc-bot.core finishes loading

👍 1
Luciano Laratelli17:11:55

Hey all, I’m seeing an issue with the debugger. I followed the https://docs.cider.mx/cider/troubleshooting.html#debugging-freezes-lock-ups section in the docs and have a backtrace now, but unsure of how to proceed. Here’s the first few lines from the stack trace:

Debugger entered--Lisp error: (quit)
  string-width(#(" => {:database-record/datestr \"10312023\", :databas..." 0 8234077 (face (cider-result-overlay-face default))))
  (> (string-width display-string) (- (window-width) (current-column)))
  (or (string-match "\n." display-string) (> (string-width display-string) (- (window-width) (current-column))))
Looks like related to displaying a big string (result of an xtdb query)? The offending line in my code is
(let [dbrs (:database-record/body (biff/lookup db :database-record/datestr (ventas-datestr)))] 
;; ... )

Luciano Laratelli17:11:30

This is CIDER 1.8.0 in doom emacs. e9936f52432d25fdb2477dc4ec8fe95a7806e784 is the hash I have it pinned at.

vemv17:11:29

> Looks like related to displaying a big string (result of an xtdb query)? Indeed. Feel free to create an issue. Please include the entire stacktrace

vemv17:11:15

If you have it at hand, try performing string-width on a huge string - if it's slow/blocking, that's our problem :)