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
4
votes
4 answers

Equivalent of 'lein swank' to other Lisp/Scheme implementations with emacs/slime

I've been using emacs/slime for coding lisp, but with Clojure I found 'lein swank'. I must say that it's pretty useful, as I can connect to a server that runs clojure. How about the other Lisp implementations? What Lisp implementations provide the…
prosseek
  • 182,215
  • 215
  • 566
  • 871
4
votes
1 answer

Can an embedded swank-clojure repl access the program it is embedded in?

I'm trying to embed a swank-clojure repl into my application for the purpose of connecting while the app is running to muck around with things. However, I'm having trouble figuring out how to access the enclosing environment after starting the…
allclaws
  • 5,575
  • 8
  • 30
  • 27
4
votes
1 answer

How to reconnect to slime/swank-clojure session?

It seems that whenever I disconnect from clojure slime session, I cannot reconnect again. I am using leiningen to start the swank session (with lein-swank plugin). So, every time I quit emacs (I know I shouldn't) or reboot/logout I have to restart…
Mad Wombat
  • 14,490
  • 14
  • 73
  • 109
4
votes
2 answers

Can't get Slime and Swank working with Clojure in emacs in os x

Just trying to get a very basic install of slime and clojure working, but swank keeps failing when I run clojure-jack-in I first got lein, then put the following in my .emacs (for version 24.1): (add-to-list 'load-path…
TG-T
  • 2,174
  • 3
  • 19
  • 20
4
votes
2 answers

Getting started with Datomic and Clojure in Emacs

My project.clj file looks like this (defproject cljs-template "0.1.0-SNAPSHOT" :description "FIXME: write this!" :url "http://example.com/FIXME" :dependencies [[org.clojure/clojure "1.4.0-beta4"] [noir-cljs "0.3.0"] …
Stephen Cagle
  • 14,124
  • 16
  • 55
  • 86
4
votes
2 answers

"Hot swapping" code with swank clojure, and crash resilience

I've been messing around with developing a game in clojure, and one thing I've been really excited about is hot swapping in code. I've been using swank clojure and emacs with the lein-swank plugin. My main problem has been that of typos. Say I…
thedayturns
  • 9,723
  • 5
  • 33
  • 41
3
votes
1 answer

Slime is throwing a "Variable binding depth exceeds max-specpdl-size" in my Clojure repl

My clojure repl started throwing a "Variable binding depth exceeds max-specpdl-size" error and I've gotten thrown into the debugger. I am currently accessing slime via clojure-jack-in and I am executing a reduce on a reasonable sized dataset. A bit…
toofarsideways
  • 3,956
  • 2
  • 31
  • 51
3
votes
1 answer

using slimv with clojure

Are there any docs on using slimv with clojure? I got it connected to a lein swank and have a working repl but can't figure out how to actually do anything with it. How do you get it to load a lein project and its namespaces? Tried following the…
devth
  • 2,738
  • 4
  • 31
  • 51
3
votes
2 answers

Overtone Livecoding with Emacs/Slime/Swank/cake - Could not locate overtone.live__init.class

I am trying to use emacs and slime to connect to swank to live code using Overtone. I have the whole thing pretty much working, but when i try to run (ns foo (:use [overtone.live] [overtone.inst.synth])) (definst bar [] (saw 220)) I…
james
  • 73
  • 1
  • 7
3
votes
0 answers

Connecting to remote swank: can't locate module swank-io-package::swank-trace-dialog

So, I am using sbcl --dynamic-space-size 1024 \ --noinform \ --load $HOME/quicklisp/setup.lisp \ --eval '(ql:quickload :myapp)' \ --eval "(sb-ext:save-lisp-and-die \"myapp\" :toplevel #'myapp::main :executable t :compression…
digikar
  • 576
  • 5
  • 13
3
votes
0 answers

How can *standard-input* and *standard-output* be redirected to another PTY, FIFO or socket?

I was wondering if it's possible to redirect ECL's Linux stdio so that it does not share streams with the application that it's embedded in. My problem is that the host application takes over stdin, stdout and stderr for its own purposes. So, I'd…
Michael Fox
  • 3,632
  • 1
  • 17
  • 27
3
votes
0 answers

Is there a simple method for writing traces from multiple sbcl threads to standard output through MCLIDE/swank?

Using SBCL, I'm writing a small server and I would like to trace the server thread, but when I use mclide/swank, I do not see any output from the server thread. ? (require 'sb-posix) NIL ? (sb-thread:make-thread (lambda () (format t "hi from the…
3
votes
3 answers

How to reinitialise swank?

How can I make swank forget all previously evaluated definitions? I want it to undefine all macros, functions, and variables that where defined via evaluations (such as ,b evaluate buffer). And have it returned to the same state as when I reboot my…
Kasper van den Berg
  • 8,951
  • 4
  • 48
  • 70
3
votes
1 answer

Tab completions on remote Emacs with SLIME

At the SLIME repl on a remote SWANK, typing: (open "~/ and then hitting TAB This brings up a buffer with auto-completions on my local filesystem. Anyone know how to make it show the files on the remote system? Currently my .emacs looks like…
gaauto
  • 43
  • 2
3
votes
1 answer

Autoindent a .lisp file from the command line and use slimv to do the indenting

I am trying to autoindent a .lisp file from the command line, leveraging vim+slimv to do the indenting. I tried scripting it: vi -c 'call SlimvConnectSwank()' -c 'normal gg=G' -c 'wq' -c 'q!' temp.lisp But the swank server isn't queried to do the…
Clayton Stanley
  • 7,513
  • 9
  • 32
  • 46