Working through the hello-world example in "A guided tour of CLIM 2006", I get an error. I think I need to do more CLX setup for MacOS X, but I'm unsure how to proceed. The error is below. Any help would be appreciated.
The value NIL is not of type NUMBER. [Condition of type TYPE-ERROR]
Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [ABORT] Exit debugger, returning to top level.
Backtrace: 0: (CLIM-CLX::PARSE-CLX-SERVER-PATH #<unavailable argument>) 1: (FIND-PORT :SERVER-PATH NIL) 2: (FIND-FRAME-MANAGER) 3: ((SB-PCL::FAST-METHOD RUN-FRAME-TOP-LEVEL :AROUND (APPLICATION-FRAME)) #<unavailable argument> #S(SB-PCL::FAST-METHOD-CALL :FUNCTION #<FUNCTION (SB-PCL::FAST-METHOD RUN-FRAME-TOP-LEVEL #)> :PV-CELL NIL :NEXT-METHOD-CALL NIL :ARG-INFO (1 . T)) #<HELLO-WORLD {1387D819}> NIL) 4: (SB-INT:EVAL-IN-LEXENV (RUN-FRAME-TOP-LEVEL (MAKE-APPLICATION-FRAME (QUOTE HELLO-WORLD)))
"Christopher Johnson" christopher.a.johnson@gmail.com writes:
Working through the hello-world example in "A guided tour of CLIM 2006", I get an error. I think I need to do more CLX setup for MacOS X, but I'm unsure how to proceed. The error is below. Any help would be appreciated. The value NIL is not of type NUMBER. [Condition of type TYPE-ERROR] Restarts: 0: [ABORT-REQUEST] Abort handling SLIME request. 1: [ABORT] Exit debugger, returning to top level. Backtrace: 0: (CLIM-CLX::PARSE-CLX-SERVER-PATH #<unavailable argument>)
You probably don't have a $DISPLAY variable set in your shell / lisp process. Are you running X11.app? If not, that's the first mistake; if so, then either running your lisp or emacs from the xterm (as opposed to Terminal.app) or exporting DISPLAY=0.0 from your shell before starting your lisp should help.
Cheers,
Christophe
Christophe Rhodes csr21@cam.ac.uk writes:
You probably don't have a $DISPLAY variable set in your shell / lisp process. Are you running X11.app? If not, that's the first mistake; if so, then either running your lisp or emacs from the xterm (as opposed to Terminal.app) or exporting DISPLAY=0.0 from your shell before starting your lisp should help.
FWIW, something like the bit below in ~/.MacOSX/environment.plist should also do the trick for running X-stuff from outside an xterm (assuming X11.app is running, of course). Decorate with other environment variables to taste.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>DISPLAY</key> <string>:0.0</string> </dict> </plist>
Cheers,
-- Nikodemus Schemer: "Buddha is small, clean, and serious." Lispnik: "Buddha is big, has hairy armpits, and laughs."
How about putting this up on the McCLIM Cliki for the assistance of future Mac sufferers? [I don't use a Mac, or I'd do it myself; I'd be too afraid of garbling.]
Best, R