dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
2016-11-23T11:25:51.003268Z

@denisj I believe that this is caused by generated javascript code in this shape: if (condition) { var pod_id = 1; } else { var pod_id = 2; }, even if you stop at a breakpoint in one such if branch, it displays all pod_id vars in the local list

2016-11-23T11:26:27.003269Z

genereated js by cljs typically gets a lot of branches like that

2016-11-23T11:27:27.003270Z

to avoid it, we would have to generate var pod_id; if (condition) { pod_id = 1 } else { pod_id = 2 }

denisj 2016-11-23T11:30:15.003271Z

I'm not quite following (yet sorry), which line of my cljs is causing the if (condition) { ....}

2016-11-23T11:30:56.003272Z

I donโ€™t know, I was describing general situation where I saw this duplication

2016-11-23T11:31:13.003273Z

look at your generated js code and try to identify similar patterns

2016-11-23T11:31:53.003274Z

maybe it is also a bug in devtools

denisj 2016-11-23T11:35:10.003275Z

ok will do. As mentioned we see this a lot so it's a bit of a pain when debugging, above is just an example. Notice in the Closure bindings/vars list which corresponds to the first let in my cljs, all is correct and as expected, as opposed to the inner fn & let.

2016-11-23T11:36:28.003277Z

I can definitely confirm this problem, just didnโ€™t look into it (yet)

2016-11-23T11:38:04.003278Z

please note that locals list displays names translated by source maps, so this could be another source of problems

denisj 2016-11-23T11:38:04.003279Z

always many things to do ๐Ÿ™‚ all good, thanks. Great work btw it's coming along and seems to be stabilising lately too.

2016-11-23T11:38:19.003280Z

this functionality is not well tested

2016-11-23T11:38:57.003281Z

yeah, thanks, hopefully Dirac will be feature complete by January, and then I will just maintain it ๐Ÿ™‚

2016-11-23T11:39:10.003282Z

so it will be stable for some real work

2016-11-23T11:40:02.003283Z

last thing I wanted to implement is proper addition of macros in code completions, but this is quite hard task to do, I would have to โ€œexportโ€ them during code generation

denisj 2016-11-23T11:40:23.003284Z

famous last words ๐Ÿ™‚ will leave you plenty of free time for other pet projects

2016-11-23T11:40:30.003285Z

hehe ๐Ÿ™‚