clojure-emacs/clj-refactor.el

`cljr-move-form` throw `IllegalAccessError`

FreekPaans opened this issue · 0 comments

Whenever I use cljr-move-form I get a java.lang.IllegalAccessError saying that the moved form cannot be found. The problem seems to be that the def of the moved function is not evaluated in the new namespace, which causes the :refer in the current namespace to fail.

Expected behavior

cljr-move-form works without an error.

Actual behavior

cljr-move-form throws java.lang.IllegalAccessError.

Steps to reproduce the problem

Move a function from one namespace to another.

Environment & Version information

clj-refactor.el version information

clj-refactor 2.4.0, refactor-nrepl 2.4.0

CIDER version information

;; CIDER 0.20.0 (Oslo), nREPL 0.5.3
;; Clojure 1.9.0, Java 1.8.0_202-ea

Leiningen or Boot version

Lein 2.8.3

Emacs version

GNU Emacs 26.1 (build 1, x86_64-apple-darwin14.5.0, NS appkit-1348.17 Version 10.10.5 (Build 14F2511)) of 2018-05-3

Operating system

Mac OS X High Sierre 10.13.1