Closed
Description
Thank you for the great product. I'll try to resolve on my own, but am an Emacs debugging novice.
Expected behavior
The behavior specified in the wiki.
Actual behavior
In a new lein project, calling cljr-rename-symbol
on x
in the below function:
(defn foo
"I don't do a whole lot."
[x]
(println x "Hello, World!"))
evokes the below error:
cljr--get-valid-filename: Wrong type argument: hash-table-p, (#s(hash-table size 7 test equal rehash-size 1.5 rehash-threshold 0.8125 data (:line-beg 5 :line-end 5 :col-beg 4 :col-end 5 :name "x" :file "/home/../emacs-test/cljr-test/src/cljr_test/core.clj" :match "[x]")) #s(hash-table size 7 test equal rehash-size 1.5 rehash-threshold 0.8125 data (:line-beg 6 :line-end 6 :col-beg 12 :col-end 13 :name "x" :file "/home/../emacs-test/cljr-test/src/cljr_test/core.clj" :match "(println x \"Hello, World!\"))")))
C-c C-k
or re-running cljr-rename-symbol
a second time does not fix the issue.
Steps to reproduce the problem
init.el
:
(require 'package)
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")
(package-initialize)
(require 'clj-refactor)
(defun my-clojure-mode-hook ()
(clj-refactor-mode 1)
(yas-minor-mode 1) ; for adding require/use/import statements
(cljr-add-keybindings-with-prefix "C-c C-m"))
(add-hook 'clojure-mode-hook #'my-clojure-mode-hook)
(custom-set-variables
'(package-selected-packages (quote (clj-refactor cider))))
(custom-set-faces)
Then call lein new cljr_test
and call cljr-rename-symbol
.
Environment & Version information
OpenJDK 8, 11, or 13 all seem to produce the same error.
clj-refactor.el version information
clj-refactor 2.5.0-SNAPSHOT (package:20200221.1329), refactor-nrepl 2.5.0-SNAPSHOT
CIDER version information
CIDER 0.25.0snapshot (package: 20200220.1307), nREPL 0.6.0
Clojure 1.10.0, Java 1.8.0_242
Leiningen or Boot version
Leiningen 2.9.1 on Java 1.8.0_242 OpenJDK 64-Bit Server VM
Emacs version
26.3
Operating system
Arch linux, kernel 5.5.4-arch1-1