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>
those appear to be reflection warnings in cider-nrepl's deps.
any idea how to resolve them?
they were not appearing before I added extra modes . They started showing up after I added company, projectile, which-key, to my emacs
Sounds strange. Are you using CIDER? we’re you previously? Have you recently set to warn on reflection globally?
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
I installed cider two days ago only. I suppose I am having the latest release
Is it related to Jdk version? I have jdk12 in path
I don’t believe so. Those dependencies use reflection and the warning says so.
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
Orchard doesn’t depend on cider-nrepl. Cider-nrepl depends on orchard
Unless I misread your meaning
oh, that's right 🙂
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
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
It’s also not clear if this just recently popped up or if you recently started using CIDER.
I am returning to clojure after a long time. This is a fresh installation of emacs and cider - just one two days old..
Ok. Then I think everything is fine. There are reflection warnings because there is reflection
But not sure why the warnings are enabled. It’s off by default