Lawrence Bottorff | 9 Feb 18:50
Picon
Gravatar

Newbie problem: Slime won't start.. . .

I've got this error when I M-x slime for the first time:


 LOAD: A file with name
      /usr/share/common-lisp/source/slime/swank-loader.lisp does not exist

I'm on Ubuntu 11.10 and have clisp installed through/as an Ubuntu package; otherwise, I'm using your latest (slime-2012-02-09). Any ideas what I've done wrong?


Antony | 8 Feb 20:40
Picon
Gravatar

slime and dumping

Hi

I have just begun experimenting with dumping
(simplified by using the clob lib at 
http://www.lrde.epita.fr/~didier/software/lisp/clon.php)

I have run into one issue.
I load slime (even if I don't start a swank server)
do a dump
execute the dump
try to start slime

I get an error saying
 > Error: #<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED #x30200050C08D> is closed
 > While executing: CCL::STREAM-IS-CLOSED, in process toplevel(3).
 > Type :POP to abort, :R for a list of available restarts.
 > Type :? for other options.
1 > :b
  (7F767E05CAA8) : 0 (STREAM-IS-CLOSED #<BASIC-CHARACTER-OUTPUT-STREAM 
:CLOSED #x30200050C08D>) 45
  (7F767E05CAC0) : 1 (FUNCALL #'#<#<CCL::STANDARD-KERNEL-METHOD 
STREAM-WRITE-CHAR (CCL::BASIC-CHARACTER-OUTPUT-STREAM T)>> 
#<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED #x30200050C08D> #\Newline) 53
  (7F767E05CAE0) : 2 (FUNCALL #'#<#<CCL::STANDARD-KERNEL-METHOD 
STREAM-FRESH-LINE (CCL::CHARACTER-OUTPUT-STREAM)>> 
#<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED #x30200050C08D>) 69
  (7F767E05CAF8) : 3 (FUNCALL #'#<CCL::FORMAT-&> 
#<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED #x30200050C08D> NIL NIL NIL) 229
  (7F767E05CB40) : 4 (SUB-FORMAT #<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED 
#x30200050C08D> 1 33) 2349
  (7F767E05CBE8) : 5 (DO-SUB-FORMAT #<BASIC-CHARACTER-OUTPUT-STREAM 
:CLOSED #x30200050C08D>) 157
  (7F767E05CC08) : 6 (FORMAT #<BASIC-CHARACTER-OUTPUT-STREAM :CLOSED 
#x30200050C08D> "~&;; Swank started at port: ~D.~%" 4005) 1845
  (7F767E05CD10) : 7 (SIMPLE-ANNOUNCE-FUNCTION 4005) 109
  (7F767E05CD28) : 8 (SETUP-SERVER 4005 #<Compiled-function 
SWANK::SIMPLE-ANNOUNCE-FUNCTION #x300000F2656F> :SPAWN T "utf-8-unix") 277
...

I have found a solution by writing code as below
(defun start-slime ()
   (when (and swank:*log-output* (not (open-stream-p swank:*log-output*)))
     (setf swank:*log-output* nil)
     (swank::init-log-output))
   (swank:create-server :port 4005  :dont-close t :coding-system 
"utf-8-unix"))

I am wondering what is the right way to do this or how do people do this.
Basic requirement is be able to dump my whole app including slime code 
and then load up the dumped executable and be able to start slime as 
part of the app execution. The above code does allow me to do this (I 
think). But I haven't yet tried what else can go wrong (like when 
debugger is invoked etc)
What is the usual thing people do for this situation

-Antony

Helmut Eller | 8 Feb 11:44

Daily ChangeLog diff

Index: slime/ChangeLog
diff -u slime/ChangeLog:1.2293 slime/ChangeLog:1.2294
--- slime/ChangeLog:1.2293	Fri Jan  6 01:02:43 2012
+++ slime/ChangeLog	Tue Feb  7 07:48:15 2012
@@ -1,3 +1,8 @@
+2012-02-07  Martin Simmons (martin <at> lispworks.com>
+
+	* swank-lispworks.lisp (dspec-file-position): Fall back to regexp
+	search if dspec-stream-position gets an error.
+
 2012-01-06  Helmut Eller  <heller <at> common-lisp.net>

 	Add a "sentinel thread" to protect access to global lists.

Andrew Myers | 7 Feb 16:24
Picon
Gravatar

Multiple inspector windows?

Is there a way to open multiple inspector windows simultaneously?  For instance, if I'm inspecting an object and I want to have the object and one of it's components open in two different windows is this possible?
Thanks,
Andrew

Mark H. David | 6 Feb 18:52

Not using Slime's debugger 2

I'd also would sometimes like to not use Slime's debugger. The
doc here

  http://common-lisp.net/project/slime/doc/html/Other-configurables.html

seems to be trying to say how to do it, but I cannot get it to
work. It says

  SWANK:*GLOBAL-DEBUGGER*
    When true (the default) this causes *DEBUGGER-HOOK* to be
    globally set to SWANK:SWANK-DEBUGGER-HOOK and thus for SLIME
    to handle all debugging in the Lisp image. This is for
    debugging multithreaded and callback-driven applications.

But when I tried putting

  (setq swank:*global-debugger* nil)

in my ~/.swank.lisp file, there seemed to be no effect: errors
still invoked SLDB in its own buffer, and the built-in debugger
was not invoked.

What am I missing? 

Thanks,

Mark

Teemu Likonen | 5 Feb 19:38
Picon
Picon
Favicon

Not using Slime's debugger

Hi,

I want to use my own debugger function. Normally I do this by setting a
custom function designator to cl:*debugger-hook*. With Slime I can't do
this automatically because swank sets it to #'swank:swank-debugger-hook.

The Slime manual says that ~/.swank.lisp can be used for setting
swank:*global-debugger* to nil. Even if I do this, cl:*debugger-hook* is
still set to swank's function.

Is there a way to set custom debugger automatically with Slime? Mostly I
use SBCL.

Marco Antoniotti | 1 Feb 14:16
Picon

ELS 2012, Zadar, Croatia

Apologies for the multiple postings. 

PAPER SUBMISSION DEADLINE EXTENDED 

European Lisp Symposium 2012, Zadar, Croatia, April 30th - May 1st, 2012 

http://european-lisp-symposium.org 

The purpose of the European Lisp Symposium is to provide a forum for 
the discussion and dissemination of all aspects of design, 
implementation and application of any of the Lisp and Lisp-inspired 
dialects, including Common Lisp, Scheme, Emacs Lisp, AutoLisp, ISLISP, 
Dylan, Clojure, ACL2, ECMAScript, Racket, SKILL, and so on. We 
encourage everyone interested in Lisp to participate. 

The main theme of the 2012 European Lisp Conference is 
"Interoperability: Systems, Libraries, Workflows".  Lisp based and 
functional-languages based systems have grown a variety of solutions 
to become more and more integrated with the wider world of Information 
and Communication Technologies in current use.  There are several 
dimensions to the scope of the solutions proposed, ranging from 
"embedding" of interpreters in C-based systems, to the development of 
abstractions levels that facilitate the expression of complex context 
dependent tasks, to the construction of exchange formats handling 
libraries, to the construction of theorem-provers for the "Semantic 
Web".  The European Lisp Symposium 2012 solicits the submission of 
papers with this specific theme in mind, alongside the more 
traditional tracks which have appeared in the past editions. 

We invite submissions in the following forms: 

Papers: Technical papers of up to 15 pages that describe original 
results or explain known ideas in new and elegant ways. 

Demonstrations: Abstracts of up to 4 pages for demonstrations of 
tools, libraries, and applications. 

Tutorials: Abstracts of up to 4 pages for in-depth presentations about 
topics of special interest for at least 90 minutes and up to 180 
minutes. 

Lightning talks: Abstracts of up to one page for talks to last for no 
more than 5 minutes. 

All submissions should be formatted following the ACM SIGS guidelines 
and include ACM classification categories and terms. For more 
information on the submission guidelines and the ACM keywords, see: 
http://www.acm.org/sigs/publications/proceedings-templates and 
http://www.acm.org/about/class/1998. 

Important dates: 

February 15th 2012: submission deadline (extended deadline) 
March 7th 2012: acceptance results 

April 30th 2012: Conference opens 

Program Commitee. 
Chair: 
Marco Antoniotti, Università degli Studi di Milano Bicocca, Milan, ITALY 

Local organizers: 
Damir Cavar, Eastern Michigan University 
Franjo Pehar, University of Zadar 
Damir Kero, University of Zadar 

Members: 
Giuseppe Attardi, Università degli Studi di Pisa, Pisa, ITALY 
Pascal Costanza, Intel, Bruxelles, BELGIUM 
Marc Feeley, Université de Montreal, Montreal, CANADA 
Scott McKay, Google, U.S.A. 
Kent Pitman, U.S.A. 
Christophe Rhodes, Department of Computing, Goldsmiths, University of London, London, UNITED KINGDOM 
Robert Strandh, LABRI, Université de Bordeaux, Bordaux, FRANCE 
Didier Verna, EPITA / LRDE, FRANCE 
Taiichi Yuasa, Kyoto University, JAPAN

--
Marco Antoniotti

F D | 1 Feb 09:01
Picon
Gravatar

(no subject)

Hello,

I would like to use slime as a debugger for an application created from lispworks.
Does anyone already do that but with a password protection?
To use the debugger (or any other slime), one will have to enter a password to be connected to the application.
 I don't want to open a port on this application without any protection.

Many Thanks

Fabien
Lynn Quam | 27 Jan 02:02
Favicon

slime-mrepl buffer modes

What can be done so that *slime-mrepl* buffers can have the same functionality as the standard *slime-repl* buffer.  In particular it would be nice if the inspector could be invoked forms in that buffer.  

For now, I can use *slime-scratch*.
Marco Antoniotti | 23 Jan 12:55
Picon

ELS2012 Zadar, Croatia, Call for Papers


Apologies for the multiple postings...

===========================================================================

European Lisp Symposium 2012, Zadar, Croatia, April 30th - May 1st, 2012
http://european-lisp-symposium.org

The purpose of the European Lisp Symposium is to provide a forum for
the discussion and dissemination of all aspects of design,
implementation and application of any of the Lisp and Lisp-inspired
dialects, including Common Lisp, Scheme, Emacs Lisp, AutoLisp, ISLISP,
Dylan, Clojure, ACL2, ECMAScript, Racket, SKILL, and so on. We
encourage everyone interested in Lisp to participate.

The main theme of the 2012 European Lisp Conference is
"Interoperabilty: Systems, Libraries, Workflows".  Lisp based and
functional-languages based systems have grown a variety of solutions
to become more and more integrated with the wider world of Information
and Communication Technologies in current use.  There are several
dimensions to the scope of the solutions proposed, ranging from
"embedding" of interpreters in C-based systems, to the development of
abstractions levels that facilitate the expression of complex context
dependent tasks, to the construction of exchange formats handling
libraries, to the construction of theorem-provers for the "Semantic
Web".  The European Lisp Symposium 2012 solicits the submission of
papers with this specific theme in mind, alongside the more
traditional tracks which have appeared in the past editions.

We invite submissions in the following forms:

Papers: Technical papers of up to 15 pages that describe original
results or explain known ideas in new and elegant ways.

Demonstrations: Abstracts of up to 4 pages for demonstrations of
tools, libraries, and applications.

Tutorials: Abstracts of up to 4 pages for in-depth presentations about
topics of special interest for at least 90 minutes and up to 180
minutes.

Lightning talks: Abstracts of up to one page for talks to last for no
more than 5 minutes.

All submissions should be formatted following the ACM SIGS guidelines
and include ACM classification categories and terms. For more
information on the submission guidelines and the ACM keywords, see:
http://www.acm.org/sigs/publications/proceedings-templates and
http://www.acm.org/about/class/1998.

Important dates:

Jan 31st 2012: submission deadline
Feb 21st 2012: acceptance results

April 30th, 2012 Conference opens

Program Commitee.
Chair:
Marco Antoniotti, Università degli Studi di Milano Bicocca, Milan, ITALY

Local organizers:
Damir Ćavar, Eastern Michigan University
Franjo Pehar, University of Zadar
Damir Kero, University of Zadar

Members:
Giuseppe Attardi, Università degli Studi di Pisa, Pisa, ITALY
Pascal Costanza, Intel, Bruxelles, BELGIUM
Marc Feeley, Université de Montreal, Montreal, CANADA
Scott McKay, Google, U.S.A.
Kent Pitman, U.S.A.
Christophe Rhodes, Department of Computing, Goldsmiths, University of London, London, UNITED KINGDOM
Robert Strandh, LABRI, Université de Bordeaux, Bordaux, FRANCE
Didier Verna, EPITA / LRDE, FRANCE
Taiichi Yuasa, Kyoto University, JAPAN

_______________________________________________
slime-devel site list
slime-devel <at> common-lisp.net
http://common-lisp.net/mailman/listinfo/slime-devel
Timo Mihaljov | 19 Jan 23:27
Gravatar

Winner-mode doesn't work with SLIME

I'm having trouble restoring my window configuration after SLIME changes
it. I use winner-mode, but for some reason winner-undo doesn't work for
the changes that SLIME makes. The following screenshots demonstrate the
problem.

1. http://i.imgur.com/2EoKK.png

This is my initial window configuration. I've entered a bit of invalid
source code ("asdf") into a Common Lisp file to get SLIME to pop up an
error window upon compilation.

2. http://i.imgur.com/EB8JT.png

This is the window configuration after C-c C-k'ing the invalid source
code. As expected, SLIME has popped up an error window.

3. http://i.imgur.com/T3TrJ.png

This is the window configuration after calling winner-undo. I'd expect
it to match the initial window configuration, but instead the pop up
window stays up and shows a random buffer.

4. http://i.imgur.com/qp6cn.png

For some reason calling winner-redo restored the initial window
configuration. This is the result that I expected when calling
winner-undo. However, it's not always the undo-redo combination that
restores the original window configuration, e.g. sometimes I have to
undo twice to get the windows back the way they were.

I use winner-mode all the time, and it only has trouble with the changes
that SLIME makes, which suggests that there's something peculiar about
the way that SLIME shows its pop ups. Is there something that can be
done to make SLIME work the way winner-mode expects (which seems to be
the way the rest of Emacs works)?

--

-- 
Timo


Gmane