oakes / Nightlight

An embedded editor for Clojure
https://sekao.net/nightlight/
The Unlicense
788 stars 35 forks source link

REPL Can't find dependencies when using boot #30

Closed hswick closed 7 years ago

hswick commented 7 years ago

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

hswick commented 7 years ago

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

hswick commented 7 years ago

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

oakes commented 7 years ago

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

hswick commented 7 years ago

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 commented 7 years ago

Is there possibly a sample project I could try that reproduces this?

On Wed, May 3, 2017 at 11:56 AM, Harley Swick notifications@github.com wrote:

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)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/oakes/Nightlight/issues/30#issuecomment-298954661, or mute the thread https://github.com/notifications/unsubscribe-auth/AANMUyDJTadR5EYgs7UGypiWuZ9A6wumks5r2KOSgaJpZM4NMzzO .

hswick commented 7 years ago

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

oakes commented 7 years ago

@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.