Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting started instructions do not work #61

Closed
jsyrjala opened this issue Aug 16, 2012 · 6 comments
Closed

Getting started instructions do not work #61

jsyrjala opened this issue Aug 16, 2012 · 6 comments

Comments

@jsyrjala
Copy link

Instructions in wiki on page https://github.com/weavejester/compojure/wiki/Getting-Started do not work. They create just a bare bones clojure project that contains project.clj that has only clojure as dependency and src/clojure/core.clj contains only ns definition. Also the instructions put code to compojure.core namespace that shadows stuff from real compojure.jar.

lein --version
Leiningen 1.7.1 on Java 1.7.0_04 Java HotSpot(TM) 64-Bit Server VM
@weavejester
Copy link
Owner

Did you run the following commands:

lein plugin install lein-newnew 0.2.6
lein plugin install compojure/lein-template 0.2.0

@jsyrjala
Copy link
Author

Yes, the whole output is like this when I run all to commands in instructions.

$ lein plugin install lein-newnew 0.2.6
[INFO] Unable to find resource 'lein-newnew:lein-newnew:jar:0.2.6' in repository central (http://repo1.maven.org/maven2)
Copying 3 files to /tmp/lein-3bdd4294-af4c-412b-be98-89c2226a0f4b/lib
Including lein-newnew-0.2.6.jar
Including stencil-0.2.0.jar
Including slingshot-0.8.0.jar
Including bultitude-0.1.5.jar
Created lein-newnew-0.2.6.jar
$ lein plugin install compojure/lein-template 0.2.0
[INFO] Unable to find resource 'compojure:lein-template:jar:0.2.0' in repository central (http://repo1.maven.org/maven2)
Copying 3 files to /tmp/lein-4fa754d3-1a8c-4fc5-b73f-6578069781f4/lib
Including lein-template-0.2.0.jar
Including trammel-0.7.0.jar
Including thneed-1.0.0-20120330.013054-1.jar
Including leinjacker-0.2.0.jar
Created compojure-lein-template-0.2.0.jar
jsyrjala@viivoitin:~/tmp2$ lein new compojure hello-world
Created new project in: /home/jsyrjala/tmp2/hello-world
Look over project.clj and start coding in compojure/core.clj
$

Following files are generated

$ find hello-world
hello-world
hello-world/.gitignore
hello-world/test
hello-world/test/compojure
hello-world/test/compojure/test
hello-world/test/compojure/test/core.clj
hello-world/README
hello-world/project.clj
hello-world/src
hello-world/src/compojure
hello-world/src/compojure/core.clj
$ tail hello-world/src/compojure/core.clj
(ns compojure.core)
$ 

@weavejester
Copy link
Owner

Hm, I can't reproduce your results. When I run the same commands with Leiningen 1.7.1, it works perfectly.

You could try clearing out your plugin folder and re-installing:

rm ~/.lein/plugins/*.jar
lein plugin install lein-newnew 0.2.6            
lein plugin install compojure/lein-template 0.2.0

Let me know if that works.

@jsyrjala jsyrjala reopened this Aug 17, 2012
@jsyrjala
Copy link
Author

oops, didn't mean to close this.

removing the plugins didn't help

@weavejester
Copy link
Owner

Try opening an issue with lein-newnew. It looks like the lein-newnew plugin isn't working correctly for you.

@jsyrjala
Copy link
Author

I tried with lein2, and it seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants