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

Uberjar failure with direct-linking=true #449

Open
tafenton opened this issue Jul 24, 2024 · 1 comment
Open

Uberjar failure with direct-linking=true #449

tafenton opened this issue Jul 24, 2024 · 1 comment

Comments

@tafenton
Copy link

Hi,

I get the following message while trying to compile a sente project using the aleph community adapter:

Execution error (ExceptionInfo) at taoensso.truss.impl/default-error-fn (impl.cljc:81).
Invariant failed at taoensso.sente|496: ((fn* [p1__11175#] (satisfies? interfaces/IServerChanAdapter p1__11175#)) #object[taoensso.sente.server_adapters.community.aleph.AlephAsyncNetworkChannelAdapter 0x7634fcb8 "taoensso.sente.server_adapters.community.aleph.AlephAsyncNetworkChannelAdapter@7634fcb8"])

This behaviour occurs consistently with:

  • aleph from 0.8.1 at least as far back as 0.6.0
  • sente from 1.19.2 at least as far back as 1.17.0
  • both Azul Zulu 22.0.2 and Eclipse Temurin 11.0.24
  • both the aleph and http-kit adapters (probably others)

However, the behaviour stops if I disable "-Dclojure.compiler.direct-linking=true" (set by default in the current lein new template) - and also if I move it into a non-aot namespace.

I've also cloned sente and played with direct-linking in the raw project; it appears the relevant have? statement is checked twice, passing the first time and failing the second. I've uploaded a (very) minimal reproduction here.

Unfortunately I don't know enough about direct linking to go any further, but hopefully this is a helpful pointer!

@ptaoussanis
Copy link
Member

@tafenton Thanks for the info and reproducible Tom!

I'm not too familiar with direct linking myself, so can't say off-hand - but happy to look into this next time I'm on batched Sente work. Appreciate you bringing this to my attention.

Cheers! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants