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

[2.0] REPL doesn't load clojure.repl automatically #198

Closed
danlucraft opened this issue May 31, 2019 · 3 comments
Closed

[2.0] REPL doesn't load clojure.repl automatically #198

danlucraft opened this issue May 31, 2019 · 3 comments

Comments

@danlucraft
Copy link

When using 2.0 alpha, either with Jack-in or connecting manually, the repl doesn't import clojure.repl symbols into the namespace.

You can do this manually with (use 'clojure.repl) but for best first time use it should do this automatically (at least in the pretty open tab repl – it may not make sense to load it into whatever space is being used for evaluating forms from the editor).

@bbatsov
Copy link
Contributor

bbatsov commented Jun 6, 2019

Actually what Clojure's default REPL does is (clojure.core/apply clojure.core/require clojure.main/repl-requires). After inspecting its code I've also added this in CIDER for whatever the initial REPL ns is. CIDER also has one command to quickly run this code in your current REPL ns (useful when you're switching between namespaces).

PEZ added a commit that referenced this issue Jun 9, 2019
@PEZ
Copy link
Collaborator

PEZ commented Jun 9, 2019

Thanks, @bbatsov!

I just pushed 2.0.7, fixing an ugly jack-in bug, but also including the command: Require REPL utilities, like (doc) etecetera, into current namespace, ctrl+alt+c ctrl+u.

I had to do something slightly different for cljs repls: (use '[cljs.repl :only [apropos dir doc find-doc print-doc pst source]]).

If this checks out for you, @danlucraft, please close this issue.

@danlucraft
Copy link
Author

Nice!

Thanks @PEZ !

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

3 participants