-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
added function tap-current-value
to inspector
#167
Conversation
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.
LGTM!
Thanks for this one.
I have always a certain test failing, but already before my change: FAIL in (classpath-resources-test) (classpath_test.clj:91)
Iterating classpath resources returns non-empty lists
[#object[java.net.URL 0x17240340 "file:/mnt/extHDD/sources/orchard/src-spec-alpha-2/src/main/clojure/"] ()]
expected: (seq entry)
actual: (not (seq ()))
|
Got it, need to test via |
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 will add it, but I think we test the clojure.core/tap> function doing that, not the code of cider / orchard.
It can also be understood as "we're tapping the right value" i.e. the integration with tap
is correct.
Will be merging+releasing after one last touch. Great work!
Is there something missing for this PR ? |
Thanks for the ping! Please fix the linting fault (per the CI checks) and I'll look at it again. |
and failing test
done |
@@ -174,7 +176,7 @@ | |||
(defn tap-current-value | |||
"Tap the currently inspected value." | |||
[inspector] | |||
(tap> (:value inspector)) | |||
(maybe-tap> (:value inspector)) |
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 made it a noop on older Clojure
Hey there! Please fix the failing tests so that I can merge this. Cheers - V |
Done, now tests run all all Clojure versions |
Thanks! |
This PR is a pre-requisite to work on clojure-emacs/cider#3311
It adds a new function to the inspector to tap> the current value.
This function would needed to be called in a new operation in the cider-nrepl middleware.