Closed Reefersleep closed 8 years ago
It might be a conflicting dependency in a plugin in your ~/.lein/profiles.clj
, if you've got any plugins, try commenting them and see if the issue resolves.
Hello @yogthos :)
My .lein/profiles.clj used to look like this:
{:user {:plugins [[cider/cider-nrepl "0.10.0-SNAPSHOT"]
[refactor-nrepl "1.1.0"]]
:dependencies [[org.clojure/tools.nrepl "0.2.11"]]}
:repl {:dependencies [^:replace [org.clojure/tools.nrepl "0.2.11"]]}}
So I thought you might be on to something, and changed it to look like this:
{:user {:plugins []
:dependencies []}}
But I still get the same error after opening up a new cmd and doing lein figwheel
.
It seems like other people have had a similar issue, but with a lein new figwheel <name>
template:
https://github.com/bhauman/lein-figwheel/issues/285
Maybe the error lies in figwheel?
What bhauman is saying in the bottom of the thread about needing at least clojure 1.7 and doing a lein clean
does not help me, as this reagent template specifies clojure 1.8, and the result is the same after a lein clean
.
Have you tried downgrading the project to clj 1.7, to see if that helps. I'm not able to reproduce this locally, so not sure what's tripping it up exactly.
I have now - no difference.
I wonder what it could be. Aside from the Leiningen profile, do you know of anything configuration-wise that could influence my environment? Not that I have set up a whole lot of stuff, really - it's only the lein profile that I can think of.
The java on my PATH is 1.6-something, but lein -v reports Leiningen 2.5.3 on Java 1.8.0_65 Java HotSpot(TM) 64-Bit Server VM
. Besides, I tried changing the java on PATH to 1.8-something, didn't make a difference.
Might be worth referencing this on figwheel issues. Also, did you use any flags when creating the project, I've tried on a few machines with just lein new reagent myapp
and that works fine.
I used no flags at all, just lein new reagent appname
.
Do you think it's better to comment on a closed issue (the one on the figwheel repo that I'm referencing) or open a new one? I'm not very well versed in github issue etiquette :)
probably makes sense to comment on the closed one, since it does seem to be the same issue
Thanks :) I'll do that.
bhauman finally got it working with 0.5.0-6, so you should bump the figwheel version again :) According to him, it was to do with Leiningen pulling in Clojure 1.6 in the bootstrapping process, I think. I have no idea why this occurs, but he changed figwheel so that it works even if this happens, and gives you a warning upon startup if it does. I'll create an issue at the Leiningen repo regarding this behaviour. Great success!
Ah great, I'll push out a new template with the latest figwheel. :+1:
This seems to be back with a vengeance.
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're using the figwheel template in your example. This project is the reagent template.
Sorry about that. There have been a few references to this problem with figwheel, and I lighted on the wrong one.
First: thank you for your work!
After having generated a new project with this template using
lein new reagent <name>
, cd'ing into the project directory and doinglein figwheel
, I get the following stacktrace. I'm using leiningen 2.5.3 on a Windows computer.I've used an older version of the template before and been working succesfully with it for a while in creating an application, and I wanted to port my app code to the new template in the hope of easily deploying to Heroku :)