dirac 2016-11-23

@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

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

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

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

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

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

maybe it is also a bug in devtools

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.

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

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

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

this functionality is not well tested

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

so it will be stable for some real work

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

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