Fork me on GitHub
#cursive
<
2022-07-29
>
Ernesto Garcia11:07:43

Hi all. Right now I'm seeing Re-frame reg-event-*s listed inside my "Structure" Tool Window, but not reg-sub s. What could be the reason for that?

cfleming06:08:33

I’m not sure, it looks like that should work, looking at the code. I’ll try to reproduce that.

gratitude-thank-you 1
cfleming03:08:49

I just tried to reproduce this, and I’m not seeing reg-event-*s in the structure either.

cfleming04:08:57

Ok, I think I have figured out the problem here. Could it be that your events are registered using namespaced keywords, and the subs are registered using bare non-namespaced ones?

Ernesto Garcia08:08:20

Thanks for looking into it. I have namespace-qualified keywords in both cases.

Ernesto Garcia08:08:12

Navigation to the subscriptions does work.

cfleming08:08:32

In that case, I’m not sure what’s going on, I can’t reproduce that. I’ll fiddle around a little more. Is this a public project I could look at?

Ernesto Garcia08:08:01

It is not. But I could try to reproduce it in a toy project.

cfleming08:08:12

That would be great, if you could.

Ernesto Garcia08:08:10

So, on your side, you see both events and subscriptions in the Structure window?

cfleming08:08:06

Yes, I do, e.g. this from the conduit example app. Note that the second sub isn’t shown, but that’s because it’s using a non-namespaced keyword. There was a really long discussion at one point about why this was so, but I can’t find it now.