tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
2020-05-29T15:17:18.162400Z

I'm trying to use andare, a replacement for core async with the same namespace hierarchy, in a project that also depends on things which depend on core.async (shadow-cljs specifically). However just adding core.async to the :exclusions for shadow-cljs seems to prevent it's namespaces which use core.async from working. Is there something I'm missing?

seancorfield 2020-05-29T15:21:02.163900Z

@jjttjj Maybe shadow-cljs is AOT'd? That would be my guess. (your problem doesn't sound like it would be specific to Clojure CLI / deps.edn / tools.deps.alpha?)

thheller 2020-05-29T15:24:45.164600Z

it is only AOT if you request the AOT variant

thheller 2020-05-29T15:24:57.165Z

I'm guessing that andare just isn't fully compatible? how does it fail?

2020-05-29T15:28:33.165400Z

File: jar:file:C:\Users\justin\.m2\repository\thheller\shadow-client\1.3.2\shadow-client-1.3.2.jar!/shadow/util.cljs
failed to require macro-ns "shadow.util", it was required by "shadow.util"
Error in phase :compile-syntax-check
RuntimeException: No such var: ioc/state-machine

thheller 2020-05-29T15:31:10.165900Z

guess that doesn't exist in andare? it is an internal cljs.core var

2020-05-29T15:31:56.166500Z

Yup, I see it doesn't now, thanks

2020-05-29T15:32:33.167Z

It looks like shadow.util in shadow-client uses some core.async internals

thheller 2020-05-29T15:35:34.167800Z

it does. I can probably remove it but I'm not sure trying to replace the entire core.async impl is sustainable

thheller 2020-05-29T15:35:53.168100Z

you are doing this for self-hosted CLJS right?

2020-05-29T15:37:04.168800Z

yes. I wouldn't necessarily request that either, just messing around right now šŸ™‚

2020-05-29T15:39:24.169100Z

although it looks possible that your go! macro that requires it might not be used much at all in shadow

ghadi 2020-05-29T15:43:51.169600Z

oh look, an incompatible thing with the same name

šŸ˜… 1
seancorfield 2020-05-29T15:45:23.170600Z

^ That was my first thought too. Any "replacement" really should use at least a different root namespace, precisely to avoid these sorts of conflicts šŸ˜

dpsutton 2020-05-29T15:47:14.171600Z

i think its so self-host can use it. it needs to be named the same

šŸ‘ 1
2020-05-29T15:47:16.171700Z

makes sense. I'll prob just fork andare and rename things

dpsutton 2020-05-29T16:09:19.172400Z

rename to what?

dpsutton 2020-05-29T16:09:49.172800Z

> Andare preserves the namespaces present in core.async. Thus, bootstrap-compatible ClojureScript code that makes use of core.async can operate in self-hosted environments if you make the Andare artifact available for loading in lieu of the official core.async artifact.

seancorfield 2020-05-29T16:11:00.173400Z

Also, none of this seems relevant to this channel's topic -- am I missing something there @jjttjj?

2020-05-29T16:13:34.173500Z

Nope, sorry about that. Thought it might be tools.deps specific at first (relating to exclusions) but realize now that's not the case

FlavaDave 2020-05-29T21:39:02.175900Z

Iā€™m trying to file a ticket at https://clojure.atlassian.net/projects/TDEPS/issues/?filter=allissues but it is saying Iā€™m not authorized to create issues. What is the best way for me to report an issue?

seancorfield 2020-05-29T21:39:34.176100Z

http://ask.clojure.org

seancorfield 2020-05-29T21:39:45.176400Z

Tag it with the tools.deps tag...

seancorfield 2020-05-29T21:40:16.176700Z

https://ask.clojure.org/index.php/questions/contrib-libs/tools-deps-alpha are existing issues/questions.

lvh 2020-05-29T21:40:56.177500Z

ah, I thought that was just for discussion, not for bug reports

seancorfield 2020-05-29T21:41:41.178100Z

@dgonsalves22 The About page explains why that exists https://ask.clojure.org/index.php/about and the official site's contributing page links to that forum https://clojure.org/community/contributing#_reporting_problems_and_requesting_enhancements /cc @lvh

šŸ‘ 2
šŸ™ 1