I am trying to use James' swank implementation on Debian Linux 5.0 (Lenny). I've been using Gambit 4.4.4 there for a while now with no problems. I'm using the Debian-packaged emacs (22.2.1) and the latest cvs of slime.
I can connect fine to the swank instance and can evaluate valid symbols fine. The problem that I have is that when I enter a symbol that has not been defined, I don't get an error when I press enter. The prompt simply does not come back, and gsi acts like it is still trying to complete the read. With this same setup on my Mac Mini (same versions of slime and gambit) everything works fine.
Interestingly enough, I had the same problems when using Jame's modified version of Marc's simple debugging repl. (I had to make Marc's suggested modifications to the debugging stuff to get the sockets to work at all in Linux, but after that that it worked fine, except for this problem with invalid symbols). OK, well, it probably isn't just invalid symbols, the problem seems to occur any time gsi would normally return an error.
In my testing prior to the SLIME backend, I've had to start up multiple REPLs in case I ever hit enter after a typo :-D
Anyone got any ideas why this is happening under Linux? I'd be more than happy to try out any suggestions to get it to work properly.
Afficher les réponses par date
On Mon, Jan 18, 2010 at 3:52 AM, REPLeffect repleffect@gmail.com wrote:
I can connect fine to the swank instance and can evaluate valid symbols fine. The problem that I have is that when I enter a symbol that has not been defined, I don't get an error when I press enter.
I'm not sure why this is happening. But, we should make sure that everything is setup properly for you to get a REPL at the terminal if an error happened within swank-gambit.
First, get my newest version of swank-gambit:
http://github.com/jlongster/swank-gambit/
I just pushed some changes to the way I'm redirecting output to SLIME. There was a possibility that I was swallowing the REPL that Gambit created when the error occurred.
Second, change the SWANK-DEBUG variable to #t at the top of swank-gambit.scm. This will output messages to the terminal and REPLs should fire up when an error occurs within swank-gambit.
Third, make sure you run swank-gambit with "-:dar" which tells it to create REPLs for any error on all threads. The command should look like:
$ gsi -:dar swank-gambit.scm
Try it with all that. Does a REPL appear at the terminal with an exception? What is the error if so?
- James