Questions tagged [swank]

Swank is the Common Lisp server component of SLIME, the Superior Lisp Interaction Mode for Emacs.

Swank is the Common Lisp server component of , the Superior Lisp Interaction Mode for .

83 questions
7
votes
1 answer

Why does swank-js give me "document is not defined" in the emacs REPL?

I follow these steps: Run swank-js in the command line. Run emacs. M-x slime-connect. Host: 127.0.0.1; Port: 4005 Open up the http://localhost:8009/swank-js/test.html in Firefox. Receive: "Remote attached: (browser) Firefox14.0" in the emacs…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
7
votes
3 answers

Can I background a running thread in the Slime (Swank Emacs)

I often find my self starting some long running process from the REPL and then wish I could carry on using the REPL for other tasks while it was running. Can I use slime to background the current thread or start a new REPL control thread? Starting…
Arthur Ulfeldt
  • 90,827
  • 27
  • 201
  • 284
6
votes
5 answers

Setting up emacs/slime/swank for clojure with leiningen

Short version: errors when running M-x slime-connect or M-x clojure-jack-in when using lein swank to start the swank server. I'm using emacs 24.0.50.1 on Ubuntu 10.10. I've installed the following packages in emacs from ELPA: clojure-mode, paredit,…
element8
  • 105
  • 2
  • 9
6
votes
1 answer

How can I define the address that swank server should listen to?

There is no argument for setting the address to bind to when starting swank server: * (describe 'swank:create-server) => ... Lambda-list: (&KEY (PORT DEFAULT-SERVER-PORT) (STYLE *COMMUNICATION-STYLE*) (DONT-CLOSE *DONT-CLOSE*) …
Paralife
  • 6,116
  • 8
  • 38
  • 64
6
votes
2 answers

How to capture stdout/log output of an agent in SLIME?

I send a task to an agent, but can't see the output of any print statements I've put into the function. How do I trace code execution on agents? EDIT: Turns out I do get the output in the console, but not in SLIME. The question now is, how to see…
Alex B
  • 82,554
  • 44
  • 203
  • 280
6
votes
1 answer

Embedding swank-clojure in java program

Based on the Embedding section of http://github.com/technomancy/swank-clojure, I'm using the following to test it out. Is there a better way to do this that doesn't use Compiler? Is there a way to programmatically stop swank? It seems…
hiheelhottie
  • 927
  • 8
  • 10
6
votes
4 answers

Killing Infinite Loops in Java/Clojure

Responses to some "potential answers" You should sprinkle "interrupts" into your threads I don't write my code with the intention of it being a long process / infinite loop; it's just that in development, I accidently write code that happens to be…
user1311390
5
votes
2 answers

Setting up SLIME & Inferior-Lisp for Clojure in Emacs

SLIME I'm pretty new to both Clojure & emacs and I've been trying to set up SLIME for Clojure. The official documentation implicitly assumes you know what your doing with emacs. There isn't just a bunch of code you can stick into your…
wdkrnls
  • 4,548
  • 7
  • 36
  • 64
5
votes
1 answer

Emacs with Slime and Swank for non-leiningen projects

I found this website which explains how to use emacs with leiningen, swank, and slime. Is there a way to use slime + swank in non-leiningen projects i.e. how can I connect to slime/swank repl to run a ad-hoc Clojure script while I write it as…
morej
  • 73
  • 2
4
votes
1 answer

Workflow for hacking on Clojure libraries using swank-clojure

Is there a typical workflow for hacking on Clojure libraries? Say I have my application "Foo" which relies on a third-party library "Bar", which was obtained from a repository, and included in project Foo via lein deps. Then, say I want to hack on…
kes
  • 5,983
  • 8
  • 41
  • 69
4
votes
2 answers

Exception when connecting to swank-server

When trying to M-x slime-connect to a swank server running in a clojure app I get a user> prompt but as soon as I start typing the connection breaks as the app throws: exception in read loop java.lang.RuntimeException: Invalid token:…
kliron
  • 4,383
  • 4
  • 31
  • 47
4
votes
2 answers

How to redirect swank server output to emacs buffer?

I want to redirect my swank server output to an emacs buffer. I put this in ~/.swank.lisp, but this does not work- (setf swank:*globally-redirect-io* t) Im using Clojure box. Thanks.
Pranav
  • 3,340
  • 8
  • 35
  • 48
4
votes
1 answer

upgrading lein project from clojure 1.2.1 to 1.3.0-beta1

I have a leiningen project that uses clojure 1.2.1. I would like to add a dependency to a package that requires clojure 1.3.0-beta1. So I decided to upgrade my project to the newer version. To be honest I was not sure what that involved but I did…
allama
  • 41
  • 2
4
votes
1 answer

How to interact with a Swank server at a low level with telnet?

I am trying to play with a Swank server from the command line (with no specific production purpose, merely trying to understand things with some hacky ideas in mind for later) and I can't figure out what I can type from a telnet session for getting…
Thomas Baruchel
  • 7,236
  • 2
  • 27
  • 46
4
votes
2 answers

Send emacs buffer to arbitrary Python process

I like the python-send-buffer command, however I very often use Python embedded in applications, or launch Python via a custom package management system (to launch Python with certain dependencies).. In other words, I can't just run "python" and get…
dbr
  • 165,801
  • 69
  • 278
  • 343