earl-ducaine / cl-garnet

Old, but suprisingly complete toolkit with no dependancies on other non-lisp libraries.
Other
52 stars 9 forks source link

loop compiling scrolling-menu-obj #18

Open parjanya opened 5 years ago

parjanya commented 5 years ago

Tried to (ql:quickload) it but the repl spilled many megabytes of the same line:

Object SCROLLING-MENU-OBJ
WARNING: Font '*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1' not on font path!
  ****   Resorting to Default Font!
WARNING: Font '*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1' not on font path!
  ****   Resorting to Default Font!
WARNING: Font '*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1' not on font path!

A new attempt gave

; Evaluation aborted on #<ASDF/ACTION:CIRCULAR-DEPENDENCY {1004A2BB73}>.

Perhaps this can help?

  3: (SWANK:SIMPLE-BREAK "Interrupt from Emacs")
  4: (SWANK/BACKEND:CHECK-SLIME-INTERRUPTS)
  5: ((FLET SWANK/BACKEND:RECEIVE-IF :IN "/home/edgard/quicklisp/dists/quicklisp/software/slime-v2.23/swank/sbcl.lisp") #<CLOSURE (LAMBDA (SWANK::E) :IN SWANK::WAIT-FOR-EVENT) {1007427FBB}> NIL)
  6: (SWANK::WAIT-FOR-EVENT (:EMACS-PONG 93) NIL)
  7: (SWANK::SEND-TO-EMACS (:WRITE-STRING "*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1' not on font path! ..)
  8: ((LAMBDA NIL :IN STREAM-FINISH-OUTPUT))
  9: ((FLET "WITHOUT-INTERRUPTS-BODY-29" :IN SB-THREAD::CALL-WITH-RECURSIVE-LOCK))
 10: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN SWANK/BACKEND:CALL-WITH-LOCK-HELD) {7F151669BDCB}> #<SB-THREAD:MUTEX "buffer write lock" owner: #<SB-THREA..
 11: ((FLET SWANK/BACKEND:CALL-WITH-LOCK-HELD :IN "/home/edgard/quicklisp/dists/quicklisp/software/slime-v2.23/swank/sbcl.lisp") #<SB-THREAD:MUTEX "buffer write lock" owner: #<SB-THREAD:THREAD "repl-thread..
 12: ((:METHOD STREAM-FINISH-OUTPUT (SWANK/GRAY::SLIME-OUTPUT-STREAM)) #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100242F593}>) [fast-method]
 13: ((LAMBDA NIL :IN STREAM-WRITE-STRING))
 14: ((FLET "WITHOUT-INTERRUPTS-BODY-29" :IN SB-THREAD::CALL-WITH-RECURSIVE-LOCK))
 15: (SB-THREAD::CALL-WITH-RECURSIVE-LOCK #<CLOSURE (FLET SB-THREAD::WITH-RECURSIVE-LOCK-THUNK :IN SWANK/BACKEND:CALL-WITH-LOCK-HELD) {7F151669C01B}> #<SB-THREAD:MUTEX "buffer write lock" owner: #<SB-THREA..
 16: ((FLET SWANK/BACKEND:CALL-WITH-LOCK-HELD :IN "/home/edgard/quicklisp/dists/quicklisp/software/slime-v2.23/swank/sbcl.lisp") #<SB-THREAD:MUTEX "buffer write lock" owner: #<SB-THREAD:THREAD "repl-thread..
 17: ((:METHOD STREAM-WRITE-STRING (SWANK/GRAY::SLIME-OUTPUT-STREAM T)) #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100242F593}> "*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1" 0 48) [fast-method]
 18: (SB-IMPL::%WRITE-STRING "*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1" #<SWANK/GRAY::SLIME-OUTPUT-STREAM {100242F593}> 0 48)
 19: (SB-IMPL::%WRITE-STRING "*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1" #<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-STANDARD-OUTPUT* {10017F81E3}> 0 NIL)
 20: ((LABELS SB-IMPL::HANDLE-IT :IN SB-KERNEL:OUTPUT-OBJECT) #<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-STANDARD-OUTPUT* {10017F81E3}>)
 21: (PRINC "*-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-1" #<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-STANDARD-OUTPUT* {10017F81E3}>)
 22: (GEM::X-FONT-TO-INTERNAL #k<KR-DEBUG:WINDOW-54> #k<GEM:DEFAULT-FONT-FROM-FILE>)
 23: (KR::RE-EVALUATE-FORMULA #k<GARNET-GADGETS::SMALL-FONT> :XFONT #k<KR-DEBUG:F12-1188> <slot :XFONT  value #k<KR-DEBUG:F12-1188>, bits 1024>)
 24: (KR::G-VALUE-FORMULA-VALUE #k<GARNET-GADGETS::SMALL-FONT> :XFONT #k<KR-DEBUG:F12-1188> NIL)
 25: (GEM::X-TEXT-EXTENTS #<unused argument> #k<GARNET-GADGETS::SMALL-FONT> "...")
 26: ((LAMBDA NIL :IN "/home/edgard/garnet/src/opal/text.lisp"))
compufox commented 3 years ago

just a bump on this -- still happening now

parjanya commented 3 years ago

I don’t remember anymore having this problem, but have you tried installing that font, @compufox ?

compufox commented 3 years ago

I installed the font package listed in the README and I also installed microsoft fonts (for the proper 'courier' font) and it still caused this issue.

I'm on manjaro, if that helps

earl-ducaine commented 3 years ago

Hi @compufox!

Thanks for creating an issue and sorry for ignoring you so long. Because Garnet still uses xfonts, font installation continues to be problematic. One thing to try is to restart your xserver, if you haven't. I don't believe the Ubuntu package manager can install xfonts dynamically. Let me know if that doesn't work and I'll investigate this in more detail.

compufox commented 3 years ago

Thanks for the response!

I installed every xfonts package that my distro (manjaro) has and ive rebooted and also restarted the X server and it still runs into this issue.

Edit: I'm running on the latest version of SBCL (2.0.10) and i've got the latest quicklisp distribution listing

earl-ducaine commented 3 years ago

Hi @compufox! One thing I forgot to suggest was to delete the sbcl fasl cache. The standard location for that under Ubuntu is ~/.cache/sbcl-2.0.1.debian-linux-x64 Where sbcl-2.0.1.debian-linux-x64 is the version of SBCL that you're running.

The reason is that Garnet compiles many objects into fasl' files as an optimisation, and if required fonts are missing at compile time the build machinery isn't intelligent enough to recompile them if they become available later, e.g. after being installed by synaptic.

compufox commented 3 years ago

Unfortunately that also doesn't work. It compiles all of the lisp files until it gets stuck looping, searching for the font.

earl-ducaine commented 3 years ago

Hmmmmm... Are you able to you install xfontsel and search for the font it's searching for?

This is a screen shot of searching for the courier medium font Garnet was outputting above. Note, the tool shows the first font that matches the pattern. If nothing matches then the font display in the center is empty.

DeepinScreenshot_select-area_20201125202908

compufox commented 3 years ago

Yeah so it seems that my issue is just that i dont have the font installed.

both xfontsel and xlsfonts dont show it being installed and i cant find it in my distro's repos.

I'll keep looking and see if i can install it, (or change that line in the source)

Sorry for the hassle, and thank you for the help!

defaultxr commented 3 years ago

@compufox I'm not familiar with Manjaro but since it's Arch-based you may be able to get the Courier xfont by installing xorg-fonts-type1. It doesn't come with a fonts.dir so you'll need to create one by doing sudo mkfontdir in the /usr/share/fonts/Type1/ directory. mkfontdir is part of the xorg-mkfontscale package. Once you've generated the fonts.dir you can do xset +fp /usr/share/fonts/Type1 and then xset fp rehash. Then xfontsel should show Courier as an option under "fmly", and with luck Garnet will compile successfully for you as it did for me.

compufox commented 3 years ago

@defaultxr oh my god that worked!!!!

i never would have ever gotten that on my own lol thank you!