cider-nrepl issue

57 views
Skip to first unread message

Philippe Guillebert

unread,
May 28, 2015, 12:35:41 PM5/28/15
to clojure...@googlegroups.com
Hi

I'm trying the clojure-android stack and so far it's been amazing...and frustrating.

My stack :

Emacs 24.4 with emacs-live (perfectly vanilla) includes CIDER 0.8.1
lein-droid "0.4.0-alpha2"

my project contains :

:dependencies [[org.clojure-android/clojure "1.7.0-alpha6" :use-resources true]
                 [neko/neko "3.2.0"]]

In my profiles.clj :

 :android-user {;; :dependencies [ [cider/cider-nrepl "0.8.2"] ]
                :plugins [
                          [lein-droid "0.4.0-alpha2" :exclusions [org.clojure/clojure]]
                          [cider/cider-nrepl "0.8.1"]
                          ]
                :android {:aot-exclude-ns ["cider.nrepl.middleware.util.java.parser"
                                           "cider.nrepl" "cider-nrepl.plugin"]}}


Everything works well, I can connect to the REPL of my app by connecting to localhost 9999 ;

But, CIDER complains it cannot find cider-nrepl :

; CIDER 0.8.1 (Java 0, Clojure 1.7.0, nREPL nil)
WARNING: The following required nREPL ops are not supported:
apropos classpath complete eldoc info inspect-start inspect-refresh inspect-pop inspect-push inspect-reset macroexpand ns-list ns-vars resource stacktrace toggle-trace-var toggle-trace-ns undef
Please, install (or update) cider-nrepl 0.8.1 and restart CIDER
user>

And a stack is thrown :

java.util.concurrent.ExecutionException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String[] java.lang.String.split(java.lang.String)' on a null object reference
 at java.util.concurrent.FutureTask.report (FutureTask.java:93)
    java.util.concurrent.FutureTask.get (FutureTask.java:163)
    clojure.core$deref_future.invoke (core.clj:2176)
    clojure.core$future_call$reify__6684.deref (core.clj:6657)
    clojure.core$deref.invoke (core.clj:2198)
    user$eval43.invoke (NO_SOURCE_FILE:1)
    clojure.lang.Compiler.eval (Compiler.java:6767)
    clojure.lang.Compiler.eval (Compiler.java:6730)
    clojure.core$eval.invoke (core.clj:3068)
    clojure.main$repl$read_eval_print__7042$fn__7045.invoke (main.clj:244)



The main issue is emacs is unusable as it tries to autocomplete stuff and freezes completely for several seconds every time I type something. So frustrating !

1) Is cider-nrepl expected to work on the device ?
2) if not, do you know how to make emacs usable (maybe disable advanced cider stuff) ?

Thank you

Philippe

Alexander Yakushev

unread,
May 28, 2015, 12:42:18 PM5/28/15
to clojure...@googlegroups.com, philippe....@gmail.com
Someone on IRC had this problem before. Can you try building and running a sample project (from here: https://github.com/clojure-android/lein-droid/tree/master/sample)?

Alexander Yakushev

unread,
May 28, 2015, 12:44:22 PM5/28/15
to clojure...@googlegroups.com, philippe....@gmail.com
CIDER is expected to completely work on Android (except for cider debugger, this part is not supported yet).
Reply all
Reply to author
Forward
0 new messages