-
-
Notifications
You must be signed in to change notification settings - Fork 652
Update up_and_running.adoc #3563
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
Conversation
If you have a Clojure project in your file system and want CIDER to | ||
launch an nREPL session for it, simply visit a file that belongs to | ||
If you have a Clojure project in your local file system and want CIDER to | ||
launch an local nREPL session for it, simply visit a file that belongs to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the second "local" is kind of redundant here.
Probably we should actually document what "often" means, as I find this a bit unclear. In general it'd be nice to break the remote section into a part about editing files remote with TRAMP and a part about just using |
I thought about this a lot and it is tricky to explain in simple words. It assumes a certain relation between the (TRAMP) connection to a file and the "host" + "port" under which the nREPL The first part nearly always goes well, so knowing the ssh name, CIDER can indeed just run "ssh host-name clojure ...." |
Not sure, how better to express "often".
I think we should indeed re-organize the related docu into "start server" (for which we have now a new command And finally position |
I have to admit I don't use TRAMP and I'm not a big fan of it, so I can't really offer much advise here. This feature was submitted to CIDER by contributors and I accepted it, because I know TRAMP is somewhat popular in the Emacs community. For me CIDER was always mostly a tool for local development, but I guess the rise of containers in recent years changed the meaning of "local development". :-)
Generally, I've tried to follow what SLIME and similar tools were doing - start a server and connect to it by default (I assume some CIDER users have no idea what nREPL is for instance). That's why Perhaps the "Up and Running" should be reduced to a "quickstart" type of page, and most of the content there should be reorganized in a different page dedicated to starting and connecting to nREPL instances? |
Some Docker related tooling (devpod) even makes the notion of "remote" invisible.
CIDER jack-in would fail in this scenario as well, because it would think to launch nREPL "local" (as file names are local), which is wrong.... This was as well my "original" idea for this PR. I think CIDER has overall the needed features for all scenarios, but |
An other way to express the limit of cider-jack-in
I re-started the PR and propose to add a general "important" tag the moment we introduce the jack in command, which mentions its limitation for some remote scenarios. |
mention
local
in the cider-jack-in introductionI think we should a bit more express that
cider-jack-in
works always for "local" situation and "often" for "remote" (but not always, even when setting the configurations CIDER has correctly).