Re: Classpath set by lein swank or clojure-jack-in

2012-06-16 Thread Dave Kincaid
Thank you, Carlo! That was it! I'm using Leingingen 2. It's working great now. Dave On Saturday, June 16, 2012 8:34:08 PM UTC-5, Carlo wrote: > > On Sat, Jun 16, 2012 at 10:10 AM, Dave Kincaid > wrote: > > Sure can. Here is the project.clj: > > > > (defproject swank-test "0.1" > > :sourc

Re: Classpath set by lein swank or clojure-jack-in

2012-06-16 Thread Carlo Zancanaro
On Sat, Jun 16, 2012 at 10:10 AM, Dave Kincaid wrote: > Sure can. Here is the project.clj: > > (defproject swank-test "0.1" >   :source-path "src/main/clj" Are you using lein 1.x or lein 2.x? In lein 2.x you need to use `:source-paths ["src/main/clj"]` here. >   :test-path "test/clj" >   :java-s

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Dave Kincaid
efault directory structures. Might workaround > it for you in the short term. > > -Original Message- > From: Sean Corfield > Sender: clojure@googlegroups.com > Date: Fri, 15 Jun 2012 18:44:46 > To: > Reply-To: clojure@googlegroups.com > Subject: Re: Cla

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Peter Buckley
egroups.com Date: Fri, 15 Jun 2012 18:44:46 To: Reply-To: clojure@googlegroups.com Subject: Re: Classpath set by lein swank or clojure-jack-in Have you tried visiting the project.clj file in Emacs and then doing M-x clojure-jack-in ? That should start lein swank in the project directory and

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Sean Corfield
Have you tried visiting the project.clj file in Emacs and then doing M-x clojure-jack-in ? That should start lein swank in the project directory and pull in all the dependencies as expected. (you should start lein swank in the project root directory - containing project.clj - not in a subdirectory

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Dave Kincaid
Sure can. Here is the project.clj: (defproject swank-test "0.1" :source-path "src/main/clj" :test-path "test/clj" :java-source-path "src/main/java" :javac-options {:debug "true" :fork "true"} :resources-path "src/main/resources" :dependencies [[org.clojure/clojure "1.4.0"]

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Moritz Ulrich
That's strange. You usually just run lein swank in the folder with you project.clj. Nothing to do wrong there. Can you show the project.clj and the directory structure of a non-working project? -- Sent from my mobile Am 16.06.2012 01:07 schrieb "Dave Kincaid" : > I'm with you, Peter. The proble

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Dave Kincaid
I'm with you, Peter. The problem is I can't get lein swank and slime-connect working in a consistent way. It starts up fine but can't find any dependencies that I try to (use ...) or even any of the code in my .clj files that I try to access. I just can't understand what it's using as a classpa

Re: Classpath set by lein swank or clojure-jack-in

2012-06-15 Thread Peter Buckley
Once I got lein swank and slime-connect working in emacs, I essentially stopped using the repl directly. The real magic and beauty of writing clojure in emacs is that I can write a fn, then C-x C-e to evaluate it right there in the file. I can evaluate inner forms, test every line of the file to