Fork me on GitHub
#core-async
<
2017-12-14
>
kkruit23:12:58

So i'm running into a weird issue where if i build an uberjar with lein my (mult (chan 16)) doesn't seem to be getting messages. If i build it via mvn with a pom created by lein pom or if i'm using the repl it seems to work fine. Has anyone seen anything like this?

kkruit23:12:14

lein -version Leiningen 2.7.0 on Java 1.8.0_74 Java HotSpot(TM) 64-Bit Server VM mvn -version Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T09:41:47-07:00) Java version: 1.8.0_74, vendor: Oracle Corporation

kkruit23:12:35

i've also tried building it via: lein -version Leiningen 2.7.0 on Java 1.8.0_121 OpenJDK 64-Bit Server VM

hiredman23:12:11

what makes you think it isn't getting messages?

kkruit23:12:56

I have a transducer that should pick it ups and set a watched variable. I'm not getting any changes on the watched var and I've added a log to the transducer which isn't outputting anything either. It is if i am in the repl however or using a mvn build

hiredman23:12:39

is something consuming from the channel?

kkruit23:12:30

yeah i'm adding my transducer like this so it should constantly be being consumed. (defn add-listening-transducer [mult-chan fx] (sink (add-transducer (tap mult-chan (chan 16)) fx)))

hiredman23:12:03

transducers don't consume

hiredman23:12:52

no idea what add-transducer or sink is

hiredman23:12:14

and that doesn't show a channel being created with a transducer

hiredman23:12:47

when a channel is created with a transducer, that transducer isn't consuming from the channel, it is operating on values that pass through the channel

kkruit23:12:42

sorry missed the rest of that

hiredman23:12:23

don't use <!! in go blocks

noisesmith23:12:10

yeah - that would readily explain core.async stalling to a complete halt

kkruit23:12:33

I can fix that. it hasn't been a problem still not sure why the two different builds act differently

hiredman23:12:17

I ignored the build stuff because in my experience most people's builds are tire fires, so more signal than noise

hiredman23:12:29

reverse that

hiredman23:12:34

more noise than signal

hiredman23:12:40

are you aot compiling?

hiredman23:12:33

that is a source of a lot of build issues, so if you stop doing that your build will get better instantly

kkruit23:12:36

I wasn't i turned it on to see if it would change anything