Fork me on GitHub
#nrepl
<
2020-06-07
>
manas_marthi20:06:29

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> 

dpsutton20:06:30

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

4
manas_marthi20:06:16

any idea how to resolve them?

manas_marthi20:06:27

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

dpsutton20:06:12

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

manas_marthi20:06:57

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_marthi20:06:39

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

manas_marthi20:06:01

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

dpsutton21:06:20

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

uochan21:06:30

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

dpsutton21:06:47

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

dpsutton21:06:08

Unless I misread your meaning

uochan21:06:12

oh, that's right 🙂

manas_marthi22:06:56

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

dpsutton22:06:47

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

4
manas_marthi23:06:37

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

dpsutton23:06:53

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

dpsutton23:06:07

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

dpsutton22:06:22

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