-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
Correct namespace prefix for inlined deps #59
Correct namespace prefix for inlined deps #59
Conversation
The required structure for the 'query/var' function is `{:var-query {:ns-query {...}}`. The older implementation did not grab those keywords from the cider message and put them at the correct level. they were left top level and then missed by the `query/namespace` function. In addition to this, there was a bug in orchard which had the wrong prefix for inlined deps so these were not omitted in _2_ places: both in the client-side specification of which namespaces to ignore and orchard's own mechanism to elide cider's internal namespaces. See related: - orchard clojure-emacs/orchard#59 - CIDER
Confluence of bugs in orchard, cider-nrepl, and CIDER. CIDER was using the wrong key to send excluded namespaces. cider-nrepl was not putting this key in the right position for the orchard query. And orchard was not correctly eliding cider.nrepl inlined deps. - orchard: clojure-emacs/orchard#59 - nrepl: clojure-emacs/cider-nrepl#618
The required structure for the 'query/var' function is `{:var-query {:ns-query {...}}`. The older implementation did not grab those keywords from the cider message and put them at the correct level. they were left top level and then missed by the `query/namespace` function. In addition to this, there was a bug in orchard which had the wrong prefix for inlined deps so these were not omitted in _2_ places: both in the client-side specification of which namespaces to ignore and orchard's own mechanism to elide cider's internal namespaces. See related: - orchard clojure-emacs/orchard#59 - CIDER clojure-emacs/cider#2658
The required structure for the 'query/var' function is `{:var-query {:ns-query {...}}`. The older implementation did not grab those keywords from the cider message and put them at the correct level. they were left top level and then missed by the `query/namespace` function. In addition to this, there was a bug in orchard which had the wrong prefix for inlined deps so these were not omitted in _2_ places: both in the client-side specification of which namespaces to ignore and orchard's own mechanism to elide cider's internal namespaces. See related: - orchard clojure-emacs/orchard#59 - CIDER clojure-emacs/cider#2658
Confluence of bugs in orchard, cider-nrepl, and CIDER. CIDER was using the wrong key to send excluded namespaces. cider-nrepl was not putting this key in the right position for the orchard query. And orchard was not correctly eliding cider.nrepl inlined deps. - orchard: clojure-emacs/orchard#59 - nrepl: clojure-emacs/cider-nrepl#618
b00f8f3
to
cc2944d
Compare
src/orchard/xref.clj
Outdated
@@ -47,7 +47,9 @@ | |||
{:added "0.5"} | |||
[var] | |||
(let [var (as-var var) | |||
all-vars (q/vars {:ns-query {:project? true} :private? true}) | |||
all-vars (q/vars {:ns-query {:project? true | |||
:exclude-regexps ["^cider.nrepl.inlined-deps" "^nrepl"]} |
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 we should probably put the list of exclusions in some var that we can just check where this is needed.
I also wonder if it won't better for the query methods to just filter those out automatically.
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.
The q/namespace
function does filter it out. It just had the wrong prefix. This technically isn't needed.
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 reset the branch to just the single commit and force pushed. no longer there.
1c098f0
to
cc2944d
Compare
Thanks! |
Confluence of bugs in orchard, cider-nrepl, and CIDER. CIDER was using the wrong key to send excluded namespaces. cider-nrepl was not putting this key in the right position for the orchard query. And orchard was not correctly eliding cider.nrepl inlined deps. - orchard: clojure-emacs/orchard#59 - nrepl: clojure-emacs/cider-nrepl#618
The required structure for the 'query/var' function is `{:var-query {:ns-query {...}}`. The older implementation did not grab those keywords from the cider message and put them at the correct level. they were left top level and then missed by the `query/namespace` function. In addition to this, there was a bug in orchard which had the wrong prefix for inlined deps so these were not omitted in _2_ places: both in the client-side specification of which namespaces to ignore and orchard's own mechanism to elide cider's internal namespaces. See related: - orchard clojure-emacs/orchard#59 - CIDER clojure-emacs/cider#2658
Before submitting a PR make sure the following things have been done:
Apropos is broken right now and including inlined deps for this reason and another reason that will be patched on cider-nrepl and cider soon.