libera/#slime - IRC Chatlog
Search
15:32:56
gendl
Hi, apparently it's not possible to create a "compile-bundle" for swank with asdf? `(asdf:operate 'asdf:compile-bundle-op :swank)` does produce a `swank-system.fasl`, but then simply loading this into a freshly started vanilla CL image does not make it possible to do `(swank:create-server :port ...)`
15:35:34
gendl
so in order to initialize swank you pretty much have to use `swank-loader.lisp` is that right?
16:07:25
luis`
Yes. One could argue that's a feature since swank server and slime client are somewhat tied together. But doing a proper ASDF system is a long-standing issue
16:13:17
gendl
I'm trying to make a container image which starts up with a swank listener from the get-go, then one can connect with `M-x slime-connect` from a properly configured emacs (that's my plan anyway)
16:28:31
gendl
so to load just swank, without asdf or Quicklisp, but I know the path to `swank-loader.lisp` what should I do?
18:15:45
gendl
I tried `(swank-loader:init)` but when connecting I get: `Error running timer \`slime-process-available-input\`: (error "Selecting deleted buffer")`
18:21:10
gendl
actually that error is a secondary error. before that is "The lisp connection disappeared unexpectedly"
18:25:11
gendl
Punting and just trying it by loading `start-swank.lisp`at startup time with the whole source code available..
18:59:38
gendl
ok I think I'm getting close! Connection is being made from emacs running in my host thru to swank in the container!
19:00:19
gendl
oh wait that might be my bad -- I think I'm starting the Lisp with that switch set - to exit on error...
19:00:53
gendl
I'll try to be quieter in here as I suspect this channel is more for slime/swank dev than noob support!
19:11:25
gendl
I can confirm that swank sources apparently are necessary for connecting with `slime-connect` but I might play with it and see how all necessary stuff can be built into the saved image and not depend on source code being there at runtime (although there's no real reason not to have the sources available with the built distribution anyway).
19:12:08
gendl
anyway I have a REPL into my image and the debugger is working so I'm a happy camper. Thank you for all your work on Slime/Swank!