core-async

tianshu 2020-06-25T18:49:53.498300Z

yes, alt! doesn't return a channel, but this error looks like you can't pass keyword as argument to alt!.

tianshu 2020-06-25T18:53:05.002500Z

ran into a weird issue, I just update core.async to the latest version, when I do (require 'clojure.core.async) an error tell me ClassNotFound for clojure.core.async.Mutex. But after some searching, I think there's no such Class or symbol in core.async code base.

2020-06-25T18:53:11.002700Z

the error is from (<! (alt! ...))

2020-06-25T18:57:13.003100Z

that file was last edited in 2013

tianshu 2020-06-25T18:58:48.003300Z

but the latest version doesn't have java code anymore

tianshu 2020-06-25T19:00:11.003500Z

maybe I shoud clear the target directory

➕ 1
2020-06-25T19:06:15.003700Z

that's true - the java code is still in github, but the released artifacts for recent versions don't have the classfiles

2020-06-25T19:09:07.003900Z

but also, the references to Mutex are removed from the clojure.core.async.impl.mutex ns

2020-06-25T19:09:16.004100Z

what file is it trying to load when you see that error?

2020-06-25T19:09:36.004300Z

also, I wonder why the github code doesn't reflect recent releases

2020-06-25T19:49:32.004600Z

Why don't you think it reflects recent releases?

2020-06-25T19:51:15.004800Z

in github, theres a Mutex.java, in the jar from maven, there's no corresponding class file, and the mutex definition doesn't use that class any more

2020-06-25T19:53:16.005100Z

And the pom isn't setup to compile Java code

2020-06-25T19:53:26.005300Z

So there is nothing to package

2020-06-25T19:55:05.005500Z

oh, I missed this, you're right. Mutex.java is still in the repo, but is now a no-op, and the mutex impl doesn't try to use it any more

2020-06-25T19:55:55.005700Z

It doesn't appear to be in the repo any more at least on master either

2020-06-25T19:57:00.005900Z

I must have ended up looking at the wrong version due to bad github js or user error

2020-06-25T21:04:01.006100Z

@doglooksgood i had a similar problem some time ago and i had to do a dependency tree in order to figure out what was bringing in a very old version of core.async

2020-06-25T21:04:52.006300Z

i don't recall exactly what it was anymore but i vaguely remember something with an old clojurescript version