bhauman / lein-figwheel

Figwheel builds your ClojureScript code and hot loads it into the browser as you are coding!
Eclipse Public License 1.0
2.88k stars 210 forks source link

Could not locate cljs/analyzer__init.class or cljs/analyzer.clj #670

Closed p-b-west closed 6 years ago

p-b-west commented 6 years ago

This issue seems to have cropped up at times in the past. Maybe I'm doing something wrong.

Leiningen 2.8.1 on Java 1.8.0_161 Java HotSpot(TM) 64-Bit Server VM

Simplest example: $ lein new figwheel whatever $ cd whatever $ lein figwheel

Lots of stacktrace, including Caused by: java.io.FileNotFoundException: Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath:

bhauman commented 6 years ago

So this has to be an environment thing. This means that your clojurescript dep is being met with something that doesn't have cljs.analyzer in it. This means your .m2/repository, .profiles etc is mucking things up.

On Mar 16, 2018, at 3:09 AM, Peter West notifications@github.com wrote:

This issue seems to have cropped up at times in the past. Maybe I'm doing something wrong.

Leiningen 2.8.1 on Java 1.8.0_161 Java HotSpot(TM) 64-Bit Server VM

Simplest example: $ lein new figwheel whatever $ cd whatever $ lein figwheel

Lots of stacktrace, including Caused by: java.io.FileNotFoundException: Could not locate cljs/analyzer__init.class or cljs/analyzer.clj on classpath:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

p-b-west commented 6 years ago

Have been tinkering with shadow-cljs

$ rm -rf ~/node_modules $ rm -rf ~/.yarn* $ rm -rf ~/.npm

I had clojure 1.9 installed with brew.

$ brew uninstall --force clojure $ cd ~/.m2/repository $ rm -rf clj clojure lein* $ cd Projects $ lein new figwheel ozehealth $ cd ozehealth $ lein figwheel

Same result. Any other suggestions?

bhauman commented 6 years ago

did you check your .lein/profiles?

bhauman commented 6 years ago

Also you would really need to get rid of or move your whole m2 repository to check this.

p-b-west commented 6 years ago

Nope, I forgot about them. Had a clojure 1.6.0 from 2015, which shows how long it's been since I used lein. Thank you for your patience.