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

On Sunday, November 29, 2015 at 4:37:32 AM UTC+1, William la Forge wrote:
>
> 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
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to