luis changed the topic of #slime to: SLIME, the Superior Lisp Interaction Mode for Emacs | https://common-lisp.net/project/slime | https://irclog.tymoon.eu/freenode/%23slime | https://irclog.whitequark.org/slime
moldybits has joined #slime
hdasch has quit [Read error: Connection reset by peer]
hdasch has joined #slime
fiddlerwoaroof has quit [Quit: Gone.]
fiddlerwoaroof has joined #slime
malm has joined #slime
scymtym has quit [Ping timeout: 268 seconds]
makomo has joined #slime
frgo has quit [Remote host closed the connection]
frgo has joined #slime
scymtym has joined #slime
makomo has quit [Quit: WeeChat 2.4]
scymtym has quit [Ping timeout: 245 seconds]
vms14 has joined #slime
<vms14> can someone tell me why sometimes slime fails to give me the slime-repl and gets stuck with the inferior lisp repl?
<vms14> it's like is expecting a response from sbcl but does never receive it
<vms14> I remember something like pipelined something swank eval
<vms14> this happens only in NetBSD or sometimes fails in linux or alike?
<vms14> when it fails I just use swank with sbcl, type slime-connect in emacs and it works fine
<vms14> it happens sometimes, but I don't know the cause
<vms14> GNU Emacs 26.2
<vms14> SLIME 2.24
<vms14> (setq inferior-lisp-program "/usr/pkg/bin/sbcl")
<vms14> (require 'slime-autoloads)
<vms14> (setq slime-contribs '(slime-fancy))
makomo has joined #slime
vms14 has quit [Ping timeout: 240 seconds]
vms14 has joined #slime
scymtym has joined #slime
vms14 has quit [Remote host closed the connection]
vms14 has joined #slime
<vms14> this is what I get
<vms14> isn't able to give me the slime repl, only the inferior one
<vms14> why is happening?
luis has joined #slime
<luis> vms14: did you (setq slime-contribs '(slime-fancy))?
<vms14> luis yes
<vms14> I have running it sometimes
<vms14> sometimes I just type M-x slime and works
<vms14> but others fail so I need to start sbcl and load swank, then type slime-connect
<vms14> I'm curious about why it happens, and it seems to be an unknown bug for users, so idk if it's related with NetBSD, a bug that only happens here for some reason, or other users had this problem
<vms14> note in netbsd sbcl has no thread support
<vms14> so could be the reason it fails
<vms14> but sometimes work, so idk
<luis> vms14: at the beginning of the *inferior-lisp* buffer, you can see the commands that should have triggered the connection to Emacs/SLIME
<luis> vms14: perhaps if you sprinkle some print debugging it'll yield some sort of clue
<vms14> I'll try to invest
<vms14> it fails at random, now I try to reproduce the bug by typing M-x slime and worked
<luis> vms14: the non-sb-threads paths are most likely poorly tested :(
<vms14> I'd like to have thread support in sbcl with netbsd
<luis> vms14: out of curiosity, you could try to add (setq swank:*communication-style* nil) to your ~/.swank.lisp
<vms14> luis what will do?
<vms14> I've put it in the .emacs.el, I see no difference, slime started normally
<luis> vms14: it doesn't do anything in .emacs.el since it's common lisp code.
<vms14> oh lo
<vms14> lol
<vms14> xD
<vms14> it compiled something
<luis> vms14: it enables a simpler communication style which won't let you evaluate SLIME requests while another event is being processed and things like that, but if it launches reliably it might be an indication that SLIME's fd-handler code is at fault or your SBCL's fd-handler support is at fault.
<luis> After you add that to ~/.swank.lisp, you need to start SLIME again.
<vms14> luis I did
<vms14> I added that in the emacs.d/elpa/slime-2.24/swank.lisp
<vms14> started emacs and slime and saw some compilation stuff I've never seen before, so it did something
<luis> ~/.swank.lisp would have been better.
<vms14> /home/vms/.slime/fasl/2.24/sbcl-1.4.3-no-threads-unix-x86-64/contrib/swank-hyperdoc.fasl written
<vms14> and so on
<vms14> so this will prevent the bug?
<luis> No, it just might give us a clue whether the bug is specific to the :fd-handler communication-style
<luis> Well, it might prevent the bug, I don't know. :-)
<luis> I'm off to bed. Long day. 👋
<vms14> slime works with this, since it's a bug that happens at random I'll let this on the swank.lisp file
<vms14> thanks luis gn
<luis> vms14: like I said, it's best to add that bit to ~/.swank.lisp (/home/vms/.swank.lisp). Next time you update SLIME, that local change you made to slime-2.24/swank.lisp will go away.
<vms14> thanks for the hint
makomo has quit [Ping timeout: 265 seconds]
vms14 has quit [Remote host closed the connection]