-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix errors by slime-export-symbol on slime-tramp environment #451
base: master
Are you sure you want to change the base?
fix errors by slime-export-symbol on slime-tramp environment #451
Conversation
…symbol on slime-tramp
…e-location requires lisp-filename, not Emacs filename
Sorry I am very late for posting a detailed bug report. This pull request fixes I found it on Allegro CL. In Allegro CL, To reproduce this problem on SBCL, please comment out the (defun slime-goto-package-source-definition (package)
"Tries to find the DEFPACKAGE form of `package'. If found,
places the cursor at the start of the DEFPACKAGE form."
(cl-labels ((try (location)
(when (slime-location-p location)
(slime-goto-source-location location)
t)))
(or ; (try (slime-find-package-definition-rpc package)) ; comment out this.
(try (slime-find-package-definition-regexp package))
(try (let ((package-file (slime-find-possible-package-file
(buffer-file-name))))
(when package-file
(with-current-buffer (find-file-noselect package-file t)
(slime-find-package-definition-regexp package)))))
(error "Couldn't find source definition of package: %s" package)))) slime-tramp settings for reproducing problemsI use these settings about slime-tramp. (use-package slime
:config
(add-to-list 'slime-contribs 'slime-fancy)
(add-to-list 'slime-contribs 'slime-tramp)
(add-to-list 'slime-contribs 'slime-xref-browser))
(eval-after-load 'slime-tramp
'(progn
(add-to-list 'slime-filename-translations
(slime-create-filename-translator
:remote-host "home-xubuntu"
;; I got below by evaluating `(cl:machine-instance)' by SBCL in the 'home-xubuntu' host.
:machine-instance "y2q-PC-VK17HBBCD"
:username "y2q")))) and use this ssh config:
I placed some files on the 'home-xubuntu' host:
(in-package :cl-user)
(defpackage :foo
(:use :cl)
(:export
)) and (in-package :foo)
(defun bar ()
(format t "~&Hello, World!~%")) After that, I called About Commit e09c504I tried
I saw backtraces and tried to trace some functions (attached as trace-1.txt).
Commit e09c504 tries to fix this by:
About Commit d0d9f0cAfter applied commit e09c504, I tried
I tried to trace some functions again (attached as trace-2.txt ). At a glance of In this example:
Commit d0d9f0c tries to fix this by using a lisp-filename on With commit e09c504 and d0d9f0c, Again, I am so sorry for reporting so late. |
This pull request tries to fix errors by
slime-export-symbol
on slime-tramp environment.tramp-error: Not a Tramp file name: ...
error.down-list: Scan error: "Unbalanced parentheses", 1, 1
error.other commits changes some words.