dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
priornix 2017-07-09T14:52:56.494601Z

Hi, I'm adding Dirac 1.2.13 to an empty Luminus project with +reagent profile. Everything works fine, but (require) fails

priornix 2017-07-09T14:54:12.499398Z

I am able to reference the full namespace, but (require) fails with the error in the gist

2017-07-09T14:56:30.508397Z

hmm, this looks like foobar/core.cljs is not on your classpath visible by your nrepl server (with dirac middleware) for some reason

2017-07-09T14:57:26.512026Z

cannot help without seeing the project config, if this is just an empty project, maybe you can commit it into a temporary repo for me to look at

priornix 2017-07-09T15:01:47.530460Z

Definitely, I'm suspecting it's a missing directory somewhere in luminus' default profile, let me try one ast time, and if it doesn't work out, I'll upload it somewhere

priornix 2017-07-09T15:12:57.578423Z

Ah, yes, fixed, by default, luminus includes only these files at project root :source-paths ["src/clj" "src/cljc"] and the cljs directory only comes under cljsbuild profile

priornix 2017-07-09T15:14:05.583242Z

Would be useful if this were added to the FAQ or something for the next person who might encounter this. 😉

priornix 2017-07-09T15:15:05.587603Z

Anyway, I fixed it by changing :source-paths ["src/clj" "src/cljc" "src/cljs"]

priornix 2017-07-09T15:15:29.589380Z

Thanks for the good work, @darwin!

2017-07-09T15:16:02.591644Z

I’m glad you got it sorted out, but I’m not going to document this myself, feel free to make a PR with a new FAQ entry

priornix 2017-07-09T15:17:11.596512Z

Sure