-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
xref-find-definitions: Not a Tramp file name #3235
Comments
I believe I have the same issue but with
Emacs version is By removing
For some reason this can't be done for |
This fixed the issue for me: From 825156d87b0f11930773ae3d9e735ff6eb81a2ef Mon Sep 17 00:00:00 2001
From: Andrey Listopadov <andreyorst@gmail.com>
Date: Mon, 8 Aug 2022 12:35:48 +0300
Subject: [PATCH] fix CIDER TRAMP integration
---
cider-common.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cider-common.el b/cider-common.el
index c0e81324..981f4482 100644
--- a/cider-common.el
+++ b/cider-common.el
@@ -263,7 +263,8 @@ otherwise, nil."
(let* ((buffer (or buffer (current-buffer)))
(name (replace-regexp-in-string "^file:" "" name))
(name (concat (cider-tramp-prefix buffer) name)))
- (if (tramp-handle-file-exists-p name)
+ (if (and (tramp-file-name-p name)
+ (tramp-handle-file-exists-p name))
name)))
(defun cider--server-filename (name)
--
2.36.1 |
Awesome, can you open a PR about this? @bbatsov what do you think? |
The proposed fix looks good to me. |
Just FYI: tested the fix today and it works as expected. Thanks again. |
clojure-emacs/cider@b9e1cc26e2af -> clojure-emacs/cider@92c1b6de2080 clojure-emacs/clj-refactor.el@f368c56c8384 -> clojure-emacs/clj-refactor.el@db89b558710d clojure-emacs/clojure-mode@b6f41d74904d -> clojure-emacs/clojure-mode@414157c3e523 emacsmirror/paredit@8330a41e8188 -> emacsmirror/paredit@e4a67f4f23ba - emacs-cider 1.4.1->1.5.0 - clojure-mode 5.15.0->5.15.x - clj-refactor 3.5.3->3.5.6 Ref: clojure-emacs/cider#3235 Close: #6856 Co-authored-by: socksy <socksy@users.noreply.github.com>
Expected behavior
M-.
on a symbol required from another namespace takes me to that name space to check its definition.Actual behavior
M-.
prints the following message:Steps to reproduce the problem
M-x package-initialize
C-c C-x j j
M-.
on function you are using which belongs to a different namespace (e.g., I usedaims/select-by-id
)Environment & Version information
CIDER version information
Lein / Clojure CLI version
Clojure CLI version 1.11.1.1105
Emacs version
GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.16.0) of 2022-08-05
Operating system
Ubuntu 22.04.1 LTS
JDK distribution
OpenJDK 11.0.16
The text was updated successfully, but these errors were encountered: