[Bese-devel] Development/Production Environment

Daniel Salama lists at infoway.net
Sun Aug 6 21:08:06 UTC 2006


I appreciate all your help.

However, I'm starting to get very much frustrated. I've been trying  
to do this but for some reason it still doesn't work. I've searched  
on Google for everything related to Tramp and SLIME and they all  
pretty much point me to the same things, which I've tried but still  
don't work for me.

I have in my .emacs the following:

(require 'tramp)
(require 'slime)
(setq tramp-default-method "scpx")
(defvar *sun-tramp-path* "/scpx:sun.mydomain.net:")
(defvar *current-tramp-path* nil)

(defun connect-to-host (path)
   (setq *current-tramp-path* path)
   (setq slime-translate-from-lisp-filename-function (lambda (f)
                                                       (concat  
*current-tramp-path* f)))
   (setq slime-translate-to-lisp-filename-function (lambda (f)
                                                     (substring f  
(length *current-tramp-path*))))
   (slime-connect "localhost" 4005))

(defun sun-slime ()
   (interactive)
   (connect-to-host *sun-tramp-path*))

I can connect to the remote host via SLIME just fine. I can C-c C-c  
fine as well. However, when I do C-c C-k I keep getting:

The file "/scpx:sun.mydomain.net:/home/dsalama/dev/lisp/ucw-boxset/ 
ucw-boxset/ucw_dev/examples/hello.lisp" does not exist.
    [Condition of type SB-INT:SIMPLE-FILE-ERROR]

Restarts:
   0: [ABORT] Abort SLIME compilation.
   1: [ABORT-REQUEST] Abort handling SLIME request.
   2: [ABORT] Exit debugger, returning to top level.

Backtrace:
   0: (TRUENAME #P"/scpx:sun.mydomain.net:/home/dsalama/dev/lisp/ucw- 
boxset/ucw-boxset/ucw_dev/examples/hello.lisp")
   1: ((FLET SB-C::TRY-WITH-TYPE) #P"/scpx:sun.mydomain.net:/home/ 
dsalama/dev/lisp/ucw-boxset/ucw-boxset/ucw_dev/examples/hello.lisp"  
"lisp" T)
   2: (SB-C::VERIFY-SOURCE-FILE "/scpx:sun.mydomain.net:/home/dsalama/ 
dev/lisp/ucw-boxset/ucw-boxset/ucw_dev/examples/hello.lisp")
   3: (COMPILE-FILE "/scpx:sun.mydomain.net:/home/dsalama/dev/lisp/ 
ucw-boxset/ucw-boxset/ucw_dev/examples/hello.lisp")
   4: ((LAMBDA NIL))
   5: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-COMPILATION-HOOKS  
(T)) #<unused argument> #<unused argument> #<CLOSURE (LAMBDA NIL)  
{C2BD96D}>)
   6: ((SB-PCL::FAST-METHOD SWANK-BACKEND:SWANK-COMPILE-FILE (T T))  
#<unused argument> #<unused argument> "/scpx:sun.mydomain.net:/home/ 
dsalama/dev/lisp/ucw-boxset/ucw-boxset/ucw_dev/examples/hello.lisp" T  
(NIL))
   7: (SWANK::MEASURE-TIME-INTERVAL #<CLOSURE (LAMBDA NIL) {C2BD875}>)
   8: (SWANK::SWANK-COMPILER #<CLOSURE (LAMBDA NIL) {C2BD875}>)
   9: ((LAMBDA NIL))
10: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-SYNTAX-HOOKS (T))  
#<unused argument> #<unused argument> #<CLOSURE (LAMBDA NIL) {C2BD815}>)
11: (SWANK::CALL-WITH-BUFFER-SYNTAX #<CLOSURE (LAMBDA NIL) {C2BD815}>)
12: (SB-INT:EVAL-IN-LEXENV (SWANK:COMPILE-FILE-FOR-EMACS "/ 
scpx:sun.mydomain.net:/home/dsalama/dev/lisp/ucw-boxset/ucw-boxset/ 
ucw_dev/examples/hello.lisp" T) #<NULL-LEXENV>)
13: ((LAMBDA NIL))
14: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T  
T)) #<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK- 
DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL) {C2BD1A5}>)
15: ((LAMBDA NIL))
16: ((SB-PCL::FAST-METHOD SWANK-BACKEND:CALL-WITH-DEBUGGER-HOOK (T  
T)) #<unused argument> #<unused argument> #<FUNCTION SWANK:SWANK- 
DEBUGGER-HOOK> #<FUNCTION (LAMBDA NIL) {BAEB6AD}>)
17: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {DC28AD1}>  
#<CLOSURE (LAMBDA NIL) {C2B9465}>)
18: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {DC28AD1}>  
#<FUNCTION (LAMBDA NIL) {BAEB6AD}>)
19: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {DC28AD1}>)
20: (SWANK::PROCESS-AVAILABLE-INPUT #<SB-SYS:FD-STREAM for "a  
constant string" {DC28361}> #<CLOSURE (LAMBDA NIL) {C2B9455}>)
21: ((FLET SWANK::HANDLER))
22: ((LAMBDA (SWANK-BACKEND::_)) #<unused argument>)
23: (SB-IMPL::SUB-SERVE-EVENT NIL 0)
24: (SB-SYS:WAIT-UNTIL-FD-USABLE 0 :INPUT NIL)
25: (SB-IMPL::REFILL-BUFFER/FD #<SB-SYS:FD-STREAM for "standard  
input" {11BE80F1}>)
26: (SB-IMPL::INPUT-CHAR/UTF-8 #<SB-SYS:FD-STREAM for "standard  
input" {11BE80F1}> NIL #:EOF-OBJECT)
27: (READ-CHAR #<SB-SYS:FD-STREAM for "standard input" {11BE80F1}>  
NIL #:EOF-OBJECT #<unused argument>)
28: (READ-CHAR #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDIN* {90C3741}> NIL  
#:EOF-OBJECT #<unused argument>)
29: (READ-CHAR #<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-STANDARD- 
INPUT* {A93D139}> NIL #:EOF-OBJECT #<unused argument>)
30: (READ-PRESERVING-WHITESPACE #<SYNONYM-STREAM :SYMBOL  
SWANK::*CURRENT-STANDARD-INPUT* {A93D139}> NIL (NIL) T)
31: (READ-PRESERVING-WHITESPACE #<SYNONYM-STREAM :SYMBOL  
SWANK::*CURRENT-STANDARD-INPUT* {A93D139}> NIL (NIL) NIL)
32: (READ #<SYNONYM-STREAM :SYMBOL SWANK::*CURRENT-STANDARD-INPUT*  
{A93D139}> NIL (NIL) NIL)
33: (SB-IMPL::REPL-READ-FORM-FUN #<SYNONYM-STREAM :SYMBOL  
SWANK::*CURRENT-STANDARD-INPUT* {A93D139}> #<SYNONYM-STREAM :SYMBOL  
SWANK::*CURRENT-STANDARD-OUTPUT* {AA2D509}>)
34: (SB-IMPL::REPL-FUN NIL)
35: ((LAMBDA NIL))
36: ((LAMBDA NIL))
37: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA NIL) {C2E3145}>)
38: (SB-IMPL::TOPLEVEL-REPL NIL)
39: (SB-IMPL::TOPLEVEL-INIT)
40: ((LABELS SB-IMPL::RESTART-LISP))

If it helps, I'm using Carbon Emacs for OS X (latest version), which  
includes tramp, as well as the latest CVS version of SLIME.

Also, why does Tramp keep asking me for a password for every request?  
Isn't it supposed to cache passwords for the session?

Thanks,
Daniel

On Aug 2, 2006, at 6:29 PM, Vladimir Sekissov wrote:

>
> lists> Now, onto the next problem with Slime. I can't C-c C-k.  
> Whenever I do
> lists> that, the lisp debugger comes up saying that I'm trying to  
> load an
> lists> invalid file:
>
> Customize SLIME-FILENAME-TRANSLATIONS Emacs variable.
>
>> From documentation:
>
> Alist of mappings between machine names and filename
> translation functions. Each element is of the
> form (HOSTNAME-REGEXP TO-LISP FROM-LISP).
> ...
>
> Best Regards,
> Vladimir Sekissov




More information about the bese-devel mailing list