Closed ghost closed 4 years ago
I'm not at all familiar with WSL2, but these might be two things to try:
to check if CEPL really is the culprit here, with
(ql:quickload :sdl2/examples)
(sdl2-examples:basic-test)
by making a .swank.lisp
file in your $HOME
directory containing:
(setf *communication-style* nil)
before starting SLIME.
By the way, could you post the value of *features*
when running SBCL under WSL2?
Noticed
https://github.com/cbaggers/cepl.sdl2/blob/6da5a030db5e3579c5a1c5350b1ffb8fc9950e9a/cepl.sdl2.lisp#L177-L180
1. So yeah, cepl is not the problem :) it has to do with sdl2 and slime emacs somehow -- because again, in sbcl repl from command line everything works just fine. So I'm closing the issue 🙈
2. Yes, I had tried that before with no success 😢
3. 👇
(:QUICKLISP :SB-BSD-SOCKETS-ADDRINFO :ASDF3.3 :ASDF3.2 :ASDF3.1 :ASDF3 :ASDF2
:ASDF :OS-UNIX :NON-BASE-CHARS-EXIST-P :ASDF-UNICODE :X86-64 :64-BIT :ANSI-CL
:COMMON-LISP :ELF :GENCGC :IEEE-FLOATING-POINT :LINUX :LITTLE-ENDIAN
:PACKAGE-LOCAL-NICKNAMES :SB-CORE-COMPRESSION :SB-LDB :SB-PACKAGE-LOCKS
:SB-THREAD :SB-UNICODE :SBCL :UNIX)
Btw I've just tried calling sbcl from eshell and then loading the sdl2 examples: the same error appears (with bits of information added). It definitely has to be something with emacs-the-process being already displayed in the X server and -- I don't know, I will try stuff.
So I am closing because this is not related to cepl's workings, but I will post as soon as I get to somewhere. Thanks for your time!
Update: I was using Spacemacs, the problem is non-existent in 'vanilla' Emacs. I've noticed that the problem solves by resetting the .spacemacs.env
file/it might be that when (unrelated) errors arise during a spacemacs startup configuration this file is left in some inconsistent state, leading to problems as soon as spacemacs needs to look up the environment variables. This is only a mild guess though. I am not comfortable enough with spacemacs to say why it happens; what I know is that the issue is reproducible by causing configuration errors (mistyped layer names for example). To get it working again quit emacs, remove the file and start emacs again (with the proper configuration files).
Hitting
(cepl:repl)
in slime yields (after a bit of hanging...):However in plain SBCL repl (from the command line) everything works as expected -- the cepl repl is working and the small empty initial window appears!