lem
lem copied to clipboard
Fix crash in documentation-describe-bindings on launch
Even with an empty init.lisp
, I just get this:
After some time, more is visible for whatever reason, but it is never filled:
This is not due to describe-bindings, this causes the same faulty behavior:
(let ((buffer (lem-documentation-mode/internal:generate-buffer "scratch")))
(lem:switch-to-buffer buffer))
Thank you for the report. I've fixed this error just now.
Thanks, works!
I think we have an another issue here. If I use (load-theme "zenburn")
now, this works. But when I use (load-theme "emacs-light")
, it crashes and shows this:
Because the theme does not set the base0d
value, it crashes. Any idea how to approach is? I think the base
attributes then need to be mandatory?
I noticed this when creating a custom theme not based on (define-base16-color-theme)
like this:
(define-color-theme "dima" ()
(:display-background-mode :dark)
(:foreground "#bbc2cf")
;; ...
(syntax-variable-attribute :foreground "#bbc2cf" :background "#232525")
(syntax-type-attribute :foreground "#cc7832" :background "#232525")
(syntax-builtin-attribute :foreground "#a782bb":background "#232525"))
<INFO> [21:40:31] lem-sdl2 main.lisp (call-with-debug) - The value
:base0d
is not of type
sequence
Backtrace for: #<SB-THREAD:THREAD "editor" RUNNING {10010C00E3}>
0: (LENGTH :BASE0D)
1: (LEM-CORE:PARSE-COLOR :BASE0D)
2: (LEM-SDL2::RENDER-FILL-TEXT #<SDL2-FFI:SDL-TEXTURE {#X600001ACE7F0}> "next-line" 3 3 :ATTRIBUTE #<LEM-CORE:ATTRIBUTE (#1= #1#) underline {1006332F63}>)
3: ((FLET "WITHOUT-INTERRUPTS-BODY-11" :IN SB-THREAD::CALL-WITH-RECURSIVE-LOCK))
4: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK #<FUNCTION (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN LEM-SDL2::CALL-WITH-RENDERER) {1D7BF01B}> #<SB-THREAD:MUTEX "lem-sdl2 display mutex" owner: #<SB-THREAD:THREAD "editor" RUNNING {10010C00E3}>> T NIL)
5: (LEM-SDL2::CALL-WITH-RENDERER #<FUNCTION (LAMBDA NIL :IN LEM-INTERFACE:PRINT) {100636562B}>)
6: (LEM-SDL2::CALL-WITH-DEBUG #<FUNCTION (LAMBDA NIL :IN LEM-INTERFACE:PRINT) {10063655AB}> #<FUNCTION (LAMBDA NIL :IN LEM-INTERFACE:PRINT) {10063655EB}>)
...
Yes, indeed. emacs-dark and emacs-light are not able to set the base color value. I was going to remove these themes, but they are still there.
Seems to be fixed.