You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very nice if the Calva REPL automatically (perhaps user-defined behavior in settings) required clojure.repl on startup/jack-in so that doc, find-doc, etc. are available without any user interaction. I miss this from lein repl and other environments.
I was pointed in the direction of the command "Calva: Require Repl Utilities ..." which is bound to ctrl-alt-c + ctrl-u which does make it more convenient, but personally I'd really like it if the functions were "just there" without user interaction.
The text was updated successfully, but these errors were encountered:
@PEZ I was starting to work on this, but I'd like to get your thoughts. Here are mine:
I think what @chamaeleon says above makes sense. It would probably be best to include the repl utilities at startup. Assuming you agree, then which of the following paths do we take?
Require repl utilities at connection of the repl only. This mimics lein repl, where the utilities are available in the user namespace, but if you switch to another namespace you have to require them yourself.
Require repl utilities at connection AND any time the namespace is changed, so that they're available everywhere. And if we do this option, do we just remove the Require Repl Utilities command?
I think I am in favor of option 1 and leaving the Require Repl Utilities command in the extension. This way it at least mimics lein repl, but also gives a convenient way to pull in the utilities elsewhere as we can now.
Require repl utilities at connection of the repl only. This mimics lein repl, where the utilities are available in the user namespace, but if you switch to another namespace you have to require them yourself.
This is what lein does. And Calva too, since some months back.
Require repl utilities at connection AND any time the namespace is changed, so that they're available everywhere. And if we do this option, do we just remove the Require Repl Utilities command?
This risks generating conflicts in namespaces defining names used by the repl utilities.
The Require REPL Utilities command is broken, I think. I'll have a look at it now.
It would be very nice if the Calva REPL automatically (perhaps user-defined behavior in settings) required clojure.repl on startup/jack-in so that doc, find-doc, etc. are available without any user interaction. I miss this from lein repl and other environments.
I was pointed in the direction of the command "Calva: Require Repl Utilities ..." which is bound to ctrl-alt-c + ctrl-u which does make it more convenient, but personally I'd really like it if the functions were "just there" without user interaction.
The text was updated successfully, but these errors were encountered: