Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

REPL Can't find dependencies when using boot #30

Closed
hswick opened this issue May 1, 2017 · 7 comments
Closed

REPL Can't find dependencies when using boot #30

hswick opened this issue May 1, 2017 · 7 comments

Comments

@hswick
Copy link

hswick commented May 1, 2017

Trying to use REPL in a pure boot project and am finding that the dependencies are not on the classpath

@hswick
Copy link
Author

hswick commented May 3, 2017

Tried similar project with lein and had same problem. Feel like I'm doing something wrong :/

@hswick hswick closed this as completed May 3, 2017
@hswick hswick reopened this May 3, 2017
@hswick
Copy link
Author

hswick commented May 3, 2017

Found that this error happens intermittently. Sometimes correct behavior sometimes not, even if nothing changed.

@oakes
Copy link
Owner

oakes commented May 3, 2017

Have you used require in the REPL to bring them in?

@hswick
Copy link
Author

hswick commented May 3, 2017

So I required all of my dependencies individually and found that I'm having trouble with this one.

(require '[clj-http.client :as client])

I am able to require it in boot repl with no problem.

It gives this error when running in instarepl:
java.lang.Exception: namespace 'clj-http.client' not found, compiling:(NO_SOURCE_PATH:0:0)

@oakes
Copy link
Owner

oakes commented May 3, 2017 via email

@hswick
Copy link
Author

hswick commented May 3, 2017

You can view the repo itself there isn't much there
https://github.com/hswick/import-export

@oakes
Copy link
Owner

oakes commented May 5, 2017

@hswick Please check out the pull request I sent to that repo. You need to require your namespace (import-export.core) in your build.boot, that way it'll be there when nightlight runs. I also changed that ns to require everything inside the ns form as is typical. If you still notice problems please let me know.

@oakes oakes closed this as completed May 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants