-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Add optional tap> output to the inspector #3055
Comments
The Clojure part of the inspector lives in Orchard, so it should be updated there.
Same ns is fine.
Probably this should be some no op there. I think we support only Clojure 1.8+. When was it added?
I don't quite get the question. More details please. Sorry for the slow response. I've been traveling a bit lately and I've spent little time in front of a computer. @alexander-yakushev might have something to say about this as well, given he's been working the most on improving the inspector. |
I don't mind the slow response, maintainers have a life, too |
I'd go with a
Fully-qualified names work best.
Well, that depends. I just realized that you're thinking of evaluating the code directly, but so far there's no place where CIDER just evals some code that lives in say |
Would it be possible to have cider watch the var, and automatically display changes in the inspector? For that to work well, the inspector would probably need to keep, and allow navigation through, history. Presumably it could keep history using weak references. |
To not override the default inspector's behavior, to always display the last evaluation result, I think a good way to go about it would be adding a |
Something like this would be fine by me. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
up |
@bsless your code works great as-is. Would you like to create a PR? If not, I can productionize it :) If you have since added new tweaks, please edit your OP reflecting them. Cheers - V Edit: I crowdsourced extra design/impl considerations here https://clojurians.slack.com/archives/C03S1KBA2/p1695754708326079 |
I just integrated this solution over the weekend, and it works great! Thank you very much! I can hardly wait to see this in CIDER! 🎉 |
Hello,
Seems like
tap>
and the inspector can work very well together, and adding such capability takes only a few lines of code.I propose a new interactive function
cider-inspect-tap
which will display an atom updated by a tap added by cider.In the Clojure side, this is all the needed implementation:
In CIDER, a minimal implementation would be
I would happily PR this, but I wanted to start by opening an issue to track discussion instead of having it on Slack, and to ask a few questions regarding design.
tap>
support be handled?requiring-resolve
?These are the most important questions as far as I can see for now.
Let me know what you think and I'll happily start on an implementation.
Cheers
The text was updated successfully, but these errors were encountered: