Fork me on GitHub
#hoplon
<
2015-11-21
>
ul13:11:51

@micha: did you see https://github.com/tolitius/mount ? Good rethink of solving repl reload task w/o “coconut lisping” (as you call it ;-)) which was introduced by Component

ul13:11:12

I like that we have more and more lispy solutions

flyboarder19:11:08

im having a small problem with my packaged castra app, i can run the app fine via boot serve but in the docker-image running with java -cp target/myproject-0.1.0.jar clojure.main -m myproject.api fails to find the classes iv wrapped with castra

flyboarder19:11:38

the project builds and runs only fails when making an rpc call

micha20:11:09

@flyboarder: are your classes in the jar?

micha20:11:22

jar tf target/myproject.jar

micha20:11:40

i mean your namespaces

flyboarder20:11:52

i believe so...

micha20:11:32

do jar tf target/myproject-0.1.0.jar |sort

micha20:11:49

and look for your api namespaces

micha20:11:17

you should be getting errors in the client like RPC endpoint not found right?

flyboarder20:11:50

nope cannot find classname on class path

micha20:11:19

which classes can't be found?

flyboarder20:11:53

the ones wrapped in castra so my api/auth.clj

micha20:11:44

what is the output of jar tf target/myproject.jar |sort?

flyboarder20:11:56

just booting into the docker image to run that

flyboarder20:11:11

im rebuilding

flyboarder20:11:55

@micha: ah ok! so the only namespace from my project seems to be the AOT entrypoint

micha20:11:01

:source-paths are not included in jars

micha20:11:16

if you change that to :resource-paths they will be

flyboarder20:11:06

this makes so much sense, so the clj files are not being included.

micha20:11:32

yeah the jar tf ... thing is the key debugging step

flyboarder20:11:35

now if I move those API’s to another jar (refactoring the ns) i would need to do the same as well

flyboarder20:11:55

ok great, thanks micha!!

micha21:11:04

no problem 🍻