package "swank-loader" not found

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

package "swank-loader" not found

duncan_bayne
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
[hidden email]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel
Reply | Threaded
Open this post in threaded view
|

Re: package "swank-loader" not found

Dirk Sondermann
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

_______________________________________________
Stumpwm-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/stumpwm-devel