This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
connect to nreplds:/// URIS from shell using lein nreplds. #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I can not connect to my nreplds:/// URI using
lein repl :connect nreplds:///.....
because your lein-nreplds does not work.When I look at the code, It is not the way the leiningen plugin code should be, so I try to make it myself.
according to docs here https://github.com/technomancy/leiningen/blob/b9dced16d581beaf1657b69ac4d93697e322d83a/doc/PLUGINS.md, it is hard to shadow current repl command. So I create nreplds command to connect to nreplds:/// URIS.
You can run it like
lein nreplds :connect nreplds:///absolute-path-to-unix-domain-socket
I only test it in leiningen version 2.4.2.
what it does is running
leiningen.repl/repl
but skippingleiningen.repl/ensure-port
execution because at my current test environment (leiningen 2.4.2), leiningen requires that host has port. It's just a ugly hack, but I need to make sure that I can make the plugin.I'm still looking a way to make this plugin works on all leiningen version 2>.
What do you think?