-
Notifications
You must be signed in to change notification settings - Fork 175
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
Give a middleware name for pprint so it can be discovered dynamically #198
Conversation
@laurentpetit ping, in case you didn't notice the test failure. |
@expez Thanks. Fixed. |
Could you also please squash the commits? |
@expez sure, I'm being lazy today, will do it the right way, sorry |
Hmm, |
What does the |
Indeed .... In the meantime I can test for another op as a workaround. Le mardi 28 avril 2015, Michael Griffiths notifications@github.com a
Laurent Petit |
@cichli Haven't tested yet the highjacking of the |
We could name the op to make it clear that it describes a transverse feature and not a new op (ok even while writing it I'm not really convinced, bleh). What if we name the op "pprint-middleware" ? |
Ugh, don't know what I was thinking here. Obviously describe just returns the set of available ops, without the name of the descriptor that handles said op. Yeah, I guess a dummy op makes sense here. Otherwise, this functionality was added in 0.9.0, so you could check the value of |
I didn't know about the version check, that's great, thanks. Of course Le mercredi 29 avril 2015, Michael Griffiths notifications@github.com a
Laurent Petit |
If you're ok with a dummy op I can prepare a new version of the PR, along those lines:
Or, if in the future the middleware might also be called like "eval-pprint", then I could already name the op "eval-pprint" and in the description mention that it is not implemented yet, but that would be counter-intuitive I think. |
… via the `describe` op
The last version does what Chas suggested: fixes the location for the |
Give a middleware name for pprint so it can be discovered dynamically
👍 Looks good to me. I hope you also opened that JIRA ticket about middleware discovery in nREPL. :-) |
JIRA ticket open on nrepl: http://dev.clojure.org/jira/browse/NREPL-77 |
works like a charm with CCW, thanks! |
For CCW I make use of the
describe
op to discover available middlewares.The proposed change would enable
pprint
to be discovered like any other middleware.