dgrnbrg / vim-redl

A better Vim integration story for Clojure
106 stars 8 forks source link

java.lang.ClassNotFoundException: redl.core #14

Closed noahlz closed 10 years ago

noahlz commented 11 years ago

I updated to latest vim-fireplace in hopes that it would solve #11 the "critical timeout" issue (which is happening on my workstation, not just my crappy laptop, any time I eval something that takes more than 2 - 3 seconds), and now I get this:

java.lang.ClassNotFoundException: redl.core, compiling:(NO_SOURCE_PATH:1:1)
Error detected while processing function redl#repl#create..fireplace#evalparse: line   12:
E605: Exception not caught: Clojure: class clojure.lang.Compiler$CompilerException 

vim-fireplace commit

Willing to troubleshoot this myself, just looking for some hints so I don't go down the wrong path.

noahlz commented 11 years ago

My profiles.clj:

{:user {:dependencies [[spyscope "0.1.3"]
                       [redl "0.1.0"]]
        :injections [(require 'spyscope.core)
                     (require '[redl complete core])]
        :plugins [[lein-pprint "1.1.1"]]}}

What's bizzare is that redl is available in my local REPL but not the one I access via fireplace:

user=> (doc redl.core/break)
-------------------------
redl.core/break
([] [value])
Macro
  Invoke this to drop into a new sub-repl. It will automatically capture
  the locals visible from the place it is invoked. To return from the `break`
  statement, call `continue`. See continue for details on the return value
  of break.
nil
dgrnbrg commented 10 years ago

When you run :pwd in Vim, what directory do you see? There is a bug I'm working on fixing now, in that Redl doesn't work if :pwd isn't a subdirectory of a project directory. I'm not sure I have the vim-fu to fix it.

noahlz commented 10 years ago

Ok, this only occurs on my crappy CentOS 5.4 workstation. Will check Monday.

Personal machine is ubuntu 12.04, works fine there.

noahlz commented 10 years ago

Yeah, this is happening in the root directory of the project.

I am closing this issue, as it is likely a "doesn't work on my machine" thing. If anybody else out there is trying to make fireplace work on CentOS 5.4 / Python 2.7.3 / ruby 1.8.5 / clojure 1.5.1 - by all means, reopen!