-
Notifications
You must be signed in to change notification settings - Fork 11
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
Remove eval'd clojure code in favor of cider's cider-dispatch-complete-symbol #49
Comments
Thanks: this is certainly planned, but will have to wait until I have some time, or until a corresponding pull request comes in. |
I'm willing to do it. The primary motivator is cljs support, which means I have to remove direct references to complete.core. Since there are multiple ac-sources, I think I'd have to switch off the others in the presences of cider's implementation. Do you have any thoughts on that? |
The only real advantage of the multiple sources is that the flavour of the completion candidate is indicated, e.g. with "c" or "v". But it would be a shame to lose that if we could avoid it... do the candidates returned by |
No, but it would be better than nothing in the case that the op is Alternatively, there exists an 'info' op that returns detailed information On Tue, Feb 18, 2014 at 10:31 AM, Steve Purcell [email protected]:
|
Yeah, we probably don't want to do extra backend calls to grab info for the completed symbols. I'd vote in favour of just merging the current multiple sources into one source backed by nrepl's |
@gtrak How recent must |
Maybe an easy compromise is to add a filter param to the 'complete' op. EDIT 4/10/2014: I think I'm going with this. 3 calls is not much worse than 1. |
Cider-nrepl middlewares must be loaded in your project for this to work, On Tuesday, February 18, 2014, Steve Purcell [email protected]
|
autogenerated with https://github.com/MalloZup/doghub: issue inactive since 450 days. Please update the issue or close it |
https://github.com/clojure-emacs/cider/blob/master/cider-interaction.el#L582
This falls back to eval if not present, but will now rely on the presence of the 'complete' nrepl op, which also works with clojurescript repls.
Backend impl is here:
https://github.com/gtrak/cider-nrepl/blob/master/src/cider/nrepl/middleware/complete.clj
Company mode is doing something similar:
https://github.com/clojure-emacs/company-cider/blob/master/company-cider.el#
Seems sensible to me since ac-nrepl's already relying on cider.
The text was updated successfully, but these errors were encountered: