Clojurians
#dirac
<
2016-01-20
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

grav22:01:01

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

grav22:01:49

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)
…

grav22:01:00

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

darwin22:01:13

looks like the envrion dependency is not avail

darwin22:01:28

maybe that scope “provided” is wrong?

grav22:01:31

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

grav22:01:48

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

darwin22:01:00

does cljs-devtools-sample work for you?

grav22:01:52

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

grav22:01:45

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 :wink:

darwin22:01:06

aha :simple_smile:

grav22:01:07

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

darwin22:01:09

good point

darwin22:01:40

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

darwin22:01:07

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

darwin22:01:26

it is difficult for me to give you some better diagnostics

darwin22:01:30

will be back in 20mins

grav22:01:17

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

grav22:01:03

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

grav22:01:46

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

grav22:01:14

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

grav22:01:34

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