Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
You might also want to control for Linux/BSD vs Windows.  From what I can 
tell, there are very few Windows users of lein-cljsbuild (or Leiningen 
even, for that matter), and thus the problems are distributed over 
not-so-many eyeballs.

On Sunday, July 15, 2012 3:52:46 PM UTC-7, George Oliver wrote:
>
>
>
> On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote:
>>
>> > Thanks; do you know of a project that uses the latest cljsbuild with 
>> lein 2 I could try to test?
>>
>> Not off the top of my head.  Unfortunately, github's search tool is junk, 
>> otherwise it might be possible to find something there...
>
>
>
> I had a go with the clojurescript branch of hiccup (
> https://github.com/r0man/hiccup/tree/clojurescript ). From its 
> project.clj it looks like it's using lein2 with cljsbuild 0.2.4. However it 
> seems I'm running into the same issue.  I've sent it to the lein mailing 
> list 
>

-- 
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

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 3:15:34 PM UTC-7, Evan Mezeske wrote:
>
> > Thanks; do you know of a project that uses the latest cljsbuild with 
> lein 2 I could try to test?
>
> Not off the top of my head.  Unfortunately, github's search tool is junk, 
> otherwise it might be possible to find something there...



I had a go with the clojurescript branch of hiccup (
https://github.com/r0man/hiccup/tree/clojurescript ). From its project.clj 
it looks like it's using lein2 with cljsbuild 0.2.4. However it seems I'm 
running into the same issue.  I've sent it to the lein mailing list 

-- 
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

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
> Thanks; do you know of a project that uses the latest cljsbuild with lein 
2 I could try to test? I was able to launch the ring server in the advanced 
project, but I'm still failing launching the repl.   

Not off the top of my head.  Unfortunately, github's search tool is junk, 
otherwise it might be possible to find something there...

-- 
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

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 1:17:04 PM UTC-7, Evan Mezeske wrote:
>
> Since Leiningen 2.x has not yet been released, lein-cljsbuild uses 
> Leiningen 1.x for both the example projects, and building the plugin 
> itself.  The problem you ran into is a difference between Leiningen 1.x and 
> 2.x.
>
> I created an issue to make sure that this fact is made more clear: 
> https://github.com/emezeske/lein-cljsbuild/issues/107 .
>


Thanks; do you know of a project that uses the latest cljsbuild with lein 2 
I could try to test? I was able to launch the ring server in the advanced 
project, but I'm still failing launching the repl.  

-- 
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

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread Evan Mezeske
Since Leiningen 2.x has not yet been released, lein-cljsbuild uses 
Leiningen 1.x for both the example projects, and building the plugin 
itself.  The problem you ran into is a difference between Leiningen 1.x and 
2.x.

I created an issue to make sure that this fact is made more clear: 
https://github.com/emezeske/lein-cljsbuild/issues/107 .

On Sunday, July 15, 2012 9:56:58 AM UTC-7, George Oliver wrote:
>
>
>
> On Sunday, July 15, 2012 12:00:57 AM UTC-7, George Oliver wrote:
>>
>> hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
>> simple example at  
>> https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple
>>  
>
>
>
> I think I found a fix for this; in the example project.clj there is the 
> option 
>
>  :source-path "src-clj"
>
> I changed this to 
>
>:source-paths ["src-clj"]
>
> (per 
> https://github.com/technomancy/leiningen/blob/master/sample.project.clj )
>
> And the example project instructions worked. 
>

-- 
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

Re: lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver


On Sunday, July 15, 2012 12:00:57 AM UTC-7, George Oliver wrote:
>
> hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
> simple example at  
> https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple
>  



I think I found a fix for this; in the example project.clj there is the 
option 

 :source-path "src-clj"

I changed this to 

   :source-paths ["src-clj"]

(per https://github.com/technomancy/leiningen/blob/master/sample.project.clj
 )

And the example project instructions worked. 

-- 
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

lein-cljsbuild simple example on Windows XP with lein2, "Could not locate example/routes__init.class or example/routes.clj on classpath"

2012-07-15 Thread George Oliver
hi, I'm trying to get lein-cljsbuild running on Windows XP. I copied the 
simple example at  
https://github.com/emezeske/lein-cljsbuild/tree/master/example-projects/simple 
and 
then did

$ lein cljsbuild once
$ lein ring server-headless 3000

Which gives the error, 

C:\george\work\simple>lein ring server-headless 3000
Exception in thread "main" java.io.FileNotFoundException: Could not locate 
example/routes__init.class or example/routes.clj on classpath:
at clojure.lang.RT.load(RT.java:432)
at clojure.lang.RT.load(RT.java:400)
at clojure.core$load$fn__4890.invoke(core.clj:5415)
at clojure.core$load.doInvoke(core.clj:5414)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.core$load_one.invoke(core.clj:5227)
at clojure.core$load_lib.doInvoke(core.clj:5264)
at clojure.lang.RestFn.applyTo(RestFn.java:142)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$load_libs.doInvoke(core.clj:5298)
at clojure.lang.RestFn.applyTo(RestFn.java:137)
at clojure.core$apply.invoke(core.clj:603)
at clojure.core$require.doInvoke(core.clj:5381)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at user$eval1.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6511)
at clojure.lang.Compiler.eval(Compiler.java:6500)
at clojure.lang.Compiler.eval(Compiler.java:6477)
at clojure.core$eval.invoke(core.clj:2797)
at clojure.main$eval_opt.invoke(main.clj:297)
at clojure.main$initialize.invoke(main.clj:316)
at clojure.main$null_opt.invoke(main.clj:349)
at clojure.main$main.doInvoke(main.clj:427)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)


Does anyone know what the problem might be?

Another weird thing about this is if I try a lein repl from this project, I 
get:

C:\george\work\simple>lein repl
nREPL server started on port 1740
Welcome to REPL-y!
Clojure 1.4.0
Exit: Control+D or (exit) or (quit)
Commands: (user/help)
Docs: (doc function-name-here)
  (find-doc "part-of-name-here")
  Source: (source function-name-here)
nil  (user/sourcery function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
Examples from clojuredocs.org: [clojuredocs or cdoc]
  (user/clojuredocs name-here)
  (user/clojuredocs "ns-here" "name-here")


The cursor then freezes on the last line. 

However doing a lein repl from an empty project made with 'lein new' (and 
making sure Clojure 1.4 is specified in dependencies) works normally. 


thanks for any help, George


-- 
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