Fork me on GitHub
#cursive
<
2020-02-06
>
onetom09:02:23

is there a way to have the destructuring recognized in the more-of form of the clojure-expectations library? https://clojure-expectations.github.io/templating.html my use-case looks like this:

(more-of {:keys [txn-eid tag-eid]}
                         some-txn-eid txn-eid
                         (entid [:tag/name "tag"]) tag-eid)
can i use the Specify... choice somehow in this case?

cfleming20:02:22

I can’t think of anything existing that looks like that, sorry.

👍 1
frankiesardo12:02:20

Hello, this may have been asked before but I can't find any resources online. How do I get Cursive to recognise node modules?

cfleming20:02:45

Right, currently it doesn’t but I’m going to fix that soon, for some value of soon.

mhuebert12:02:11

Is there a way to “print” forms to a Cursive REPL such that they will be formatted the same as when one directly sends a form to the repl from the editor? (if I run (pprint some-thing), it ends up printed in a single line)

mhuebert12:02:22

I also tried https://github.com/razum2um/aprint, it too results in a one-line print

mhuebert12:02:35

it prints nicely if I send the form (aprint a-thing) to the repl, but not if (aprint a-thing) is evaluated from my program

mhuebert13:02:18

Further searching into the wormhole leads me to believe this has more to do with clj logging config than cursive

mhuebert14:02:48

nvrmind got it sorted

onetom16:02:00

i used https://github.com/kkinnear/zprint with some success. i even customized it's color scheme to make it more readable on the light intellij theme. unfortunately the ansi escapes are sometimes leak out in the output, but still pretty usable within cursive.

imre16:02:44

if it's for debugging, https://github.com/weavejester/hashp could also be an option, I'm literally using it right now

onetom16:02:38

thanks, this looks great too!

onetom17:02:24

how would u use it in a threading macro though?

onetom17:02:01

seems like u can't really do that 😞

imre17:02:14

yeah that won't work sadly