Lisp HUG Maillist Archive

IDE not starting up

I have a simple .lispworks that looks like this:

;; ASDF
(load "/Users/joelr/lisp/asdf/asdf")
(push "/Users/joelr/lisp/systems/" asdf:*central-registry*)

;; Slime
(load "~/lisp/slime/swank-loader.lisp")

(mp:initialize-multiprocessing)

(swank::create-swank-server 4005 :spawn #'swank::simple-announce- 
function t)

Running the IDE drops me down into the terminal and does not start  
the IDE itself.

I think initializing multiprocessing interferes with Cocoa startup  
but it's nice to have the bit for starting Slime from within Emacs.  
The best way is probably to figure out the combination of features  
present in IDE vs. saved image and skip Slime in IDE mode.

     Thanks, Joel

--
http://wagerlabs.com/uptick




Re: IDE not starting up

On Aug 10, 2005, at 12:22 AM, Joel Reymont wrote:

> I have a simple .lispworks that looks like this:
>
> ;; ASDF
> (load "/Users/joelr/lisp/asdf/asdf")
> (push "/Users/joelr/lisp/systems/" asdf:*central-registry*)
>
> ;; Slime
> (load "~/lisp/slime/swank-loader.lisp")
>
> (mp:initialize-multiprocessing)
>
> (swank::create-swank-server 4005 :spawn #'swank::simple-announce- 
> function t)
>
> Running the IDE drops me down into the terminal and does not start  
> the IDE itself.
>
> I think initializing multiprocessing interferes with Cocoa startup  
> but it's nice to have the bit for starting Slime from within Emacs.  
> The best way is probably to figure out the combination of features  
> present in IDE vs. saved image and skip Slime in IDE mode.
>
>

I have the following at the end of my .lispworks which seems to do  
the trick in both the IDE / Console cases:

(defun start-swank (&optional screen)
   (declare (ignore screen))
   (swank:create-server))

(define-action "Initialize LispWorks Tools" "Swank Startup" 'start- 
swank :after "Configuration restored")


Starting multiprocessing by hand can be very tricky under Mac OS X  
due to Cocoa's requirement that it run in the main thread...

-greg


Updated at: 2020-12-10 08:51 UTC