Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log! doesn't compile inside clojurescript go block #21

Open
aiba opened this issue Sep 19, 2024 · 2 comments
Open

log! doesn't compile inside clojurescript go block #21

aiba opened this issue Sep 19, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@aiba
Copy link

aiba commented Sep 19, 2024

Compiling this code in ClojureScript fails with "ExceptionInfo Can't call nil":

(cljs.core.async/go (taoensso.telemere/log! "hello"))

I'm guessing this has something to do with the way the log! macro expands and then the go macro analyzes the expanded code.

On JVM clojure, it works fine. Is there a way to get it to also work in ClojureScript?

@ptaoussanis ptaoussanis added the bug Something isn't working label Sep 19, 2024
@ptaoussanis ptaoussanis self-assigned this Sep 19, 2024
@ptaoussanis
Copy link
Member

@aiba Hi Aaron, thanks for the report! I'll need to investigate what go is doing that might be causing trouble.

What's the urgency on this? Could a fix wait till next week sometime?

@aiba
Copy link
Author

aiba commented Sep 19, 2024

Not urgent. For now, I can just wrap log! in a regular function, since go macros don't analyze across function boundaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants