java.lang.ClassNotFoundException: complete.core

153 views
Skip to first unread message

David Kincaid

unread,
Nov 13, 2013, 4:06:15 PM11/13/13
to nrep...@googlegroups.com
Anyone know where the following error is coming from? I'm getting it both in my *cider* buffer and in a clojure-mode buffer. It must have something to do with auto-complete, but I'm not sure where to look.


java.lang.ClassNotFoundException: complete.core
 at java.net.URLClassLoader$1.run (URLClassLoader.java:366)
    java.net.URLClassLoader$1.run (URLClassLoader.java:355)
    java.security.AccessController.doPrivileged (AccessController.java:-2)
    java.net.URLClassLoader.findClass (URLClassLoader.java:354)
    clojure.lang.DynamicClassLoader.findClass (DynamicClassLoader.java:61)
    java.lang.ClassLoader.loadClass (ClassLoader.java:424)
    java.lang.ClassLoader.loadClass (ClassLoader.java:357)
    java.lang.Class.forName0 (Class.java:-2)
    java.lang.Class.forName (Class.java:270)
    clojure.lang.RT.classForName (RT.java:2070)
    clojure.lang.Compiler$HostExpr.maybeClass (Compiler.java:969)
    clojure.lang.Compiler$HostExpr.access$400 (Compiler.java:747)
    clojure.lang.Compiler.macroexpand1 (Compiler.java:6499)
    clojure.lang.Compiler.macroexpand (Compiler.java:6529)
    clojure.lang.Compiler.eval (Compiler.java:6603)
    clojure.lang.Compiler.eval (Compiler.java:6582)
    clojure.core$eval.invoke (core.clj:2852)
    clojure.main$repl$read_eval_print__6588$fn__6591.invoke (main.clj:259)
    clojure.main$repl$read_eval_print__6588.invoke (main.clj:259)
    clojure.main$repl$fn__6597.invoke (main.clj:277)
    clojure.main$repl.doInvoke (main.clj:277)
    clojure.lang.RestFn.invoke (RestFn.java:1096)
    clojure.tools.nrepl.middleware.interruptible_eval$evaluate$fn__606.invoke (interruptible_eval.clj:56)
    clojure.lang.AFn.applyToHelper (AFn.java:159)
    clojure.lang.AFn.applyTo (AFn.java:151)
    clojure.core$apply.invoke (core.clj:617)
    clojure.core$with_bindings_STAR_.doInvoke (core.clj:1788)
    clojure.lang.RestFn.invoke (RestFn.java:425)
    clojure.tools.nrepl.middleware.interruptible_eval$evaluate.invoke (interruptible_eval.clj:41)
    clojure.tools.nrepl.middleware.interruptible_eval$interruptible_eval$fn__647$fn__650.invoke (interruptible_eval.clj:171)
    clojure.core$comp$fn__4154.invoke (core.clj:2330)
    clojure.tools.nrepl.middleware.interruptible_eval$run_next$fn__640.invoke (interruptible_eval.clj:138)
    clojure.lang.AFn.run (AFn.java:24)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1145)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
    java.lang.Thread.run (Thread.java:724)

Neale Swinnerton

unread,
Nov 13, 2013, 4:51:28 PM11/13/13
to nrep...@googlegroups.com
I've never got to the bottom of why this is needed, but adding:

[clojure-complete "0.2.3"]

to :dependencies in ${HOME}/.lein/profiles.clj

should fix it.

Neale Swinnerton
{t: @sw1nn, w: sw1nn.com }


--
 
---
You received this message because you are subscribed to the Google Groups "nrepl-el" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nrepl-el+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

David Kincaid

unread,
Nov 13, 2013, 5:12:49 PM11/13/13
to nrep...@googlegroups.com
Thanks. I'll give that a try. Hopefully it will fix it when I launch nREPL from Leiningen. Will that also fix it for the case where nREPL isn't being launched by Leiningen?

David Kincaid

unread,
Nov 13, 2013, 5:26:59 PM11/13/13
to nrep...@googlegroups.com
Thanks! That did fix it for the repl launched by cider-jack-in, but it's still broken when I just use cider to connect to an already running nREPL that I started in a different project using ant. That ant task is just running:

(require '[clojure.tools.nrepl.server :as nrepl]) (defonce server (nrepl/start-server :port ${nrepl.port}))

Any ideas? This was working previously in nrepl.el for sure.

Thanks,

Dave

Phillip Lord

unread,
Nov 14, 2013, 8:22:01 AM11/14/13
to nrep...@googlegroups.com

I get what looks like the same problem routinely, and in the same
circumstances -- when nREPL has be launched externally. I get different
errors under different circumstances and not always. It's normally
things like "pst" and "source" which cannot be loaded which are part of
clojure.core.

I think there is a race condition going on somewhere -- maybe loading
hasn't finished happening.

No idea how to fix it; the bug is intermittent.

Phil

David Kincaid <kincai...@gmail.com> writes:

> Thanks! That did fix it for the repl launched by cider-jack-in, but it's
> still broken when I just use cider to connect to an already running nREPL
> that I started in a different project using ant. That ant task is just
> running:
>
> (require '[clojure.tools.nrepl.server :as nrepl]) (defonce server
> (nrepl/start-server :port ${nrepl.port}))
>
> Any ideas? This was working previously in nrepl.el for sure.
>
> Thanks,
>
> Dave
>
> On Wednesday, November 13, 2013 4:12:49 PM UTC-6, David Kincaid wrote:
>>
>> Thanks. I'll give that a try. Hopefully it will fix it when I launch nREPL
>> from Leiningen. Will that also fix it for the case where nREPL isn't being
>> launched by Leiningen?
>>
>> On Wednesday, November 13, 2013 3:51:28 PM UTC-6, Neale Swinnerton wrote:
>>>
>>> I've never got to the bottom of why this is needed, but adding:
>>>
>>> [clojure-complete "0.2.3"]
>>>
>>> to :dependencies in ${HOME}/.lein/profiles.clj
>>>
>>> should fix it.
>>>
>>> *Neale Swinnerton*
>>> {t: @sw1nn <https://twitter.com/#!/sw1nn>, w: sw1nn.com }
--
Phillip Lord, Phone: +44 (0) 191 222 7827
Lecturer in Bioinformatics, Email: philli...@newcastle.ac.uk
School of Computing Science, http://homepages.cs.ncl.ac.uk/phillip.lord
Room 914 Claremont Tower, skype: russet_apples
Newcastle University, twitter: phillord
NE1 7RU

David Kincaid

unread,
Nov 14, 2013, 8:33:09 AM11/14/13
to nrep...@googlegroups.com
Thanks, Phillip. At least I know it's not just something I'm doing wrong. I'll create a Github issue.

Dave
Reply all
Reply to author
Forward
0 new messages