This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-20
Channels
@alexmiller is that combo possible?
@raymcdermott what happened when you tried?
but I’m stabbing and poking around, so asking here to get a steer on whether it’s meant to be viable
@raymcdermott My suspicion is that however the socket repl starts, doesn't cause a DynamicClassLoader to be run, I think you can insert one, but can't remember from the top of my head how that's done.
That would be a good guess but I haven’t tried it
@raymcdermott How are you running that clj file?
@raymcdermott when I hacked add-lib
into ClojureScript, the hack needed to deal with the same issue: https://github.com/mfikes/clojurescript/commit/d68c9397599366777d9b322ec586fdd398302f25
See that bit where it forced the issue so that the classloader is a clojure.lang.DynamicClassLoader
. This might not be the "correct" solution, but it worked.
If you end up needing to run that code for any reason to suss out what it is doing, https://gist.github.com/mfikes/a81ae3d006830dc34663f976aaf2291b
Setting the context classloader to a DCL should work
Although that is a per-thread solution
ok, so it’s the same whether I run it via CLJ or not … just thought I would check that out first
I'd cram it in early @raymcdermott (in a main
if you can like in that ClojureScript hack), so any threads thereafter inherit it.
"When a Thread is created, it’s context classloader is set from the parent Thread." http://puredanger.github.io/tech.puredanger.com/2007/06/15/classloaders/
wow, old school reference :)
what’s the correct way to force a SNAPSHOT download with clj / tools.deps?
There isn’t a way at the moment - I have a ticket for that. You can just delete the version from your .m2 though and use -Sforce
thanks Alex!