dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
frank 2016-05-05T00:47:17.000101Z

really looking forward to that!

danielcompton 2016-05-05T10:15:18.000102Z

@darwin: what are your plans now that you’ve handed TotalFinder and TotalSpaces over?

2016-05-05T10:24:18.000104Z

@danielcompton: I have a list of product ideas I would like to build eventually :simple_smile: But haven’t decided what to do next (yet). Wanted to take some “hammock” time, but started building CLJS tools instead 😉

2016-05-05T10:25:01.000105Z

… actually I have some plans with CLJS, my future project(s) will be likely built with it

danielcompton 2016-05-05T10:25:29.000106Z

nice!

danielcompton 2016-05-05T10:25:48.000108Z

Is it possible to evaluate locals at a breakpoint with Dirac?

2016-05-05T10:26:12.000109Z

yes, I consider this the main Dirac feature

2016-05-05T10:26:21.000110Z

you have to prefix them with js/

2016-05-05T10:26:47.000111Z

the REPL is not yet aware of available locals

2016-05-05T10:27:39.000112Z

this will be harder problem to solve - I can get list of js locals, but I would need to demunge their names and pass them into REPL environment somehow to tell CLSJ compiler to threat them as CLJS symbols

danielcompton 2016-05-05T10:27:43.000113Z

ah that’s what I was missing

danielcompton 2016-05-05T10:27:57.000114Z

I do remember hearing that now

2016-05-05T10:28:23.000115Z

also if you happen to see local names with subscripts, you have to hover over them with mouse to see the real js name

2016-05-05T10:28:39.000116Z

in the future there will be code-completion or something helping you with that

2016-05-05T10:29:35.000117Z

I will probably reuse DevTool’s own code completion subsystem on top of parinfer’s editing, anytime you enter js/ I would enable that

danielcompton 2016-05-05T10:35:49.000118Z

awesome

superstructor 2016-05-05T23:43:06.000123Z

@darwin: congrats, this is going to be awesome! I’d like to use it with https://github.com/adzerk-oss/boot-cljs-repl, I think I’ll need to fork boot-cljs-repl to replace com.cemerick/piggieback ns with dirac.nrepl/middleware ?

2016-05-05T23:43:56.000125Z

@superstructor: @jupl did the boot work just recently: https://github.com/jupl/boot-cljs-devtools

2016-05-05T23:44:37.000127Z

it should still work with dirac 0.3.0, I didn’t introduce breaking changes AFAIK

2016-05-05T23:45:15.000128Z

later you can fork and update the middleware to dirac.nrepl/middleware (for future)

superstructor 2016-05-05T23:45:40.000129Z

nice, thanks! so if I understand correctly I’d remove adzerk-oss/boot-cljs-repl and replace it with usage of jupl/boot-cljs-devtools ?

2016-05-05T23:46:11.000130Z

yes, but I’m not a boot user myself

2016-05-05T23:46:44.000131Z

@superstructor: The README should have instructions on installation and usage.

2016-05-05T23:47:04.000132Z

I can answer any questions if the README does not address them.

superstructor 2016-05-05T23:47:54.000133Z

yep have read the readme, looking at the README there is no equivalent of (start-repl) in a boot repl -c session ?

2016-05-05T23:48:53.000134Z

I’ll take a look at the update to dirac. So far you would only use the repl in the browser.

2016-05-05T23:49:30.000135Z

Looks like it got recently updated.

superstructor 2016-05-05T23:49:32.000136Z

And cursive with https://github.com/binaryage/dirac/blob/master/docs/integration.md

superstructor 2016-05-05T23:49:56.000138Z

Thats sufficient, I guess with proper Cursive/Chrome REPL I won’t need a boot repl anymore :simple_smile:

superstructor 2016-05-05T23:50:56.000139Z

Ok I’ll give implementing this a try now and let you all know how it goes. Amazing work @darwin @jupl, this is just what I was waiting for in my CLJS workflow!

2016-05-05T23:51:18.000140Z

but I think you should keep it there just for completeness, I tend to jump into plain lein repl just for testing sometimes

2016-05-05T23:52:00.000141Z

@superstructor: thanks for testing, expect rough edges, I haven’t used it myself much, just for tests