Fork me on GitHub
#cursive
<
2021-04-27
>
Jeff Evans01:04:24

Yeah using the REPL more is clearly superior. But sometimes you're in 20 calls deep, with some data from the DB in scope, and just want to see what keys are there (or whatever). I think breaking up stuff more is probably a good approach. Especially in the middle of a let

phronmophobic02:04:10

Some posted this the other day. Maybe it’s a good fit https://github.com/gfredericks/debug-repl

Ronny Løvtangen08:04:41

For that use case, I prefer using https://github.com/vvvvalvalval/scope-capture Rather than stopping at a break point, you “record” all variables in scope and can use REPL to inspect those variables afterwards.

6
Trevor15:04:49

I'm sure this has been asked before, but I'm curious what would be the best thing to do to get intellisense for typescript libs? Compilation is much more straightforward now with shadow-cljs, but would be cool if I could get the ability to leverage cursive's ability to auto-import typescript libraries like I can import clojure(script) libraries. My first thought is that I take a stab at generating a bunch of clojurescript namespaces with wrapper methods and defs using the typescript compiler to give me an AST from .d.ts files (or even just ts files). But with cursive is there something even better I could generate? Something that would expose the actual typescript lib's API instead of my wrapper code? (Definitely a lot of work I'm sure, but sounds like a fun side-project)

cfleming20:04:58

That’s basically what I’m planning to do (have support based on .d.ts files), but I’ll write a parser for them in Java or Kotlin since the format is not as complex as full typescript.

Trevor02:04:18

Unsure if this is helpful (typescript -> Kotlin) . https://github.com/Kotlin/dukat Anything I can do to help? Would be so neat to have bindings for Phaser :)

cfleming09:04:53

I’m not sure about that, I’ll take a look, thanks!