om next quickstart

359 views
Skip to first unread message

William la Forge

unread,
Nov 28, 2015, 10:37:32 PM11/28/15
to Clojure
Working my way through the quickstart tutorial for om next: https://github.com/omcljs/om/wiki/Quick-Start-%28om.next%29

Got to the point (not very far) where I enter this command: lein run -m clojure.main script/figwheel.clj

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate figwheel_sidecar/repl__init.class or figwheel_sidecar/repl.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name., compiling:(C:\Users\Bill\Documents\GitHub\om-tutorial\script\figwheel.clj:1:1)

Any ideas? Here's my figwheel.clj file:

(require '[figwheel-sidecar.repl :as r]
         '[figwheel-sidecar.repl-api :as ra])

(ra/start-figwheel!
  {:figwheel-options {}
   :build-ids ["dev"]
   :all-builds
   [{:id "dev"
     :figwheel true
     :source-paths ["src"]
     :compiler {:main 'om-tutorial.core
                :asset-path "js"
                :output-to "resources/public/js/main.js"
                :output-dir "resources/public/js"
                :verbose true}}]})

(ra/cljs-repl)

And my project.clj file:

(defproject om-tutorial "0.1.0-SNAPSHOT"
  :description "My first Om program!"
  :dependencies [[org.clojure/clojure "1.7.0"]
                 [org.clojure/clojurescript "1.7.170"]
                 [org.omcljs/om "1.0.0-alpha22"]
                 [figwheel-sidecar "0.5.0-SNAPSHOT" :scope "test"]])

Also tried figwheel-sidecar 0.5.0 and 0.5.0-2. Same results.

Bill

William la Forge

unread,
Nov 28, 2015, 10:41:56 PM11/28/15
to Clojure
Perhaps this is the problem? openjdk version "1.8.0_40"

William la Forge

unread,
Nov 28, 2015, 10:50:40 PM11/28/15
to Clojure
Switched to java version "1.8.0_31" to no avail.

Linus Ericsson

unread,
Nov 29, 2015, 7:31:41 PM11/29/15
to Clojure
The problem here seems to be it can't find the dependency. Can you do

lein clean
lein repl

and then try

(require '[figwheel-sidecar.repl :as r])

(require '[figwheel-sidecar.repl-api :as ra])

to begin with? Because it seems like it cannot get the dependencies right for some reason.

What does lein deps say?

Sometimes the .m2/repository gets corrupted and the simplest cure is to simply delete everything in the .m2/repository and refetch the poms and jars.

Figwheel-sidecar uses hawk which uses java.nio.file.WatchService which may or may not work well on Windows in OpenJDK.

It should work on Windows, but I have heard various people reporting problems on various combinations of JREs and Windows versions. Do you have an Oracle JVM to tests with?

/Linus

William la Forge

unread,
Nov 29, 2015, 8:00:42 PM11/29/15
to Clojure
face palm

I tried to do a lein clean and it could not find project.cli. I had named the file projects.cli.

Clojure error messages will take some getting used to.  

Thanks Linus!
Reply all
Reply to author
Forward
0 new messages