dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
grav 2016-01-20T22:11:01.000120Z

hi there - I have trouble compiling my project with figwheel, when I include devtools.core

grav 2016-01-20T22:11:49.000121Z

I can compile with lein cljsbuild once dev, but running lein figwheel gives me the following error:

ANALYSIS ERROR: java.io.FileNotFoundException: Could not locate environ/core__init.class or environ/core.clj on classpath., compiling:(devtools/dirac.clj:1:1) on file null, line null, column null
clojure.lang.ExceptionInfo: Error in component :figwheel-system in system com.stuartsierra.component.SystemMap calling #'com.stuartsierra.component/start {:reason :com.stuartsierra.component/component-function-threw-exception, :function #'com.stuartsierra.component/start, :system-key :figwheel-system, :component #figwheel_sidecar.system.FigwheelSystem{:system #object[clojure.lang.Atom 0x6f45a719 {:status :ready, :val #<SystemMap>}]}, :system #<SystemMap>}
	at clojure.core$ex_info.invoke(core.clj:4593)
…

grav 2016-01-20T22:13:00.000122Z

If I remove everything related to requirering and starting devtools from my .core namespace, it works again

2016-01-20T22:20:01.000123Z

hmm

2016-01-20T22:20:13.000124Z

looks like the envrion dependency is not avail

2016-01-20T22:20:57.000125Z

it is declared here in cljs-devtools project: https://github.com/binaryage/cljs-devtools/blob/master/project.clj#L13

2016-01-20T22:21:28.000127Z

maybe that scope “provided” is wrong?

grav 2016-01-20T22:21:31.000128Z

actually I tried including it explicitly, and that is currently what makes my lein cljsbuild once work

grav 2016-01-20T22:21:48.000129Z

if I remove it, it doesn’t compile. however figwheel doesn’t compile no matter

2016-01-20T22:23:00.000130Z

does cljs-devtools-sample work for you?

grav 2016-01-20T22:23:52.000131Z

i haven’t tried it yet, i’ll check it out

grav 2016-01-20T22:24:45.000132Z

oh - btw, finding PageUp/PageDown was a mystery on my macbook, might want to make some buttons or write that it’s fn+arrows on macbooks 😉

2016-01-20T22:25:06.000133Z

aha :simple_smile:

grav 2016-01-20T22:25:07.000134Z

(if you’re the maintainer, that is :simple_smile:

2016-01-20T22:25:09.000135Z

good point

2016-01-20T22:25:40.000136Z

I have just cloned cleanly cljs-devtools-sample and did lein demo and it works for me

2016-01-20T22:26:07.000137Z

try to spot any differences between that project and your project.clj

2016-01-20T22:26:26.000138Z

it is difficult for me to give you some better diagnostics

2016-01-20T22:26:30.000139Z

will be back in 20mins

grav 2016-01-20T22:45:17.000140Z

just seems the sample is depending explicitly on environ. if I depend on it explicitly, it works for me, both with cljsbuild and figwheel.

grav 2016-01-20T22:46:03.000141Z

I thought there was a diff between figwheel and cljsbuild compilation at first, but I wasn’t doing lein clean inbetween trials

grav 2016-01-20T22:46:46.000142Z

so I guess cljs-devtools should just refer to environ itself

grav 2016-01-20T22:48:14.000144Z

don’t know if the :provided option is causing the problem

grav 2016-01-20T22:48:34.000145Z

(i’m a beginner when it comes to dependencies)