You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can't invoke commands which requires file load on the refactor-nrepl side. For example rename symbol.
After some debugging I found that problem is similar to this issue: clojure-emacs/cider#735
And instead of simply slurp filename should be treated by cygpath before.
Actual behavior
Calling rename symbol causes following exception:
cljr--get-error-value: Error in nrepl-refactor: java.io.FileNotFoundException:
\home\tsulej\clojure2d\src\clojure2d\color.clj (System nie może odnaleźć określonej ścieżki <--- can't find path)
at java.io.FileInputStream.open0 (:-2)
java.io.FileInputStream.open (:-1)
java.io.FileInputStream. (:-1)
clojure.java.io$fn__9520.invokeStatic (io.clj:229)
clojure.java.io/fn (io.clj:229)
[...]
nrepl debug shows such messages:
(-->
op "info"
session "ad551abf-8b65-4915-b863-3294ba49434d"
ns "clojure2d.color"
symbol "get-luma3"
id "17"
)
(<--
arglists-str "([c])"
column 1
doc "get luma from color"
file "file:/C:/cygwin64/home/tsulej/clojure2d/src/clojure2d/color...."
id "17"
line 31
name "get-luma3"
ns "clojure2d.color"
session "ad551abf-8b65-4915-b863-3294ba49434d"
status ("done")
)
(-->
op "find-symbol"
prefix-rewriting "true"
debug "false"
ns "clojure2d.color"
dir "/home/tsulej/clojure2d/"
file "/home/tsulej/clojure2d/src/clojure2d/color.clj"
line 31
column 14
name "get-luma3"
ignore-errors nil
session "ad551abf-8b65-4915-b863-3294ba49434d"
id "18"
)
(<--
err "java.io.FileNotFoundException: \home\tsulej\clojure2d\src\cl..."
ex "class java.io.FileNotFoundException"
id "18"
session "ad551abf-8b65-4915-b863-3294ba49434d"
status ("done" "refactor-nrepl-error")
)
Steps to reproduce the problem
Under Cygwin I run startxwin to run X Window System and run Emacs, open file, invoke cider-jack-in or connect to extrenally run REPL. C-c RET r s causes error.
Environment & Version information
clj-refactor.el and refactor-nrepl version information
I see that I mistakenly assigned bug here. Bug should go to the emacs side (clj-refactor). Emacs under Cygwin has native converting functions. Info.
I'll try to make some tests.
Can't invoke commands which requires file load on the refactor-nrepl side. For example
rename symbol
.After some debugging I found that problem is similar to this issue: clojure-emacs/cider#735
And instead of simply
slurp
filename should be treated bycygpath
before.Actual behavior
Calling
rename symbol
causes following exception:nrepl debug shows such messages:
Steps to reproduce the problem
Under Cygwin I run
startxwin
to run X Window System and run Emacs, open file, invokecider-jack-in
or connect to extrenally run REPL.C-c RET r s
causes error.Environment & Version information
clj-refactor.el and refactor-nrepl version information
clj-refactor 2.3.0-SNAPSHOT (package: 20161223.1457), refactor-nrepl 2.3.0-SNAPSHOT
CIDER version information
Leiningen or Boot version
Leiningen 2.7.1 on Java 1.8.0_91 Java HotSpot(TM) 64-Bit Server VM
Emacs version
GNU Emacs 25.1.1 (x86_64-unknown-cygwin, GTK+ Version 3.18.9) of 2016-09-17
Operating system
Windows 10,
CYGWIN_NT-10.0 Dell 2.6.1(0.305/5/3) 2016-12-16 11:55 x86_64 Cygwin
The text was updated successfully, but these errors were encountered: