nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
manas_marthi 2020-06-07T20:05:29.107Z

I added projectile to my emacs. I am getting tons of warnings after that. not sure what needs to be changed. can anyone please help

^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.25.0\^"]^" -- repl :headless :host localhost
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/inspect.clj:397:37 - call to static method alength on clojure.lang.RT can't be resolved (argument types: unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/inspect.clj:443:61 - reference to field getClass can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/inspect.clj:443:51 - reference to field getName can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/namespace.clj:57:5 - call to method startsWith can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/cljs/meta.cljc:18:7 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:11:7 - call to method startsWith can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:34:20 - call to method startsWith can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:25:36 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:27:37 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:26:36 - call to method replaceFirst can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:22:19 - call to method isFile can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:36:12 - call to method isDirectory can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java/resource.clj:59:37 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java.clj:48:25 - reference to field canRead can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java.clj:56:28 - reference to field getJarFileURL on java.net.URLConnection can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/java.clj:67:17 - reference to field getJarFileURL on java.net.URLConnection can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/meta.clj:70:22 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/meta.clj:237:36 - reference to field read can't be resolved.
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/meta.clj:244:28 - call to method unread can't be resolved (target class is unknown).
Reflection warning, cider/nrepl/inlined_deps/orchard/v0v5v9/orchard/meta.clj:272:7 - reference to field getPath can't be resolved.
Reflection warning, cider/nrepl/middleware/debug.clj:160:29 - reference to field sym on java.lang.Object can't be resolved.
Reflection warning, cider/nrepl/middleware/debug.clj:160:29 - reference to field sym on java.lang.Object can't be resolved.
user> 

dpsutton 2020-06-07T20:13:30.107500Z

those appear to be reflection warnings in cider-nrepl's deps.

1
manas_marthi 2020-06-07T20:34:16.108Z

any idea how to resolve them?

manas_marthi 2020-06-07T20:35:27.109Z

they were not appearing before I added extra modes . They started showing up after I added company, projectile, which-key, to my emacs

dpsutton 2020-06-07T20:46:12.110Z

Sounds strange. Are you using CIDER? we’re you previously? Have you recently set to warn on reflection globally?

manas_marthi 2020-06-07T20:52:57.112100Z

yes I am using cider. I saw these warnings as soon as I jack in. it started as usual but showed these warnings. Cider start up log: Startup: "c:/Users/admin/AppData/Roaming/npm/lein.bat" update-in :dependencies conj ^"[nrepl \^"0.7.0\^"]^" -- update-in :plugins conj ^"[cider/cider-nrepl \^"0.25.0\^"]^" -- repl :headless :host localhost

manas_marthi 2020-06-07T20:53:39.112600Z

I installed cider two days ago only. I suppose I am having the latest release

manas_marthi 2020-06-07T20:54:01.113Z

Is it related to Jdk version? I have jdk12 in path

dpsutton 2020-06-07T21:10:20.113700Z

I don’t believe so. Those dependencies use reflection and the warning says so.

2020-06-07T21:16:30.114100Z

This may not be relevant, but how about using cider-nrepl 0.25.1 or 0.25.2? orchard 0.5.9 which depends on cider-nrepl 0.25.0 has some problem. https://github.com/clojure-emacs/orchard/issues/91

dpsutton 2020-06-07T21:30:47.114900Z

Orchard doesn’t depend on cider-nrepl. Cider-nrepl depends on orchard

dpsutton 2020-06-07T21:33:08.115200Z

Unless I misread your meaning

2020-06-07T21:34:12.115500Z

oh, that's right 🙂

manas_marthi 2020-06-07T22:16:56.116600Z

not sure how to change it.. I tried adding it in :profiles { :dev {:dependencies [] list . But cider jack in does not recognize this version. It is still taking 0.25.0

dpsutton 2020-06-07T22:29:47.119700Z

Don’t add it to your profiles file. This is something that CIDER injects when starting up. If you update CIDER it will update the version it injects to the latest if you’re not already there. These warnings are not an issue. Reflection warnings let you find slow spots in your code but this is fooling that exists only at dev time

1
dpsutton 2020-06-07T22:30:22.120500Z

It’s also not clear if this just recently popped up or if you recently started using CIDER.

manas_marthi 2020-06-07T23:24:37.120700Z

I am returning to clojure after a long time. This is a fresh installation of emacs and cider - just one two days old..

dpsutton 2020-06-07T23:32:53.121600Z

Ok. Then I think everything is fine. There are reflection warnings because there is reflection

dpsutton 2020-06-07T23:33:07.122200Z

But not sure why the warnings are enabled. It’s off by default