[STUMP] package "swank-loader" not found

9 views
Skip to first unread message

Duncan Bayne

unread,
Jun 7, 2012, 6:11:32 AM6/7/12
to stumpwm-devel
Hi All,

I'm trying to get SWANK to run when StumpWM starts. But the following
code in my .stumpwmrc:

(let ((home (sb-unix::posix-getenv "HOME")))
(load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))
(swank-loader:init)
;; ...

... doesn't work. SBCL errors out with 'package "swank-loader" not
found'. However, when I run the above code from a SBCL REPL, it works
just fine.

I'm running SBCL 1.0.54 compiled from source with threading, and
StumpWM 1:20110819.gitca08e08-2 (i.e., the version that comes with
Linux Mint 13).

Does anyone have any suggestions as to what I might be doing wrong?

--
Duncan Bayne
ph: +61 420817082 | web: http://duncan-bayne.github.com/ | skype: duncan_bayne

_______________________________________________
Stumpwm-devel mailing list
Stumpw...@nongnu.org
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel

Dirk Sondermann

unread,
Jun 7, 2012, 5:52:48 PM6/7/12
to stumpw...@nongnu.org
On 06/07/12 12:11, Duncan Bayne wrote:
> Hi All,
>
> I'm trying to get SWANK to run when StumpWM starts. But the following
> code in my .stumpwmrc:
>
> (let ((home (sb-unix::posix-getenv "HOME")))
> (load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))
> (swank-loader:init)
> ;; ...
>
> ... doesn't work. SBCL errors out with 'package "swank-loader" not
> found'. However, when I run the above code from a SBCL REPL, it works
> just fine.
>
> I'm running SBCL 1.0.54 compiled from source with threading, and
> StumpWM 1:20110819.gitca08e08-2 (i.e., the version that comes with
> Linux Mint 13).
>
> Does anyone have any suggestions as to what I might be doing wrong?

You just have to make sure that the swank-loader package is created
early enough. Does the following version work?

(eval-when (:compile-toplevel :load-toplevel :execute)
(let ((home (sb-unix::posix-getenv "HOME")))
(load (concatenate 'string home "/.emacs.d/slime/swank-loader.lisp"))))

(swank-loader:init)

--
Dirk
Reply all
Reply to author
Forward
0 new messages