Closed dbushenko closed 12 years ago
I'm not able to reproduce this exactly (there is another error due to hiccup changes being incompatible with noir 1.2.1). For what it's worth, the noir template is not currently written for Noir 1.3.0, but for 1.2.1 (which is incompatible with Clojure > 1.2.1). One problem is that hiccup changed some namespaces (in this case page-helpers -> page). I'm not sure what is causing this, but it doesn't happen to me locally. I'll continue to investigate.
Well, I think, that this issue has nothing to do with hiccup 1.0. When I run 'lein new noir myapp', it creates an application for noir 1.3.0-beta3. This beta already contains the new hiccup 1.0 and compiles very well. But changing the noir version to beta4 or higher causes the compilation error. That really bothers me since I can't upgrade my projects to the latest noir framework...
Can you please put together a small sample project that causes this issue and put it on Github for me? I know that's a pain in the butt, but I can't reproduce this locally, so it'd be really helpful! :)
Oh, great! Just a moment...
Please, get it here: https://docs.google.com/open?id=0BzmL7xzGeOtOcEVCaDFWQnNYVFE Or would you like it as a github repository?
How about as a gist?
No, this is fine.
I can't reproduce with this either. lein run
works just fine. Can anybody else reproduce with his sample project?
Raynes, can you please tell me what's your environment?(especially -- exact leiningen version)
lein 2. I'm running from a checkout at commit 82d812eccb84b0248bf2873c62d36d8aaa32ddc3
. shrug
It runs fine for me too:
:: lein2 run
All namespaces already :aot compiled.
Starting server...
2012-06-27 01:29:52.158:INFO:oejs.Server:jetty-7.6.1.v20120215
Server started on port [8080].
You can view the site at http://localhost:8080
#<Server org.eclipse.jetty.server.Server@7f2ea1dd>
2012-06-27 01:29:52.203:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
:: lein2 --version
Leiningen 2.0.0-preview6 on Java 1.6.0_33 Java HotSpot(TM) 64-Bit Server VM```
I also follow master on lein, and it runs fine too.
@dbushenko What does your lein classpath
look like? Something should be referencing the commons-codec there somewhere:
:: lein classpath | tr : '\n' | grep commons-codec
/Users/jszakmeister/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
$ lein classpath | tr : '\n' | grep commons-codec /home/dim/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
I'm thoroughly stumped. Maybe delete that file and let maven fetch it again? :\
Yeeeey!!! That helped! I have deleted all the common-codec repo and fetched it again and it compiled! Thank you guys, you were very helpful!!
Great! Happy we got that sorted out. :)
Preconditions: Clojure 1.4.0, Leiningen 2.0.0-preview6, jdk1.6 Scenario:
Result: