Re: ANN: textmate-clojure, SLIME for TextMate (sorta)
Awesome ! On Sep 24, 4:39 am, David Nolen dnolen.li...@gmail.com wrote: First off Acknowledgements: Aria Haghighi, did much of the heavy lifting on this project! Stephen Roller, created the first version of the bundle in 2008 Mark McGranaghan, expanded Stephen Roller's version Justin Balthrop Lance Bradley, core developers of Cakehttp://github.com/ninjudd/cake- if they weren't constantly adding features just for this project, this would have never gotten off the ground Allan Odgaard, for being the creator of TextMate and listening to my Bundle dev noob questions A screencast:http://blip.tv/file/4160578 The project repo:http://github.com/swannodette/textmate-clojure The Google Group:http://groups.google.com/group/textmate-clojure The project is written almost entirely in Clojure so you have no excuse to not contribute if you like TextMate :D Lots of bugs to fix. Two things I'd love to see: 1. Integration with nREPL via WebSockets to get a REPL right in TextMate 2. Integration with Mycroft to get an inspector right in TextMate David -- 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: ANN: textmate-clojure, SLIME for TextMate (sorta)
On Sep 23, 2010, at 10:08 PM, David Nolen wrote: On Fri, Sep 24, 2010 at 1:06 AM, Greg g...@kinostudios.com wrote: Thanks! What about single files though? (i.e. no project.clj) cake has a global project.clj - ~/.cake/project.clj. Change this and single files will get access to those dependencies. Great, thanks! - Greg David On Sep 23, 2010, at 9:22 PM, David Nolen wrote: On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)? Thanks, Greg Same way you do with lein. Just set that in your project.clj and run 'cake deps', or even 'lein deps' if you like. David -- 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 -- 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: ANN: textmate-clojure, SLIME for TextMate (sorta)
Awesome work on this! I was wondering: Have you considered more integration with the terminal (via `screen`), rather than evaluating and displaying in a window? I had a setup like this with vim, and it worked really well. For example, when you evaluate a function definition, it pipes it to the terminal, and then you can play around with the function in the terminal too. It feels more intuitive. This post should clarify the method: http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/ Sam On Sep 24, 3:39 am, David Nolen dnolen.li...@gmail.com wrote: First off Acknowledgements: Aria Haghighi, did much of the heavy lifting on this project! Stephen Roller, created the first version of the bundle in 2008 Mark McGranaghan, expanded Stephen Roller's version Justin Balthrop Lance Bradley, core developers of Cakehttp://github.com/ninjudd/cake- if they weren't constantly adding features just for this project, this would have never gotten off the ground Allan Odgaard, for being the creator of TextMate and listening to my Bundle dev noob questions A screencast:http://blip.tv/file/4160578 The project repo:http://github.com/swannodette/textmate-clojure The Google Group:http://groups.google.com/group/textmate-clojure The project is written almost entirely in Clojure so you have no excuse to not contribute if you like TextMate :D Lots of bugs to fix. Two things I'd love to see: 1. Integration with nREPL via WebSockets to get a REPL right in TextMate 2. Integration with Mycroft to get an inspector right in TextMate David -- 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: ANN: textmate-clojure, SLIME for TextMate (sorta)
On Fri, Sep 24, 2010 at 10:27 AM, samnardoni samnard...@googlemail.comwrote: Awesome work on this! I was wondering: Have you considered more integration with the terminal (via `screen`), rather than evaluating and displaying in a window? I had a setup like this with vim, and it worked really well. For example, when you evaluate a function definition, it pipes it to the terminal, and then you can play around with the function in the terminal too. It feels more intuitive. This post should clarify the method: http://technotales.wordpress.com/2007/10/03/like-slime-for-vim/ Sam I've never investigated this closely- seems like a great workaround until we can get a real integrated REPL. Thanks for sharing this. David -- 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
ANN: textmate-clojure, SLIME for TextMate (sorta)
First off Acknowledgements: Aria Haghighi, did much of the heavy lifting on this project! Stephen Roller, created the first version of the bundle in 2008 Mark McGranaghan, expanded Stephen Roller's version Justin Balthrop Lance Bradley, core developers of Cake http://github.com/ninjudd/cake - if they weren't constantly adding features just for this project, this would have never gotten off the ground Allan Odgaard, for being the creator of TextMate and listening to my Bundle dev noob questions A screencast: http://blip.tv/file/4160578 The project repo: http://github.com/swannodette/textmate-clojure The Google Group: http://groups.google.com/group/textmate-clojure The project is written almost entirely in Clojure so you have no excuse to not contribute if you like TextMate :D Lots of bugs to fix. Two things I'd love to see: 1. Integration with nREPL via WebSockets to get a REPL right in TextMate 2. Integration with Mycroft to get an inspector right in TextMate David -- 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: ANN: textmate-clojure, SLIME for TextMate (sorta)
Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)? Thanks, Greg On Sep 23, 2010, at 7:39 PM, David Nolen wrote: First off Acknowledgements: Aria Haghighi, did much of the heavy lifting on this project! Stephen Roller, created the first version of the bundle in 2008 Mark McGranaghan, expanded Stephen Roller's version Justin Balthrop Lance Bradley, core developers of Cake http://github.com/ninjudd/cake - if they weren't constantly adding features just for this project, this would have never gotten off the ground Allan Odgaard, for being the creator of TextMate and listening to my Bundle dev noob questions A screencast: http://blip.tv/file/4160578 The project repo: http://github.com/swannodette/textmate-clojure The Google Group: http://groups.google.com/group/textmate-clojure The project is written almost entirely in Clojure so you have no excuse to not contribute if you like TextMate :D Lots of bugs to fix. Two things I'd love to see: 1. Integration with nREPL via WebSockets to get a REPL right in TextMate 2. Integration with Mycroft to get an inspector right in TextMate David -- 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
Re: ANN: textmate-clojure, SLIME for TextMate (sorta)
On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)? Thanks, Greg Same way you do with lein. Just set that in your project.clj and run 'cake deps', or even 'lein deps' if you like. David -- 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: ANN: textmate-clojure, SLIME for TextMate (sorta)
Thanks! What about single files though? (i.e. no project.clj) On Sep 23, 2010, at 9:22 PM, David Nolen wrote: On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)? Thanks, Greg Same way you do with lein. Just set that in your project.clj and run 'cake deps', or even 'lein deps' if you like. David -- 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
Re: ANN: textmate-clojure, SLIME for TextMate (sorta)
On Fri, Sep 24, 2010 at 1:06 AM, Greg g...@kinostudios.com wrote: Thanks! What about single files though? (i.e. no project.clj) cake has a global project.clj - ~/.cake/project.clj. Change this and single files will get access to those dependencies. David On Sep 23, 2010, at 9:22 PM, David Nolen wrote: On Thu, Sep 23, 2010 at 11:55 PM, Greg g...@kinostudios.com wrote: Awesome! Great job on this, I was hoping the TM Clojure bundle would get some much needed loving. :-) Quick question: how does this bundle get clojure.jar and clojure-contrib.jar (and any additional dependencies), and is there a way to tell it to use a specific clojure[-contrib].jar file(s)? Thanks, Greg Same way you do with lein. Just set that in your project.clj and run 'cake deps', or even 'lein deps' if you like. David -- 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.comclojure%2bunsubscr...@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
Re: Clojure/SLIME/Emacs questions
On Sat, Feb 13, 2010 at 5:48 AM, Steven E. Harris s...@panix.com wrote: Phil Hagelberg p...@hagelb.org writes: Upstream slime is not compatible with swank-clojure I find this not to be true at present, the stilted SLIME/Swank connection problem¹ and disabling autodoc mode notwithstanding. Yes, I too use slime upstream and avoid elpa. I can't seem to get auto completion to work with Java functions which some folks on the irc said they could. Otherwise it works fine for me. -- Ramakrishnan -- 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: Clojure/SLIME/Emacs questions
On Jan 1, 1:45 pm, Phil Hagelberg p...@hagelb.org wrote: You can get this to work, but as you can see it's very manual and error-prone. The basicslimeREPL is working using automated installation from ELPA. I am using the ELPA installation method, it's working well via the automatic install. Thank you for providing this. The installed packages: clojure-mode-1.6 slime-20091016 slime-repl-20091016 swank-clojure-1.1.0 include snapshots of slime and slime/contrib/slime-repl.el. Will these be merged with upstream slime soon? I would like to track the repository versions of clojure, clojure- contrib, clojure-mode, slime(-repl) and swank-clojure, using the ELPA configuration as a guide. Thanks Jeff -- 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: Clojure/SLIME/Emacs questions
On Thu, Feb 11, 2010 at 1:20 PM, Jeff Kowalczyk jeff.kowalc...@gmail.com wrote: The installed packages: clojure-mode-1.6 slime-20091016 slime-repl-20091016 swank-clojure-1.1.0 include snapshots of slime and slime/contrib/slime-repl.el. Will these be merged with upstream slime soon? I spoke with the slime maintainers about merging my changes, but they weren't interested. The changes were pretty minor though. I would like to track the repository versions of clojure, clojure- contrib, clojure-mode, slime(-repl) and swank-clojure, using the ELPA configuration as a guide. Upstream slime is not compatible with swank-clojure, so unless you do a lot of CL work I would strongly recommend against this. There have been a number of threads discussing this in the past; if you're interested in fixing this I could provide further information. -Phil -- 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: Clojure/SLIME/Emacs questions
Phil Hagelberg p...@hagelb.org writes: Rob Wolfe r...@smsnet.pl writes: Stefan Tilkov stefan.til...@innoq.com writes: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. I did it like this (I assume that clojure-mode.el has been installed): 1. downloaded slime and swank-clojure You can get this to work, but as you can see it's very manual and error-prone. The basic slime REPL is working using automated The question was not about basic slime REPL. installation from ELPA, and William Douglas is working on adding fuzzy completion to that. It's highly recommended that you follow this I will, if it will work. approach rather than copying and pasting several pages of one-off configuration. For instance, adding jline to your classpath is redundant if you're using slime. Where do you see several pages? I don't like this error-prone manual work, but so far only this work for me, that's why I showed this. Sorry if it is a pain for you to read. Rob -- 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: Clojure/SLIME/Emacs questions
Rob Wolfe r...@smsnet.pl writes: installation from ELPA, and William Douglas is working on adding fuzzy completion to that. It's highly recommended that you follow this I will, if it will work. approach rather than copying and pasting several pages of one-off configuration. For instance, adding jline to your classpath is redundant if you're using slime. Where do you see several pages? I don't like this error-prone manual work, but so far only this work for me, that's why I showed this. Sorry, I didn't mean to be dismissive, just to suggest that you try to communicate with him to solve this problem as I believe the solution he's working on is the cleanest for moving forward. -Phil -- 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: Clojure/SLIME/Emacs questions
FWIW I have never touched ELPA but got a setup with SLIME from CVS plus SBCL and Clojure. A rudimentary description can be found at http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. Regards, Stefan -- 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: Clojure/SLIME/Emacs questions
and FWIW I got the whole thing going without ELPA by using the instructions here: http://learnclojure.blogspot.com/2009/11/installing-clojure-on-ubuntu-910-karmic.html but on OSX. On 1 Jan 2010, at 11:30, Stefan Kamphausen wrote: FWIW I have never touched ELPA but got a setup with SLIME from CVS plus SBCL and Clojure. A rudimentary description can be found at http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. Regards, Stefan -- 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 Edmund The future is here. It's just not widely distributed yet -- Gibson -- 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: Clojure/SLIME/Emacs questions
On 01.01.2010, at 12:30, Stefan Kamphausen wrote: FWIW I have never touched ELPA but got a setup with SLIME from CVS plus SBCL and Clojure. A rudimentary description can be found at http://www.skamphausen.de/cgi-bin/ska/My_Clojure_Setup The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. I just run swank from source code, uncompiled. No Maven, no worry :-) Konrad. -- 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: Clojure/SLIME/Emacs questions
Hi, On Jan 1, 4:35 pm, Konrad Hinsen konrad.hin...@fastmail.net wrote: On 01.01.2010, at 12:30, Stefan Kamphausen wrote: The only part that feels tricky is compiling swank for which I needed a Maven setup, IIRC. I just run swank from source code, uncompiled. No Maven, no worry :-) I had some errors before compiling and putting the resulting JAR on the CP. But I'm not much of a Java-hero. What is your classpath? I have swank-clojure/target/swank-clojure-1.0-SNAPSHOT.jar on it. Cheers, Stefan -- 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: Clojure/SLIME/Emacs questions
On 01.01.2010, at 17:29, Stefan Kamphausen wrote: I had some errors before compiling and putting the resulting JAR on the CP. But I'm not much of a Java-hero. What is your classpath? I have swank-clojure/target/swank-clojure-1.0-SNAPSHOT.jar on it. I always work with the latest Clojure (new branch from github). Here's my swank setup in .emacs: (setq swank-clojure-classpath (list ~/Development/clojure/clojure.jar ~/Development/clojure-contrib/clojure-contrib.jar ~Development/clojure-dev-utilities)) The last entry is a directory which contains among other stuff the directory swank that contains swank.clj and the rest of the swank source code. Konrad. -- 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: Clojure/SLIME/Emacs questions
Stefan Kamphausen ska2...@googlemail.com writes: you may want to read the thread http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3 I had read that thread /twice/ before, as well as the thread on the SLIME mailing list, but I had neglected to try disabling autodoc-mode. This morning, doing so makes things work much better. However, I still notice that when I first run SLIME, the *inferior-lisp* buffer comes up with a responsive REPL, but the SLIME REPL connection is flaky. It takes a long time to finally come through, if it ever does. Perhaps there's some race condition there. Sometimes taking focus away from the Emacs window, doing something, else, and returning to Emacs will cause the SLIME REPL to finally wake up and finish its connection sequence. At that point the animated REPL banner flies out and I have a working REPL. But presentations still don't work. -- Steven E. Harris -- 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: Clojure/SLIME/Emacs questions
Steven E. Harris s...@panix.com writes: This morning, doing so makes things work much better. Still I see this in the *inferior-lisp* buffer when starting slime: , | (require 'swank.swank) | | (swank.swank/ignore-protocol-version 2009-12-23) | | (swank.swank/start-server c:/DOCUME~1/seh/LOCALS~1/Temp/slime.3420 :encoding iso-latin-1-unix) | | Listening for transport dt_socket at address: | Clojure 1.1.0 | user= | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | WARNING: reader macro ^ is deprecated; use meta instead | nil | user= user= 2009-12-23 | user= user= Connection opened on local port 3464 | #ServerSocket ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=3464] | user= user= user= ` Note that I'm using Clojure 1.1.0. Could that be the problem? This is within GNU Emacs 23.1.1 on Windows XP. Once that *inferior-lisp* buffer is up, if I run `slime-repl', the REPL may take an arbitrarily long time to finally connect to Swank. And if it does ever connect, and I shut it down via the sayoonara command, I can't get it to start again successfully. -- Steven E. Harris -- 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: Clojure/SLIME/Emacs questions
Steven E. Harris s...@panix.com writes: Rob Wolfe r...@smsnet.pl writes: I did it like this (I assume that clojure-mode.el has been installed): Thanks, Rob. I followed your instructions after not being able to get Clojure to cooperate with my normal Swank/SLIME installation, and it works, but only to a point: The SLIME REPL buffer (invoked via the function `slime-repl') falls out of step with the *inferior-lisp* buffer. So how do you exactly start SLIME for Clojure? These settings: (require 'slime) (slime-setup '(slime-repl)) (defun run-clojure () Starts clojure in Slime (interactive) (slime 'clojure)) should cause automatic start of *inferior-lisp* and *slime-repl clojure* after typing M-x run-clojure This never happens to me when using SLIME with a Common Lisp, such as CLISP. Here, Clojure starts up just fine in the *inferior-lisp* buffer, but the SLIME REPL doesn't seem to connect properly. Maybe it connects at the network level, but each form entered in the SLIME REPL yields messages like this in the minibuffer: , | ; pipelined request... (swank:listener-eval ` What do you see in *messages* buffer? Maybe there are some helpful messages. I can see this: Polling /tmp/slime.6251.. (Abort with `M-x slime-abort-connection'.) [31 times] Connecting to Swank on port 40585.. [2 times] Connected. Hacks and glory await! What version of Clojure do you use? I use clojure.jar built from sources taken from GIT repository (I tried Clojure 1.0 and it worked too). I agree with Stefan Kamphausen that connection-serve in swank.clj should not fail silently. Now we don't know what is the problem. If I were you I would change this function as Stefan suggested and see what is going on: code (defn- connection-serve [conn] (let [control (dothread-swank (thread-set-name Swank Control Thread) (try (control-loop conn) (catch Exception e ;; fail silently (.printStackTrace e) (.printStackTrace (.getCause e)) nil))) read (dothread-swank (thread-set-name Read Loop Thread) (try (read-loop conn control) (catch Exception e ;; This could be put somewhere better (.interrupt control) (dosync (alter *connections* (partial remove #{conn}))] (dosync (ref-set (conn :control-thread) control) (ref-set (conn :read-thread) read /code That's a sign that the REPL is sending commands to the SWANK back-end, but it's not receiving a timely response. Meanwhile, the Clojure REPL in the *inferior-lisp* buffer remains responsive. Trying to evaluate Clojure forms from a buffer other than the REPL (via, say, `C-x e', usually doesn't work. There's no error reported, but none of the resulting values display in the minibuffer, and any definitions evaluated there have no apparent side effect on the Clojure REPL available in the *inferior-lisp* buffer. I've also noticed that the SLIME presentations feature doesn't work with Clojure. That may be a symptom of the SLIME REPL not meeting up properly with the Clojure REPL. Yes, apparently connection with *slime-repl clojure* failed and it does not work properly now. HTH, Rob -- 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: Clojure/SLIME/Emacs questions
Rob Wolfe r...@smsnet.pl writes: So how do you exactly start SLIME for Clojure? I've tried both `C-u - M-x slime RET clojure' and `run-clojure', which both amount to the same thing eventually These settings: [...] should cause automatic start of *inferior-lisp* and *slime-repl clojure* after typing M-x run-clojure They do -- sometimes -- /eventually/. There is a very long gap between the *inferior-lisp* process starting and the SLIME-Swank connection completing, and the REPL appears only after that connection succeeds. What do you see in *messages* buffer? The same as yours: ,[ *Messages* buffer ] | Polling c:/DOCUME~1/seh/LOCALS~1/Temp/slime.5844.. | (Abort with `M-x slime-abort-connection'.) [22 times] | Connecting to Swank on port 3681.. [2 times] | Connected. Let the hacking commence! ` But note that the connection attempt message repeated 22 times. And in between the connecting and connected messages, there was a lag of maybe a minute, during which I went in and interacted with the Clojure REPL in the *inferior-lisp* buffer, trying to kick the connection to completion. If I just start SLIME and /don't/ interact with the *inferior-lisp* buffer, the connection never completes, or at least not within the five minutes I let it sit undisturbed. This is the only content in the *slime-events* buffer while I'm waiting for the connection to complete: ,[ *slime-events* buffer ] | (:emacs-rex | (swank:connection-info) | COMMON-LISP-USER t 1) ` What version of Clojure do you use? The Clojure 1.1.0 Jar that I downloaded from code.google.com. I use clojure.jar built from sources taken from GIT repository (I tried Clojure 1.0 and it worked too). That's a good sign that something more recent than Clojure 1.0 should work. I agree with Stefan Kamphausen that connection-serve in swank.clj should not fail silently. Now we don't know what is the problem. I changed `connection-serve' per your suggestion. The Swank back-end didn't dump any exception traces to the *inferior-lisp* buffer. The behavior looks like it suffers a race, or maybe the socket connection request isn't noticed as intended. -- Steven E. Harris -- 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: Clojure/SLIME/Emacs questions
Steven E. Harris s...@panix.com writes: This is the only content in the *slime-events* buffer while I'm waiting for the connection to complete: ,[ *slime-events* buffer ] | (:emacs-rex | (swank:connection-info) | COMMON-LISP-USER t 1) ` I also confirmed that `slime-set-connection-info' isn't being called until after the long lag, which means that the REX above is part of what's hanging. Either the Swank side isn't receiving the request or it's not responding from the SLIME function `connection-info' in file basic.clj. The hang can be well /before/ this point too, but I've at least established that it's not after `slime-set-connection-info'. My next step will be to instrument the Swank side to see when `connection-info' is being called. -- Steven E. Harris -- 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: Clojure/SLIME/Emacs questions
Rob Wolfe r...@smsnet.pl writes: Stefan Tilkov stefan.til...@innoq.com writes: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. I did it like this (I assume that clojure-mode.el has been installed): 1. downloaded slime and swank-clojure You can get this to work, but as you can see it's very manual and error-prone. The basic slime REPL is working using automated installation from ELPA, and William Douglas is working on adding fuzzy completion to that. It's highly recommended that you follow this approach rather than copying and pasting several pages of one-off configuration. For instance, adding jline to your classpath is redundant if you're using slime. -Phil -- 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
SLIME/Swank problem with swank.util.sys/get-pid and RuntimeMXBean (was: Clojure/SLIME/Emacs questions)
Steven E. Harris s...@panix.com writes: My next step will be to instrument the Swank side to see when `connection-info' is being called. I found the problem: swank.util.sys/get-pid. It looks like the JMX call to get the PID hangs. If I visit the *inferior-lisp* buffer's REPL and evaluate the following form, the REPL finishes connecting immediately: ,[ Fragment of `get-pid' function ] | (.. java.lang.management.ManagementFactory | (getRuntimeMXBean) (getName) (split @)) ` Apparently forcing more than one call through that path kicks it out of some wait, and the thread blocked on the Swank-side function `swank.commands.basic/connection-info' finally finishes its call to get-pid. Note that calling java.lang.management.ManagementFactory#getRuntimeMXBean() is not sufficient to unblock the thread in `connection-info'. It takes the following call to RuntimeMXBean#getName() to unblock the wait. Is there a separate mailing list to which I should report this problem? -- Steven E. Harris -- 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
Clojure/SLIME/Emacs questions
Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. Thanks, Stefan -- Stefan Tilkov, http://www.innoq.com/blog/st/ -- 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: Clojure/SLIME/Emacs questions
I probably should have mentioned that I have Emacs/SLIME/Clojure working together nicely already, it's particularly these features that are missing. Stefan On Dec 31, 2009, at 12:15 PM, Stefan Tilkov wrote: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. Thanks, Stefan -- Stefan Tilkov, http://www.innoq.com/blog/st/ -- 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
Re: Clojure/SLIME/Emacs questions
- Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value This one is called fuzzy-completion, which for some unknown reasons doesn't work with SLIME + Clojure. It used to work perfectly with Common Lisp. I would appreciate a solution to this too. Regards, BG -- Baishampayan Ghose b.gh...@ocricket.com oCricket.com -- 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: Clojure/SLIME/Emacs questions
Well, it clearly works for Lau, but then he says in one of the screencasts that he's using an old version of Slime; if you install technomancy's slime package from ELPA, I believe you don't get all the slime extensions, which would easily explain why the fuzzy completion doesn't work. I'm using that slime from ELPA, and fuzzy completion is also not working for me. When the fuzzy completion extension *is* available, then the following should work to enable it: (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) -Steve On 31 Dec 2009, at 12:07, Baishampayan Ghose wrote: - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value This one is called fuzzy-completion, which for some unknown reasons doesn't work with SLIME + Clojure. It used to work perfectly with Common Lisp. I would appreciate a solution to this too. Regards, BG -- Baishampayan Ghose b.gh...@ocricket.com oCricket.com -- 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
Re: Clojure/SLIME/Emacs questions
On 31 dec, 13:07, Baishampayan Ghose b.gh...@ocricket.com wrote: This one is called fuzzy-completion, which for some unknown reasons doesn't work with SLIME + Clojure. It used to work perfectly with Common Lisp. I would appreciate a solution to this too. Works for me, but you must have slime-fuzzy or slime-fancy enabled. So you need something like this in your emacs config: (slime-setup '(slime-fancy ;; turns on fancy inspector, autodoc and other useful stuff slime-highlight-edits)) This binds (slime-fuzzy-complete-symbol) to C-c M-i You can also use hippie-expand, which does the same sort of completion, but doesn't query the running lisp. Joost. -- 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: Clojure/SLIME/Emacs questions
Stefan, I run OSX, so I use command-click to bring the item to my REPL. I imagine a right click would do the job in other platforms. Sean On Dec 31, 6:15 am, Stefan Tilkov stefan.til...@innoq.com wrote: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. Thanks, Stefan -- Stefan Tilkov,http://www.innoq.com/blog/st/ -- 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: Clojure/SLIME/Emacs questions
On Dec 31, 2009, at 4:39 PM, Sean Devlin wrote: Stefan, I run OSX, so I use command-click to bring the item to my REPL. I imagine a right click would do the job in other platforms. Thanks Sean, but I am on OS X too – the line simply doesn't get highlighted, so I assumed there must be some difference in our setup. Best, Stefan Sean On Dec 31, 6:15 am, Stefan Tilkov stefan.til...@innoq.com wrote: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. Thanks, Stefan -- Stefan Tilkov,http://www.innoq.com/blog/st/ -- 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
Re: Clojure/SLIME/Emacs questions
Well, it clearly works for Lau, but then he says in one of the screencasts that he's using an old version of Slime; if you install technomancy's slime package from ELPA, I believe you don't get all the slime extensions, which would easily explain why the fuzzy completion doesn't work. I'm using that slime from ELPA, and fuzzy completion is also not working for me. Right now the ELPA slime package does not include contrib (which contains slime-fuzzy and a number of other things). I am attempting to add just the required pieces to ELPA to get slime-fuzzy working. If you would like fuzzy complete to work before this, you will want to grab slime from technomancy's github repo and then add something like the following to your .emacs: (add-to-list 'load-path ~/slime/contrib/) (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) Note that if you are using slime-connect the fuzzy complete might not work though the following patch may fix that for you if you are using lein swank to launch your swank session (patch from Takeshi Banse, tak...@laafc.net): diff --git a/src/leiningen/core.clj b/src/leiningen/core.clj index a5261f4..685aab1 100644 --- a/src/leiningen/core.clj +++ b/src/leiningen/core.clj @@ -81,4 +81,5 @@ (defn -main [ [task args]] (abort (format Wrong number of arguments to task %s. task) ;; In case tests or some other task started any: -(shutdown-agents))) +;;(shutdown-agents) +)) -- 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: Clojure/SLIME/Emacs questions
Stefan Tilkov stefan.til...@innoq.com writes: Two quick Emacs/Clojure questions I can't seem to find the answer to: - In his screencasts, Sean Devlin moves the mouse over an item in his REPL history and it becomes highlighted (and he can paste it to the current prompt with one click) - Also in his screencasts, Lau Jensen types something like g-i-v, then hits some key combination and gets an expansion like get-integer-value I can't seem to find out how to get these to work, any hint would be appreciated. I did it like this (I assume that clojure-mode.el has been installed): 1. downloaded slime and swank-clojure $ pwd /home/rw/opt/slime $ head -n 1 .git/remotes/origin URL: git://git.boinkor.net/slime.git $ git pull Already up-to-date. $ pwd /home/rw/opt/swank-clojure $ head -n 1 .git/remotes/origin URL: git://github.com/jochu/swank-clojure.git $ git pull Already up-to-date. 2. configured Emacs (version: GNU Emacs 23.1.50.2 (i686-pc-linux-gnu, GTK+ Version 2.12.11)) .emacs (add-to-list 'load-path ~/opt/slime/) (add-to-list 'load-path ~/opt/slime/contrib/) (add-to-list 'load-path ~/opt/swank-clojure/src/emacs) (require 'clojure-mode) (setq auto-mode-alist (cons '(\\.clj$ . clojure-mode) auto-mode-alist)) (require 'swank-clojure-autoload) (swank-clojure-config (setq swank-clojure-jar-path ~/opt/clojure/clojure-git.jar) (setq swank-clojure-extra-classpaths (list ~/opt/clojure/jline.jar ~/src/clojure/gnu/clojure/clojure/src/jvm)) (setq swank-clojure-extra-vm-args '(-agentlib:jdwp=transport=dt_socket,address=,server=y,suspend=n))) (require 'slime) (slime-setup '(slime-repl)) (add-hook 'clojure-mode-hook '(lambda () (define-key clojure-mode-map \C-cc 'comment-region) (define-key clojure-mode-map \C-cu 'uncomment-region))) (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) (defun run-clojure () Starts clojure in Slime (interactive) (slime 'clojure)) /.emacs And now M-x run-clojure starts slime with working completion. For example after writing w-o and hitting TAB key I can see this: user (w-o Completion:Flags: Score: -- with-open -f---m-- 20,43 with-out-str -f---m-- 20,00 [...] HTH, Rob -- 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: Clojure/SLIME/Emacs questions
Thanks for the quick response to everyone. I downloaded slime-fuzzy.el from here: http://elder-gods.org/~larry/repos/slime-tracker/contrib/slime-fuzzy.el , put it into ~/.emacs.d/misc and then added this to my ~/.emacs: (setq load-path (cons ~/.emacs.d/misc load-path)) (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) … and everything works perfectly. Stefan On Dec 31, 2009, at 5:44 PM, william douglas wrote: Well, it clearly works for Lau, but then he says in one of the screencasts that he's using an old version of Slime; if you install technomancy's slime package from ELPA, I believe you don't get all the slime extensions, which would easily explain why the fuzzy completion doesn't work. I'm using that slime from ELPA, and fuzzy completion is also not working for me. Right now the ELPA slime package does not include contrib (which contains slime-fuzzy and a number of other things). I am attempting to add just the required pieces to ELPA to get slime-fuzzy working. If you would like fuzzy complete to work before this, you will want to grab slime from technomancy's github repo and then add something like the following to your .emacs: (add-to-list 'load-path ~/slime/contrib/) (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) Note that if you are using slime-connect the fuzzy complete might not work though the following patch may fix that for you if you are using lein swank to launch your swank session (patch from Takeshi Banse, tak...@laafc.net): diff --git a/src/leiningen/core.clj b/src/leiningen/core.clj index a5261f4..685aab1 100644 --- a/src/leiningen/core.clj +++ b/src/leiningen/core.clj @@ -81,4 +81,5 @@ (defn -main [ [task args]] (abort (format Wrong number of arguments to task %s. task) ;; In case tests or some other task started any: -(shutdown-agents))) +;;(shutdown-agents) +)) -- 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
Re: Clojure/SLIME/Emacs questions
Rob Wolfe r...@smsnet.pl writes: I did it like this (I assume that clojure-mode.el has been installed): Thanks, Rob. I followed your instructions after not being able to get Clojure to cooperate with my normal Swank/SLIME installation, and it works, but only to a point: The SLIME REPL buffer (invoked via the function `slime-repl') falls out of step with the *inferior-lisp* buffer. This never happens to me when using SLIME with a Common Lisp, such as CLISP. Here, Clojure starts up just fine in the *inferior-lisp* buffer, but the SLIME REPL doesn't seem to connect properly. Maybe it connects at the network level, but each form entered in the SLIME REPL yields messages like this in the minibuffer: , | ; pipelined request... (swank:listener-eval ` That's a sign that the REPL is sending commands to the SWANK back-end, but it's not receiving a timely response. Meanwhile, the Clojure REPL in the *inferior-lisp* buffer remains responsive. Trying to evaluate Clojure forms from a buffer other than the REPL (via, say, `C-x e', usually doesn't work. There's no error reported, but none of the resulting values display in the minibuffer, and any definitions evaluated there have no apparent side effect on the Clojure REPL available in the *inferior-lisp* buffer. I've also noticed that the SLIME presentations feature doesn't work with Clojure. That may be a symptom of the SLIME REPL not meeting up properly with the Clojure REPL. -- Steven E. Harris -- 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: Clojure/SLIME/Emacs questions
Hi, do you use a rather recent checkout of SLIME? If so, you may want to read the thread http://groups.google.com/group/clojure/browse_frm/thread/3e5f416e3f2a1884/337057edae5dcdc3 Can't say whether that's related to your problem, though. Cheers, Stefan -- 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: Clojure/SLIME/Emacs questions
Indeed -- that works nicely. I tried going back to a completely non-ELPA-ized setup, but it was too painful; the trick was installing technomancy's github repo of slime *in addition* to the ELPA packages, which all depend on each other. -Steve On 31 Dec 2009, at 16:44, william douglas wrote: Well, it clearly works for Lau, but then he says in one of the screencasts that he's using an old version of Slime; if you install technomancy's slime package from ELPA, I believe you don't get all the slime extensions, which would easily explain why the fuzzy completion doesn't work. I'm using that slime from ELPA, and fuzzy completion is also not working for me. Right now the ELPA slime package does not include contrib (which contains slime-fuzzy and a number of other things). I am attempting to add just the required pieces to ELPA to get slime-fuzzy working. If you would like fuzzy complete to work before this, you will want to grab slime from technomancy's github repo and then add something like the following to your .emacs: (add-to-list 'load-path ~/slime/contrib/) (eval-after-load slime '(progn (require 'slime-fuzzy) (setq slime-complete-symbol*-fancy t) (setq slime-complete-symbol-function 'slime-fuzzy-complete-symbol))) Note that if you are using slime-connect the fuzzy complete might not work though the following patch may fix that for you if you are using lein swank to launch your swank session (patch from Takeshi Banse, tak...@laafc.net): diff --git a/src/leiningen/core.clj b/src/leiningen/core.clj index a5261f4..685aab1 100644 --- a/src/leiningen/core.clj +++ b/src/leiningen/core.clj @@ -81,4 +81,5 @@ (defn -main [ [task args]] (abort (format Wrong number of arguments to task %s. task) ;; In case tests or some other task started any: -(shutdown-agents))) +;;(shutdown-agents) +)) -- 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
Re: help with clojure + slime
2009/8/30 mlm michael.l.ma...@gmail.com: (setq swank-clojure-extra- classpaths (list /opt/clojure/clojure-contrib/clojure-contrib.jar:/opt/clojure/swan\ k-clojure/swank/swank.clj)) Try changing the swank-clojure bit to point to the directory rather than the .clj file, i.e. either /opt/clojure/swank-clojure or /opt/clojure/swank-clojure/swank, I can't remember off hand which one's the right one. -- ! Lauri --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
help with clojure + slime
I'm using clojure version: Clojure 1.1.0-alpha-SNAPSHOT and I'm trying to get slime and clojure to work on OS X. slime works with my sbcl install without any problems. I installed all of the packages and I'm getting an error while starting slime - clojure: 1. I go into clojure mode (M-x clojure-mode) 2. I create a simple clojure function 3. I attempt to go into slime-clojure by typing: M-- M-x slime enter clojure 4. I get the following errors/output: (require 'swank.swank) (swank.swank/ignore-protocol-version 2009-08-21) (swank.swank/start-server /var/folders/N6/N6Mz81y-G1G8uebETknF0+++ +TQ/-Tmp-/sl\ime.620 :encoding iso-latin-1-unix) Shared archive: sharing disabled for server vm Listening for transport dt_socket at address: Clojure 1.1.0-alpha-SNAPSHOT user= java.io.FileNotFoundException: Could not locate swank/ swank__init.class \ or swank/swank.clj on classpath: (NO_SOURCE_FILE:0) user= user= java.lang.ClassNotFoundException: swank.swank (NO_SOURCE_FILE:0) user= user= java.lang.ClassNotFoundException: swank.swank (NO_SOURCE_FILE:0) here is my .emacs: ; clojure- mode (add-to-list 'load-path /opt/clojure/clojure mode) (require 'clojure-mode) ; swank- clojure (add-to-list 'load-path /opt/clojure/swank- clojure) (setq swank-clojure-binary /opt/clojure/clj- server) (setq swank-clojure-jar-path /opt/java/jars/ clojure.jar) (require 'swank-clojure-autoload) (setq swank-clojure-extra- classpaths (list /opt/clojure/clojure-contrib/clojure-contrib.jar:/opt/ clojure/swan\ k-clojure/swank/ swank.clj)) (add-to-list 'load-path /Users/mlm/pkg/slime/) (setq inferior-lisp-program /opt/local/bin/sbcl) (require 'slime) (slime-setup) (add-to-list 'slime-lisp-implementations '(sbcl (sbcl))) Can anyone help me? Please let me know if I need to provide more info. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Another javadoc + clojure/slime integration
Hi all, Long time reader, first time poster. Thanks to Rich and the other contributors for all the great work on Clojure. I recently had a chance to use Clojure on a non-trivial project, which required integrating with a number of Java libraries. In the course of that I was getting tired of switching back and forth between developing in Emacs, and viewing Javadocs in Firefox. After looking at the other javadoc integration hacks, I decided I was looking for something else and built another one. Ideally, I wanted to be able able to put the cursor on any java class symbol in a clojure-mode buffer in emacs, execute M-x slime-javadoc, and have the api documentation popup in an adjacent emacs window. With the help of clojure, slime, and emacs/w3m, I was able to achieve nirvana. Anyway, I blogged about my approach (http://cynojure.posterous.com), and put up the code on github (http://github.com/kriyative/cynojure- swank/tree/master). Suggestions and comments are most welcome. -ram -- cynojure http://cynojure.posterous.com --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Another javadoc + clojure/slime integration
Hi all, Long time reader, first time poster. Thanks to Rich and the other contributors for all the great work on Clojure. I recently had a chance to use Clojure on a non-trivial project, which required integrating with a number of Java libraries. In the course of that I was getting tired of switching back and forth between developing in Emacs, and viewing Javadocs in Firefox. After looking at the other javadoc integration hacks, I decided I was looking for something else and built another one. Ideally, I wanted to be able able to put the cursor on any java class symbol in a clojure-mode buffer in emacs, execute M-x slime-javadoc, and have the api documentation popup in an adjacent emacs window. With the help of clojure, slime, and emacs/w3m, I was able to achieve nirvana. Anyway, I blogged about my approach (http://cynojure.posterous.com/ clojure-emacs-and-javadocs), and put up the code on github (http:// github.com/kriyative/cynojure-swank/tree/master). Suggestions and comments are most welcome. -ram -- cynojure http://cynojure.posterous.com --~--~-~--~~~---~--~~ 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: swank-clojure + slime
First of all, make sure you use the latest versions of slime, clojure, swank-clojre and clojure-mode. It works fine for me on both linux and windows. get latest slime here - http://common-lisp.net/project/slime/ get latest swank-clojure (your version seems to be outdated) here - http://github.com/jochu/swank-clojure/tree/master get lates clojure-mode here - http://github.com/jochu/clojure-mode/tree/master I hope you know where to get the latest clojure :) On Sun, Mar 8, 2009 at 5:18 AM, youngblood.carl youngblood.c...@gmail.comwrote: Howdy all, I'm brand new to this scene (where scene means lisp, closure, linux, and emacs), so apologies if this has been addressed. My goal is to make sure I'm up to date before moving forward. I set up my emacs/slime development environment like various tutorials suggested, except I received the following errors: *inferior-lisp* (require 'swank.swank) (swank.swank/ignore-protocol-version 2009-03-07) (swank.swank/start-server /tmp/slime.30640 :encoding iso-latin-1- unix) Clojure user= nil user= java.lang.Exception: Unable to resolve symbol: lazy-seq in this context (core.clj:70) user= java.lang.Exception: No such var: swank.swank/ignore-protocol- version (NO_SOURCE_FILE:5) user= java.lang.Exception: No such var: swank.swank/start-server (NO_SOURCE_FILE:7) I found another post mentioning that a change had been made to clojure which was not backwards compatible with slime. Looking at the clojure api and the above error, it was pretty clear that the culprit is the fun lazy-seq no longer exists. I replaced the following code based on what was available in the current clojure api, and what the old code seemed to be doing: core.clj (defn exception-causes [#^Throwable t] (lazy-seq (cons t (when-let [cause (.getCause t)] (exception-causes cause) = replaced with = (defn exception-causes [#^Throwable t] (lazy-cons t (when-let [cause (.getCause t)] (exception-causes cause Now my slime process starts without errors and successfully connects to the swank server, which no longer bombs from trying to use lazy- seq. My concern is my fix above is just coding by coincidence; I don't really understand what is happening beyond the list comprehension and I'm worried that I'm missing something important because it seems like that change would have been made already in swank-clojure if it was that simple. On the other hand, if it is a valid fix, if anyone else is having this problem I hope this helps. Thanks, Carl --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
Thanks Lucio, but you can see on git-hub that the head version of core.clj uses lazy-seq: http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5415d84ed5f4028/swank/core.clj On Mar 8, 9:02 am, Lucio Fulci luciofulc...@gmail.com wrote: First of all, make sure you use the latest versions of slime, clojure, swank-clojre and clojure-mode. It works fine for me on both linux and windows. get latest slime here -http://common-lisp.net/project/slime/ get latest swank-clojure (your version seems to be outdated) here -http://github.com/jochu/swank-clojure/tree/master get lates clojure-mode here -http://github.com/jochu/clojure-mode/tree/master I hope you know where to get the latest clojure :) On Sun, Mar 8, 2009 at 5:18 AM, youngblood.carl youngblood.c...@gmail.comwrote: Howdy all, I'm brand new to this scene (where scene means lisp, closure, linux, and emacs), so apologies if this has been addressed. My goal is to make sure I'm up to date before moving forward. I set up my emacs/slime development environment like various tutorials suggested, except I received the following errors: *inferior-lisp* (require 'swank.swank) (swank.swank/ignore-protocol-version 2009-03-07) (swank.swank/start-server /tmp/slime.30640 :encoding iso-latin-1- unix) Clojure user= nil user= java.lang.Exception: Unable to resolve symbol: lazy-seq in this context (core.clj:70) user= java.lang.Exception: No such var: swank.swank/ignore-protocol- version (NO_SOURCE_FILE:5) user= java.lang.Exception: No such var: swank.swank/start-server (NO_SOURCE_FILE:7) I found another post mentioning that a change had been made to clojure which was not backwards compatible with slime. Looking at the clojure api and the above error, it was pretty clear that the culprit is the fun lazy-seq no longer exists. I replaced the following code based on what was available in the current clojure api, and what the old code seemed to be doing: core.clj (defn exception-causes [#^Throwable t] (lazy-seq (cons t (when-let [cause (.getCause t)] (exception-causes cause) = replaced with = (defn exception-causes [#^Throwable t] (lazy-cons t (when-let [cause (.getCause t)] (exception-causes cause Now my slime process starts without errors and successfully connects to the swank server, which no longer bombs from trying to use lazy- seq. My concern is my fix above is just coding by coincidence; I don't really understand what is happening beyond the list comprehension and I'm worried that I'm missing something important because it seems like that change would have been made already in swank-clojure if it was that simple. On the other hand, if it is a valid fix, if anyone else is having this problem I hope this helps. Thanks, Carl --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
well, I'm not an expert in lisp, emacs and linux either :) the thing is that latest version of swank-clojure does work for me. On Sun, Mar 8, 2009 at 5:09 PM, youngblood.carl youngblood.c...@gmail.comwrote: Thanks Lucio, but you can see on git-hub that the head version of core.clj uses lazy-seq: http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5415d84ed5f4028/swank/core.clj On Mar 8, 9:02 am, Lucio Fulci luciofulc...@gmail.com wrote: First of all, make sure you use the latest versions of slime, clojure, swank-clojre and clojure-mode. It works fine for me on both linux and windows. get latest slime here -http://common-lisp.net/project/slime/ get latest swank-clojure (your version seems to be outdated) here - http://github.com/jochu/swank-clojure/tree/master get lates clojure-mode here - http://github.com/jochu/clojure-mode/tree/master I hope you know where to get the latest clojure :) On Sun, Mar 8, 2009 at 5:18 AM, youngblood.carl youngblood.c...@gmail.comwrote: Howdy all, I'm brand new to this scene (where scene means lisp, closure, linux, and emacs), so apologies if this has been addressed. My goal is to make sure I'm up to date before moving forward. I set up my emacs/slime development environment like various tutorials suggested, except I received the following errors: *inferior-lisp* (require 'swank.swank) (swank.swank/ignore-protocol-version 2009-03-07) (swank.swank/start-server /tmp/slime.30640 :encoding iso-latin-1- unix) Clojure user= nil user= java.lang.Exception: Unable to resolve symbol: lazy-seq in this context (core.clj:70) user= java.lang.Exception: No such var: swank.swank/ignore-protocol- version (NO_SOURCE_FILE:5) user= java.lang.Exception: No such var: swank.swank/start-server (NO_SOURCE_FILE:7) I found another post mentioning that a change had been made to clojure which was not backwards compatible with slime. Looking at the clojure api and the above error, it was pretty clear that the culprit is the fun lazy-seq no longer exists. I replaced the following code based on what was available in the current clojure api, and what the old code seemed to be doing: core.clj (defn exception-causes [#^Throwable t] (lazy-seq (cons t (when-let [cause (.getCause t)] (exception-causes cause) = replaced with = (defn exception-causes [#^Throwable t] (lazy-cons t (when-let [cause (.getCause t)] (exception-causes cause Now my slime process starts without errors and successfully connects to the swank server, which no longer bombs from trying to use lazy- seq. My concern is my fix above is just coding by coincidence; I don't really understand what is happening beyond the list comprehension and I'm worried that I'm missing something important because it seems like that change would have been made already in swank-clojure if it was that simple. On the other hand, if it is a valid fix, if anyone else is having this problem I hope this helps. Thanks, Carl --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
Same problem here. my solution : i'm currently using Clojure Box - http://clojure.bighugh.com --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
youngblood.carl napisał(a): Thanks Lucio, but you can see on git-hub that the head version of core.clj uses lazy-seq: http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5415d84ed5f4028/swank/core.clj I read somewhere too that lazy-seq dissapeared from clojure and that is the reason why swank-clojure does not work. I checked that and it is not true at this moment (as far as svn trunk is concerned): $ grep http .svn/entries http://clojure.googlecode.com/svn/trunk http://clojure.googlecode.com/svn $ svn status -v src/clj/clojure/core.clj 1326 1325 richhickey src/clj/clojure/core.clj $ svn status -v src/clj/clojure/core_proxy.clj 1326 1293 richhickey src/clj/clojure/core_proxy.clj $ find . -name *.clj | xargs grep -l lazy-seq ./src/clj/clojure/core_proxy.clj ./src/clj/clojure/core.clj But I couldn't find description of this macro in official API: http://clojure.org/api. Maybe somebody could explain what is the reason of this confusion about lazy-seq? Br, Rob --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
youngblood.carl youngblood.c...@gmail.com writes: Thanks Lucio, but you can see on git-hub that the head version of core.clj uses lazy-seq: http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5415d84ed5f4028/swank/core.clj The lazy-seq macro is what replaced lazy-cons. Swank-clojure *has* been updated to use lazy-seq; I think you've got it backwards. It's software that contains calls to lazy-cons that needs to be updated. It sounds more likely that your copy of Clojure is out of date. Are you pulling from the sourceforge SVN by any chance? It would probably be a good idea to make it so the last commit in the SF repo is simply a README saying don't use this anymore; use the current repository at [...] and remove all the code in it just to avoid these problems in the future. If you're having trouble keeping your versions straight and updating, you should try using M-x clojure-install from within Emacs. Recent versions of clojure-mode have this included. It will check out Clojure, Contrib, SLIME, and Clojure-swank and configure Emacs to use those newly-checked out versions for you. It is very straightforward and seems to work well for everyone I've talked with. Give it a shot and let me know how it works for you. -Phil --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
On Sun, Mar 8, 2009 at 3:15 PM, Phil Hagelberg p...@hagelb.org wrote: It sounds more likely that your copy of Clojure is out of date. Are you pulling from the sourceforge SVN by any chance? It would probably be a good idea to make it so the last commit in the SF repo is simply a README saying don't use this anymore; use the current repository at [...] and remove all the code in it just to avoid these problems in the future. I had a similar problem, but I had taken some time off, then come back to Clojure. I realized I had to checkout from Google Code instead. If you're having trouble keeping your versions straight and updating, you should try using M-x clojure-install from within Emacs. Recent versions of clojure-mode have this included. It will check out Clojure, Contrib, SLIME, and Clojure-swank and configure Emacs to use those newly-checked out versions for you. It is very straightforward and seems to work well for everyone I've talked with. Give it a shot and let me know how it works for you. Cool! Didn't know about this feature. Paul --~--~-~--~~~---~--~~ 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 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: swank-clojure + slime
Phil, I am much obliged for the detailed help. I downloaded clojure as the archive available from google code rather than using svn. So the docs at http://clojure.org/api are out of date then? Thanks, Carl On Mar 8, 2:15 pm, Phil Hagelberg p...@hagelb.org wrote: youngblood.carl youngblood.c...@gmail.com writes: Thanks Lucio, but you can see on git-hub that the head version of core.clj uses lazy-seq: http://github.com/jochu/swank-clojure/blob/349cb3b93a7bd8bcc86ffd0fd5... The lazy-seq macro is what replaced lazy-cons. Swank-clojure *has* been updated to use lazy-seq; I think you've got it backwards. It's software that contains calls to lazy-cons that needs to be updated. It sounds more likely that your copy of Clojure is out of date. Are you pulling from the sourceforge SVN by any chance? It would probably be a good idea to make it so the last commit in the SF repo is simply a README saying don't use this anymore; use the current repository at [...] and remove all the code in it just to avoid these problems in the future. If you're having trouble keeping your versions straight and updating, you should try using M-x clojure-install from within Emacs. Recent versions of clojure-mode have this included. It will check out Clojure, Contrib, SLIME, and Clojure-swank and configure Emacs to use those newly-checked out versions for you. It is very straightforward and seems to work well for everyone I've talked with. Give it a shot and let me know how it works for you. -Phil --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
swank-clojure + slime
Howdy all, I'm brand new to this scene (where scene means lisp, closure, linux, and emacs), so apologies if this has been addressed. My goal is to make sure I'm up to date before moving forward. I set up my emacs/slime development environment like various tutorials suggested, except I received the following errors: *inferior-lisp* (require 'swank.swank) (swank.swank/ignore-protocol-version 2009-03-07) (swank.swank/start-server /tmp/slime.30640 :encoding iso-latin-1- unix) Clojure user= nil user= java.lang.Exception: Unable to resolve symbol: lazy-seq in this context (core.clj:70) user= java.lang.Exception: No such var: swank.swank/ignore-protocol- version (NO_SOURCE_FILE:5) user= java.lang.Exception: No such var: swank.swank/start-server (NO_SOURCE_FILE:7) I found another post mentioning that a change had been made to clojure which was not backwards compatible with slime. Looking at the clojure api and the above error, it was pretty clear that the culprit is the fun lazy-seq no longer exists. I replaced the following code based on what was available in the current clojure api, and what the old code seemed to be doing: core.clj (defn exception-causes [#^Throwable t] (lazy-seq (cons t (when-let [cause (.getCause t)] (exception-causes cause) = replaced with = (defn exception-causes [#^Throwable t] (lazy-cons t (when-let [cause (.getCause t)] (exception-causes cause Now my slime process starts without errors and successfully connects to the swank server, which no longer bombs from trying to use lazy- seq. My concern is my fix above is just coding by coincidence; I don't really understand what is happening beyond the list comprehension and I'm worried that I'm missing something important because it seems like that change would have been made already in swank-clojure if it was that simple. On the other hand, if it is a valid fix, if anyone else is having this problem I hope this helps. Thanks, Carl --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Clojure Slime, how to jump to a def/defn?
Is this supported yet? M-. is supposed to handle this, but I get an error when I try. David --~--~-~--~~~---~--~~ 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 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: Clojure Slime, how to jump to a def/defn?
David Nolen on 2009-02-23 16:58:40 -0500: Is this supported yet? M-. is supposed to handle this, but I get an error when I try. It works for me with Clojure sources (for example, M-. on rest), even if they're in jars, but not with applications I've compiled through load-file, slime-compile-defun, or slime-compile-region. I think I remember this working a while ago. The backtrace I get is very reproducable: (:emacs-rex (swank:find-definitions-for-emacs bar) foo :repl-thread 19) (:return (:abort) 19) (:debug 2 1 (java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] nil) ((ABORT Return to SLIME's top level.) (CAUSE Throw cause of this exception)) ((0 clojure.lang.Compiler.eval(Compiler.java:4235) (:restartable nil)) (1 clojure.core$eval__3894.invoke(core.clj:1711) (:restartable nil)) (2 swank.core$eval_in_emacs_package__275.invoke(core.clj:55) (:restartable nil)) (3 swank.core$eval_for_emacs__350.invoke(core.clj:123) (:restartable nil)) (4 clojure.lang.Var.invoke(Var.java:348) (:restartable nil)) (5 clojure.lang.AFn.applyToHelper(AFn.java:179) (:restartable nil)) (6 clojure.lang.Var.applyTo(Var.java:457) (:restartable nil)) (7 clojure.core$apply__3162.doInvoke(core.clj:408) (:restartable nil)) (8 clojure.lang.RestFn.invoke(RestFn.java:428) (:restartable nil)) (9 swank.core$eval_from_control__278.invoke(core.clj:62) (:restartable nil)) (10 swank.core$eval_loop__281.invoke(core.clj:67) (:restartable nil)) (11 swank.core$spawn_repl_thread__409$fn__438$fn__440.invoke(core.clj:168) (:restartable nil)) (12 clojure.lang.AFn.applyToHelper(AFn.java:171) (:restartable nil)) (13 clojure.lang.AFn.applyTo(AFn.java:164) (:restartable nil)) (14 clojure.core$apply__3162.doInvoke(core.clj:408) (:restartable nil)) (15 clojure.lang.RestFn.invoke(RestFn.java:428) (:restartable nil)) (16 swank.core$spawn_repl_thread__409$fn__438.doInvoke(core.clj:165) (:restartable nil)) (17 clojure.lang.RestFn.invoke(RestFn.java:402) (:restartable nil)) (18 clojure.lang.AFn.run(AFn.java:37) (:restartable nil)) (19 java.lang.Thread.run(Thread.java:636) (:restartable nil))) (19)) (:emacs-rex (swank:throw-to-toplevel) nil 2 20) (:debug-activate 2 1 true) (:return (:abort) 20) (:debug-return 2 1 nil) --~--~-~--~~~---~--~~ 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 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: Clojure Slime, how to jump to a def/defn?
You're right, works perfectly on clojure sources, but not the instances you've described. It would be great if this would work again. I don't understand swank/slime well enough to try it myself. On Mon, Feb 23, 2009 at 9:23 PM, Alec Berryman a...@thened.net wrote: David Nolen on 2009-02-23 16:58:40 -0500: Is this supported yet? M-. is supposed to handle this, but I get an error when I try. It works for me with Clojure sources (for example, M-. on rest), even if they're in jars, but not with applications I've compiled through load-file, slime-compile-defun, or slime-compile-region. I think I remember this working a while ago. The backtrace I get is very reproducable: (:emacs-rex (swank:find-definitions-for-emacs bar) foo :repl-thread 19) (:return (:abort) 19) (:debug 2 1 (java.lang.StringIndexOutOfBoundsException: String index out of range: -1 (NO_SOURCE_FILE:0) [Thrown class clojure.lang.Compiler$CompilerException] nil) ((ABORT Return to SLIME's top level.) (CAUSE Throw cause of this exception)) ((0 clojure.lang.Compiler.eval(Compiler.java:4235) (:restartable nil)) (1 clojure.core$eval__3894.invoke(core.clj:1711) (:restartable nil)) (2 swank.core$eval_in_emacs_package__275.invoke(core.clj:55) (:restartable nil)) (3 swank.core$eval_for_emacs__350.invoke(core.clj:123) (:restartable nil)) (4 clojure.lang.Var.invoke(Var.java:348) (:restartable nil)) (5 clojure.lang.AFn.applyToHelper(AFn.java:179) (:restartable nil)) (6 clojure.lang.Var.applyTo(Var.java:457) (:restartable nil)) (7 clojure.core$apply__3162.doInvoke(core.clj:408) (:restartable nil)) (8 clojure.lang.RestFn.invoke(RestFn.java:428) (:restartable nil)) (9 swank.core$eval_from_control__278.invoke(core.clj:62) (:restartable nil)) (10 swank.core$eval_loop__281.invoke(core.clj:67) (:restartable nil)) (11 swank.core$spawn_repl_thread__409$fn__438$fn__440.invoke(core.clj:168) (:restartable nil)) (12 clojure.lang.AFn.applyToHelper(AFn.java:171) (:restartable nil)) (13 clojure.lang.AFn.applyTo(AFn.java:164) (:restartable nil)) (14 clojure.core$apply__3162.doInvoke(core.clj:408) (:restartable nil)) (15 clojure.lang.RestFn.invoke(RestFn.java:428) (:restartable nil)) (16 swank.core$spawn_repl_thread__409$fn__438.doInvoke(core.clj:165) (:restartable nil)) (17 clojure.lang.RestFn.invoke(RestFn.java:402) (:restartable nil)) (18 clojure.lang.AFn.run(AFn.java:37) (:restartable nil)) (19 java.lang.Thread.run(Thread.java:636) (:restartable nil))) (19)) (:emacs-rex (swank:throw-to-toplevel) nil 2 20) (:debug-activate 2 1 true) (:return (:abort) 20) (:debug-return 2 1 nil) --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Clojure, Slime and multiple file projects
Hi folks, I'm getting to the stage on a Clojure project that I want to start breaking the code into multiple files. My primary environment is Emacs Slime and interactive development. Is there a standard way for me to load all of my project's files into the running VM? Right now I manually go to each file load it. I guess I could also write a little function that loaded all the files in the correct order, but if there is an actual framework tool (like ASDF) then I would try to use that. Cheers, Brad --~--~-~--~~~---~--~~ 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 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: Clojure, Slime and multiple file projects
On Feb 9, 1:05 am, Bradbev brad.beveri...@gmail.com wrote: Hi folks, I'm getting to the stage on a Clojure project that I want to start breaking the code into multiple files. My primary environment is Emacs Slime and interactive development. Is there a standard way for me to load all of my project's files into the running VM? Right now I manually go to each file load it. I guess I could also write a little function that loaded all the files in the correct order, but if there is an actual framework tool (like ASDF) then I would try to use that. I use the time-honored lisp-hacker method of building a load-file. I have a clojure source file that sits at the root of a project, named build.clj. It contains a few simple functions that load project files in order. As I get closer to deployment, I start work on functions to build the reployable versions of things. If you want something more like make or ant or ASDF, you might look at Lancet, from the Programming Clojure book. I haven't used it, but I do belevei it's intended to scrath your itch. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
clojure slime/swank mode problem -- still NewBie
Hi all, I've been using command line Repl for a while and want to move to slime/emacs so I followed instructions in wiki and got errors in emacs: I was able to load ants.clj in upper panel. On the bottom panel, alt -x slime give me the following errors: (require 'swank.swank) (swank.swank/ignore-protocol-version 2008-12-27) (swank.swank/start-server /tmp/slime.6833 :encoding iso-latin-1- unix) Exception in thread main java.lang.NoClassDefFoundError: clojure/ main Caused by: java.lang.ClassNotFoundException: clojure.main at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: clojure.main. Program will exit. Process inferior-lisp exited abnormally with code 1 What can go wrong here? Thanks Sun --~--~-~--~~~---~--~~ 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 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: clojure slime/swank mode problem -- still NewBie
Also my .emacs is pasted here: Just copy from wiki... ;; clojure mode (add-to-list 'load-path /usr/local/clojure-mode) (require 'clojure-auto) ;; Slime (add-to-list 'load-path /usr/local/slime) (require 'slime) (slime-setup) ;; clojure swank (setq swank-clojure-jar-path /usr/local/clojure/target/clojure- lang-1.0-SNAPSHOT.jar) ; alternatively, you can set up the clojure wrapper script and use that: ; (setq swank-clojure-binary /path/to/cljwrapper) ; you can also set up extra classpaths, such as the classes/ directory used by AOT compilation ;(setq swank-clojure-extra-classpaths (list /path/to/extra/ classpaths /even/more/classpaths)) (add-to-list 'load-path /usr/local/swank-clojure) (require 'swank-clojure-autoload) ;; is this required? I don't have this in my emacs configuration; I just execute M-x slime to start slime -- Chousuke (defun run-clojure () Starts clojure in Slime (interactive) (slime 'clojure)) ;; To use other Lisps... ;; Incidentally, you can then choose different Lisps with ;; M-- M-x slime tab ;; (add-to-list 'slime-lisp-implementations ;; '(sbcl (/path/to/bin/sbcl))) On Dec 28, 7:03 pm, wubbie sunj...@gmail.com wrote: Hi all, I've been using command line Repl for a while and want to move to slime/emacs so I followed instructions in wiki and got errors in emacs: I was able to load ants.clj in upper panel. On the bottom panel, alt -x slime give me the following errors: (require 'swank.swank) (swank.swank/ignore-protocol-version 2008-12-27) (swank.swank/start-server /tmp/slime.6833 :encoding iso-latin-1- unix) Exception in thread main java.lang.NoClassDefFoundError: clojure/ main Caused by: java.lang.ClassNotFoundException: clojure.main at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: clojure.main. Program will exit. Process inferior-lisp exited abnormally with code 1 What can go wrong here? Thanks Sun --~--~-~--~~~---~--~~ 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 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: clojure slime
Clojure svn 1110 does work with latest swank-clojure. But, svn (doto) breaks swank again. user= java.lang.Exception: Unable to resolve symbol: start in this context (thread.clj:10) user= java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE:7) -Mike On Tue, Nov 18, 2008 at 10:35 PM, Jeffrey Chu [EMAIL PROTECTED] wrote: Sorry for the inconvenience. It's been fixed. - Jeff On Nov 18, 5:41 pm, islon [EMAIL PROTECTED] wrote: I'll not use slime right now (thanks Bill). swank-clojure will be fixed anytime soon? On Nov 18, 11:15 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote: SVN version 1110 of Clojure made a breaking change to a feature that swank-clojure is using. For now, I recommend moving back one rev by using: svn up -r 1109 from within your checkout of clojure/trunk. In the past, Jeff has updated swank-clojure very quickly on those rare occasions where Clojure changes enough to break it. Stay tuned. --Steve On Nov 18, 2008, at 8:01 PM, islon wrote: I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? Regards. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
clojure slime
I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? Regards. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure slime
On Tue, Nov 18, 2008 at 5:01 PM, islon [EMAIL PROTECTED] wrote: I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? There was a change done today to provide AOT/gen-class support. Unfortunately, it breaks swank-clojure. So, your options are: 1. Grab an earlier version of Clojure from svn 2. Don't use slime in emacs (http://bc.tech.coop/blog/081118.html) 3. Fix the swank-clojure breakage - Bill --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure slime
SVN version 1110 of Clojure made a breaking change to a feature that swank-clojure is using. For now, I recommend moving back one rev by using: svn up -r 1109 from within your checkout of clojure/trunk. In the past, Jeff has updated swank-clojure very quickly on those rare occasions where Clojure changes enough to break it. Stay tuned. --Steve On Nov 18, 2008, at 8:01 PM, islon wrote: I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? Regards. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure slime
I'll not use slime right now (thanks Bill). swank-clojure will be fixed anytime soon? On Nov 18, 11:15 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote: SVN version 1110 of Clojure made a breaking change to a feature that swank-clojure is using. For now, I recommend moving back one rev by using: svn up -r 1109 from within your checkout of clojure/trunk. In the past, Jeff has updated swank-clojure very quickly on those rare occasions where Clojure changes enough to break it. Stay tuned. --Steve On Nov 18, 2008, at 8:01 PM, islon wrote: I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? Regards. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: clojure slime
Sorry for the inconvenience. It's been fixed. - Jeff On Nov 18, 5:41 pm, islon [EMAIL PROTECTED] wrote: I'll not use slime right now (thanks Bill). swank-clojure will be fixed anytime soon? On Nov 18, 11:15 pm, Stephen C. Gilardi [EMAIL PROTECTED] wrote: SVN version 1110 of Clojure made a breaking change to a feature that swank-clojure is using. For now, I recommend moving back one rev by using: svn up -r 1109 from within your checkout of clojure/trunk. In the past, Jeff has updated swank-clojure very quickly on those rare occasions where Clojure changes enough to break it. Stay tuned. --Steve On Nov 18, 2008, at 8:01 PM, islon wrote: I checkouted the last clojure from svn, swank-clojure and clojure-mode too. When I start slime it give me the following errors: Clojure user= (add-classpath file:home/islon/opt/swank-clojure/) nil user= (require (quote swank)) java.lang.Exception: No such var: swank.util/gen-and-load-class (core.clj:39) user= (swank/ignore-protocol-version 2008-11-02) java.lang.Exception: No such var: swank/ignore-protocol-version (NO_SOURCE_FILE:5) user= (swank/start-server /tmp/slime.22694 :encoding iso-latin-1-unix) java.lang.Exception: No such var: swank/start-server (NO_SOURCE_FILE: 7) user= It worked until I update clojure from svn. Any ideas? Regards. --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: Swank-clojure: slime-eval-print-last-expression failing.
After some hacking and a little help from #clojure, here is my initial gift to the community: Add the following function definition to swank-clojure/swank/commands/basic/basic.clj to get C-j working in *slime-scratch*. (in-ns 'swank.commands.basic) ;; optional, only if you have the below function in a separate file. (defslimefn eval-and-grab-output [string] (with-emacs-package (with-local-vars [retval nil] (list (with-out-str (var-set retval (pr-str (first (eval-region string) (var-get retval) On Mon, Oct 20, 2008 at 10:18 AM, Luke Hope [EMAIL PROTECTED] wrote: Hello, I am a common lisp programmer and I use Slime extensively. I am looking into using Clojure for an upcoming project (I have experience with ABCL, but it is too slow) and I have clojure and swank-clojure installed. Unfortunately slime-eval-print-last-expression (C-j in *slime-scratch*) is failing (evaluation aborted), I think because it uses asynchronous evaluation. Is this a known issue or a regression? Is it fixable? I really want to be able to adapt my workflow for working with clojure, and I use C-j all the time. All code except for Emacs itself is current as of 2 hours ago. The behaviour was duplicated by a member of #clojure. Hope you can help, -Luke --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Swank-clojure: slime-eval-print-last-expression failing.
Hello, I am a common lisp programmer and I use Slime extensively. I am looking into using Clojure for an upcoming project (I have experience with ABCL, but it is too slow) and I have clojure and swank-clojure installed. Unfortunately slime-eval-print-last-expression (C-j in *slime-scratch*) is failing (evaluation aborted), I think because it uses asynchronous evaluation. Is this a known issue or a regression? Is it fixable? I really want to be able to adapt my workflow for working with clojure, and I use C-j all the time. All code except for Emacs itself is current as of 2 hours ago. The behaviour was duplicated by a member of #clojure. Hope you can help, -Luke --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
Re: swank-clojure: slime-compile-defun doesn't work
Hi Jeffrey, On Sat, Oct 4, 2008 at 3:56 AM, Jeffrey Chu [EMAIL PROTECTED] wrote: On Oct 3, 5:13 pm, Alec Berryman [EMAIL PROTECTED] wrote: When I place the point anywhere in or around a form and use C-c C-c (slime-compile-defun), I see Evaluation aborted in my minibuffer and this in *slime-events*: The feature is now implemented. It seems that this feature works now, but it gives the following warning in the minibuffer: error in process filter: Format specifier doesn't match argument type with a freshly downloaded latest slimeswank-clojure on Windows. This happens with both slime-compile-defun (C-c C-c) and slime-compile-and-load-file (C-c C-k). -- Matti Jagula --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---
swank-clojure: slime-compile-defun doesn't work
I'm using SLIME 2008-09-28 and a swank-clojure from git up-to-date as of today. It's generally working well. When I place the point anywhere in or around a form and use C-c C-c (slime-compile-defun), I see Evaluation aborted in my minibuffer and this in *slime-events*: (:emacs-rex (swank:compile-string-for-emacs (def *foo* 1) foo.clj 1 /home/alec/tmp/deletable/ 'nil) nil t 10) (:return (:abort) 10) slime-compile-and-load-file (C-c C-k) works fine; slime-compile-region fails as above. I see nothing in *inferior-lisp*. Is this a known problem or is the feature unimplemented? --~--~-~--~~~---~--~~ 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 To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~--~~~~--~~--~--~---