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
3
votes
2 answers

Java input in Clojure with (read-line) not reading properly in Emacs

Has anyone encountered a problem with emacs on windows and java input ? (read-line) in the REPL does not recognise the delimiter (well thats my guess). Using a vanilla clojure in the box, same issue. Further clarification. Using (read-line) or the…
user112043
  • 31
  • 2
2
votes
0 answers

error using swank with leiningen and elein

I'm using leiningen and elein in linux, when I create my project I add: :dev-dependencies [[swank-clojure "1.2.1"]]) then I call "elein-swank" and perfect...this connects swank and (apparently) slime because the repl opens and I can work with my…
user1050817
  • 915
  • 2
  • 11
  • 21
2
votes
1 answer

A Clojure/Swank `break` exits the enclosing Leiningen process--why?

I was debugging my Clojure program, Infocard Workbench, when I got a truly unexpected error: A (swank.core/break) in a function caused an error to the CLI window that aborted execution, even though the running program, (-main), was called by the…
Gregg Williams
  • 868
  • 1
  • 8
  • 15
2
votes
2 answers

How to get the filename where a function is defined in Common Lisp?

I would like to get the name of the file where a particular function or macro definition was last written, for various documentation & testing purposes? I have posted an answer that works well from me, after the help of PJB on #CommonLisp…
Ashok Khanna
  • 325
  • 2
  • 9
2
votes
2 answers

Why am I not seeing my macro-created functions in the new slime session? (clojure)

In my clojure code, I have a few functions which are created with calls to custom macros. Typically, the macros would take a data structure of some sort and create a method from it. This is a contrived example: (create-function {:name "view-data"…
Pieter Breed
  • 5,579
  • 5
  • 44
  • 60
2
votes
1 answer

How to automate starting up jetty/appengine-magic and swank?

With my Clojure/appengine-magic project, I currently start things up like this: lein repl (doto 'tlog.core require in-ns) (compile 'tlog.core) (ae/start tlog-app) (require 'swank.swank) (swank.swank/start-repl 4005) tlog.core has: (:require…
thorwil
  • 215
  • 3
  • 9
2
votes
3 answers

Can I use swank-clojure with the clojure 1.2 master branch?

I'm happily using swank-clojure, installed via elpa. But I'd like to do some work with deftype, defprotocol, etc., which aren't aren't available in clojure 1.1. To use my own class paths, I'm using the excellent suggestion by Rick Moynihan in the…
Rob Lachlan
  • 14,289
  • 5
  • 49
  • 99
2
votes
1 answer

How to setup classpath for slimv and ritz

I would like to resolve my problem for classpath.Could you tell me how to do? I can do the following. I can eval (+ 1 1) in vim(slimv) by pushing ,e. Then slimv display the followings. user> (+ 1 1) 2 However,I can not do the followings. 1.When I…
prk2
  • 147
  • 2
  • 9
2
votes
1 answer

how to automatically load new dependencies from project.clj in swank

I am working in emacs, swank-clojure. I start my repl using clojure-jack-in. However when I add a new dependency to my project.clj, the dependency is not available in the repl. 1) Is there a way to load new dependencies automatically in swank, when…
murtaza52
  • 46,887
  • 28
  • 84
  • 120
2
votes
0 answers

resetting the swank in emacs

Let me the describe the problem I am having in emacs. I started the swank using the clojure-jack-in. I had to kill it for some reason, and killed swank using M-k (I dont know if there is a better way to shut it down). Then I started inferior-lisp…
murtaza52
  • 46,887
  • 28
  • 84
  • 120
1
vote
1 answer

Getting slime-documentation's output as a string

popup.el's popup-tip is pretty awesome - check it out. I'm trying to get it to display the output of SLIME's display-documentation method, using the current word pointed by the caret as the argument. The problem is that display-documentation doesn't…
deprecated
  • 5,142
  • 3
  • 41
  • 62
1
vote
1 answer

Leakage of java.exe processes

In Emacs + clojure-mode/swank-clojure, when I quit, the java.exe process that was created doesn't get actually killed (as much as I select 'y' when asked for it). What could be the cause?
deprecated
  • 5,142
  • 3
  • 41
  • 62
1
vote
1 answer

How to use project namespace in SLIME REPL

I've installed lein with the swank plugin, Emacs, SLIME, and clojure-mode, and created a new project using lein new. I've called the project clojure-test. I then open clojure_test/src/clojure_test/core.clj in Emacs, and while in this file call M-x…
Corey Staten
  • 545
  • 4
  • 12
1
vote
2 answers

slimv - error connecting to clojure swank server

Tried to get slimv running today, but ran into an issue. These are the steps I went through: Installed clojure 1.3.0: brew update && brew install clojure Setup swank-clojure: lein plugin install swank-clojure 1.3.3 Cloned slimv: hg clone…
devth
  • 2,738
  • 4
  • 31
  • 51
1
vote
1 answer

When using SLIME within Emacs: How do I reset the path to swank-loader.lisp?

After removing a distro installed version of SLIME, my MELPA (stable) installed SLIME version still insists on accessing the old system wide swank-loader.lisp. How do I purge the system and reset the path to swank-loader.lisp
haziz
  • 12,994
  • 16
  • 54
  • 75