Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't assume that introspection utils are already available in the REPL server #32

Closed
cemerick opened this issue Mar 15, 2012 · 3 comments

Comments

@cemerick
Copy link
Contributor

With the addition of a :connect option to lein repl, connecting to an nREPL server started by other means (e.g. by a running application, counterclockwise, whatever) results in this error upon connecting:

FileNotFoundException Could not locate complete/core__init.class or complete/core.clj on classpath:   clojure.lang.RT.load (RT.java:430)

The REPL remains usable, but obviously without completion and other introspection utils. Ideally, reply should check to see if the necessary namespaces are available immediately upon connecting; if not, load them and proceed.

@trptcolin
Copy link
Owner

Ah, interesting, that seems like a nice solution.

@technomancy and I were talking yesterday about some profiles-based options to avoid stuff like this with the clojuredocs/clj-http dependencies in projects with conflicting versions - I wonder if this has potential to be a path towards removing that issue as well...

@trptcolin
Copy link
Owner

@cemerick What was the project you mentioned awhile back that sends the namespaces over the wire to load them up? Was it CCW? Swank?

For the time being, we'll just no-op completion attempts when complete.core isn't available.

@trptcolin
Copy link
Owner

I'm going to close this and open a new one as a feature to figure out throwing the whole complete.core ns across.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants