Many thanks to Fogus for the kind words, and to the Runa gang for
their continuing encouragement!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
Is this the case? Does slime fit into your workflow, and if so, how?
Sam
>> clojure+u...@googlegroups.com<clojure%2Bunsu...@googlegroups.com>
> Why do you ask? Is there some particular functionality you are
> interested in?
Well, I'm just learning too. Currently I rely on lein swank to start up my JVM so that slime can connect to it. CDT seems to want you to manually start up the JVM with a particular set of flags. So, do you therefore use two JVM instances?
I guess I could do with sitting and pairing for 10 mins to see how things work ;-)
Is there any chance you could record a short screencast of this stuff in action?
Sam
Leiningen honours the JAVA_OPTS environment variable. If you do this -
$ export JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021"
$ lein swank
Then lein will start the JVM with the required flags. After that,
there is no reason why CDT shouldn't work.
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
As some of you know, I suffer from a seemingly interminable obsession
with improving the Clojure debugging story. It just seems so clear to
me that Clojure deserves a world class debugger, one befitting it's
power, beauty and elegance. Maybe one day, we'll get there. Till
then, here are my latest improvements to the CDT:
> As some of you know, I suffer from a seemingly interminable obsession
> with improving the Clojure debugging story. It just seems so clear to
> me that Clojure deserves a world class debugger, one befitting it's
> power, beauty and elegance. Maybe one day, we'll get there. Till
> then, here are my latest improvements to the CDT:
Tried it out just now. Works as advertised. Will dive deeper in a
while. Clojure deserves a great debugging infrastructure. I believe
CDT is a big step in the right direction.
Thanks a lot, George!
>>> Why do you ask? Is there some particular functionality you are
>>> interested in?
>>
>> Well, I'm just learning too. Currently I rely on lein swank to start
>> up my JVM so that slime can connect to it. CDT seems to want you to
>> manually start up the JVM with a particular set of flags. So, do you
>> therefore use two JVM instances?
>>
>> I guess I could do with sitting and pairing for 10 mins to see how
>> things work ;-)
>>
If you find a good solution to this please do share.
>>
>> Is there any chance you could record a short screencast of this stuff
>> in action?
>
> Leiningen honours the JAVA_OPTS environment variable. If you do this -
>
> $ export JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8021"
> $ lein swank
>
> Then lein will start the JVM with the required flags. After that,
> there is no reason why CDT shouldn't work.
>
Is there any way to pass java_opts arguments to lein on the command
line?
Currently I use the :jvm-opts keyword in project.clj, however it would
be nice to be able to specify different argument when using different
tools as mentioned in the thread above, or to be able to set different
values (e.g. maximum heap sizes) depending on resources of the current
computer.
Is there an accepted way to handle these situations? If not would this
make a good item for future lein development?
Thanks -- Eric
You can use unquote to embed arbitrary evaluations in your project.clj:
(defproject foo "1.0.0"
:dependencies [[clojure "1.2.0"]]
:jvm-opts [~(str "-Xmx" (if (= "64" (System/getProperty
"sun.arch.data.model")) "2g" "1g"))])
Untested, but you get the idea.
-Phil
Actually, you seem to have sent it directly to me :-)
A screencast would be wonderful!
Sam
Instead you appear to not have the clojure jar on your classpath.
I would recommend you explicitly launch java with
java -cp "H:\path\to\clojure.jar"
plus any additional arguments of course.
if this is still not working for you, please post the exact command
you are using to invoke java,
as well as a listing of all jars on your classpath, and I'll try to
help some more.
Good luck,
--Robert McIntyre
2010/10/8 limux <liumen...@gmail.com>: