leonoel / cloroutine

Coroutine support for clojure
Eclipse Public License 2.0
228 stars 10 forks source link

[cljs] compilation error using specter's FIRST fn #8

Closed Wonko7 closed 4 years ago

Wonko7 commented 4 years ago

Hi!

Using the following line in an async block: (select-one [:hello FIRST :thing] user-info) results in the following compilation error:

Encountered error when macroexpanding cloroutine.core/cr.
IllegalArgumentException: No matching clause: :the-var

The same code compiles & works in a go block. Putting the select-one in a function outside the async block & calling it in the async works.

See https://github.com/Wonko7/warning-specter-async Thanks!

Wonko7 commented 4 years ago

I've added a commit to master: https://github.com/Wonko7/warning-specter-async If the offending code is declared in a function in an async block we get the same error.

(async (let [x #(setval [FIRST] ...

Wonko7 commented 4 years ago

Or should I open a new issue? I'm not sure you'll see this.