Hi Matt, Just saw your response. Working!
After we insert a new dependency in project.clj, we have to run lein pom again so that everything gets refreshed. I am totally fine with this. Is my assumption correct or is there a better way ? Regards, Vicente On 7 June 2011 04:06, Matt Hoyt <mrho...@yahoo.com> wrote: > Run: > lein pom > > Then in intellij goto file->open project and goto the directory of the > project and click on the pom.xml file. > > ------------------------------ > * From: * Vicente Bosch Campos <vbosch.cloj...@gmail.com>; > * To: * <clojure@googlegroups.com>; > * Subject: * How to setup IntelliJ with Leiningen? > * Sent: * Mon, Jun 6, 2011 9:47:27 PM > > > Hi, > > I am a newbie on clojure have decided to try it out after many years doing > Ruby mostly. > > I have been trying lately some basic tutorials and I am also reading the > joy of clojure. > > Anyways in the process I am trying to decide on a suitable project creation > workflow with Leiningen and IntelliJ with out much luck. > What I am trying to do is to understand what are the steps in order to have > the project correctly working on intelliJ so that REPL and the dependencies > are caught etc. > > I have currently the following SW: > > - Leiningen 1.5.2 > - IntelliJ 10.5 > - LA Clojure latest plugin > - Leiningen-IntelliJ plugin installed and configured to point to the > binary. > > I have currently tried the following. > > 1) Create project with Leiningen on the command console: lein new > monkeyproject > 2) If I select to open an existing project and point out to the > project.clj: > - I have to add manually the lib folder to the dependencies > otherwise running wont work. > - It does not add directly the clojure "aspect" or tooling > 3) When I select run on the project.clj it indicates me: > > /Users/vbosch/Programming/Clojure/hello/project.clj > Exception in thread "main" java.lang.Exception: Unable to resolve symbol: > defproject in this context > > I understand that is part of the Leiningen project and of course it is not > indicated anywhere in the project.clj so maybe Leiningen know how to treat > the file and that "intelligence" is missing in intellij > (or maybe just my intelligence... ). > > What is the correct way to setup a project with Leiningen and intelliJ? > > How should the execution workflow go ? ( I can launch REPL and load files > to it, no issues but should I do a lein run from outside the IDE to launch > the full project or what ? ) > > Sorry for my legthy email. ( I promise I have looked at guides like > http://blog.kartikshah.info/2010/12/how-to-intellij-idea-for.html ... but > no luck ) > > Regards, > Vicente > > -- > 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 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 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