Jump to content

start-swank does not work in OM 3


Recommended Posts

Hello!

 

I haven't had any luck in creating connection between OM and Emacs. (start-swank) from OM Listener gives error: "The file #P"OM-SRC:SWAML-LOADER.LISP.NEWEST" does not exist".

If I try (start-swank) with path to a Slime on Quicklisp path (I have both 2.28 and 2.24 versions of Slime, result is the same), compilation starts but gets stuck and must be aborted.

 

Help appreciated

Henry

Link to comment
Share on other sites

  • 2 months later...
  • 10 months later...
  • 4 weeks later...

Dear Janusz,

 

> I need to  check if we can use Emacs with the new Opusmodus (LispWorks).

Any updates on the Emacs/Slime interface for Opusmodus 3?

 

I understand/assume that in order to simplify the Opusmodus interface for most of its users, Opusmodus provides its own IDE with convenient features for things like snippet playback. Indeed, Emacs would be unnecessarily confusing for most of Opusmodus' users.

 

However, for actual Lisp/Opusmodus library development, I personally feel the Opusmodus IDE is currently far less suited than Slime. While there is a debugger already integrated in the Opusmodus IDE (thanks), it is basically only the command line version of the 80s. Also, I have not found any cross referencing support in the Opusmodus IDE (e.g., for jumping to the definition of a function call with a single shortcut). Not sure whether the  Opusmodus listener has some short cuts to go back in its history etc. Perhaps I am missing some things, but Slime is a completely different cattle of fish for developers in contrast of users (of course, only after its learning curve). 

 

Anyway, I understand if you do not have the resources (or if LW does not allow) for Emacs/Slime integration into Opusmodus 3. I just keep using mainly Opusmodus 2 with working Slime in the meantime.

 

Thanks for all your work on Opusmodus! 

Link to comment
Share on other sites

Update: I made some progress with the Emacs/Slime interface for Opusmodus 3, but not yet a fully working solution. Just sharing here an intermediate progress report for those interested. 

 

I found out that I could start the swank server (the Lisp compiler part of Slime) in the following way.

 

1. Install the latest version of Slime (link) where it can be found by ASDF (which is by default the folder ~/common-lisp).

 

2. Execute the following code within Opusmodus (or some file loaded by Opusmodus):

 

(asdf:load-system :swank)
(swank:create-server :dont-close t)

 

There is then no error message any longer, but instead I get the following message.

 

;; Swank started at port: 4005.

 

On the Emacs side, Slime needs to be installed in the usual way (e.g., via a MELPA repository).

 

On the Emacs side then, as before, call M-x slime-connect with the localhost IP 127.0.0.1 and the relevant port (4005 by default).

 

On my particular system, Emacs then somehow gets stalled for a long time, much longer than before when trying to do the same with Opusmodus 2. Emacs is then completely frozen. Anyway, sometimes I already got a working connection between Emacs Slime and Opusmodus 3 now, but not necessarily reproducible. 

 

Anyway, will continue following this up and keep you in the loop if I make further progress. 

 

If anyone else finds out more, I would be grateful!

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use Privacy Policy