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

Auto-refer repl-requires as part of connecting #2154

Closed
PEZ opened this issue Apr 12, 2023 · 0 comments
Closed

Auto-refer repl-requires as part of connecting #2154

PEZ opened this issue Apr 12, 2023 · 0 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Apr 12, 2023

Calva has a command for requiring REPL utilities, or repl-requires as they are named in clojure.main.

However, CIDER and Leiningen do this automatically. In CIDER's case it is configurable. I don't know if it might be with lein repl too.

CIDER does it like so:

(when-let [requires (resolve 'clojure.main/repl-requires)]
  (clojure.core/apply clojure.core/require @requires))

We should consider doing this in Calva too. And think a bit around wether it should be configurable or not. I lean towards not.

cc: @bpringe @bbatsov @Cyrik

@PEZ PEZ changed the title Require REPL requires as part of connecting Auto-refer repl-requires as part of connecting Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant