cursive

Issues at: https://git.io/cursive-issues
2021-04-27T01:13:24.262500Z

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

phronmophobic 2021-04-27T02:44:10.263900Z

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

2021-04-27T08:16:41.266400Z

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.

➕ 2
Trevor 2021-04-27T15:09:49.271700Z

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)

cfleming 2021-04-29T09:46:53.282600Z

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

cfleming 2021-04-27T20:09:58.272300Z

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.