-
Notifications
You must be signed in to change notification settings - Fork 177
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
Fix the debugger in case of a local shadows a var #847
Conversation
Nice fix, thanks much! I will merge it. First, please:
Cheers - V |
1ebf3b2
to
f44560b
Compare
@@ -570,9 +572,8 @@ this map (identified by a key), and will `dissoc` it afterwards."} | |||
`irrelevant-return-value-forms`." | |||
[&env form] | |||
(or (and (symbol? form) | |||
(not (contains? &env form)) |
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.
(not (contains? &env form))
is handled inside (resolve &env form)
f44560b
to
5c7dc31
Compare
The changes look good to me. @vemv did you by any chance forgot to revisit this PR? |
@darkleaf have you been testing out this changes locally in the meantime? |
Yes |
Awesome - thank you! PR LGTM after addressing @bbatsov 's feedback |
5c7dc31
to
f375986
Compare
CHANGELOG.md
Outdated
@@ -2,6 +2,10 @@ | |||
|
|||
## master (unreleased) | |||
|
|||
## Bugs fixed | |||
|
|||
* `middleware.debug`: use `resolve` with `&env` to fix debugging in case of a local shadows a var. |
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.
* `middleware.debug`: use `resolve` with `&env` to fix debugging in case of a local shadows a var. | |
* [#846](https://github.com/clojure-emacs/cider-nrepl/issues/846): `middleware.debug`: use `resolve` with `&env`, preventing exceptions if a local shadows a var. |
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've added link to the PR. Thanks.
But there were no exceptions, just a local shadowing.
f375986
to
ba11704
Compare
Thanks much! There should be a release within the next few days. |
Fixes #846
Before submitting a PR make sure the following things have been done:
cider.nrepl
ns which has all middleware documentation.lein docs
afterwards, and commit the results.Note: If you're just starting out to hack on
cider-nrepl
you might findnREPL's documentation and the
"Design" section of the README extremely useful.*
Thanks!
resolve
have an extra arity for&env
looks-step-innable?
for backwards compatibility