-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
call cider-docstring--format after checking argument #3722
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.
Looks good to me!
Please remember to add a changelog entry.
Thanks - V
cider-eldoc.el
Outdated
(cider-docstring--trim | ||
(cider-docstring--format | ||
(lax-plist-get eldoc-info "docstring"))))) | ||
(when (lax-plist-get eldoc-info "docstring") |
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.
Please use when-let
, for DRY
Thanks! resolved. |
Thanks to you and everyone involved at Toyokumo for the sponsorship graciously granted. 🤝 |
Thanks for the ongoing OSS development/maintenance. Thanks again! |
@@ -17,6 +17,7 @@ | |||
- [#3719](https://github.com/clojure-emacs/cider/pull/3719): Remove duplicated keybinding. | |||
- Bump the injected `cider-nrepl` to [0.49.1](https://github.com/clojure-emacs/cider-nrepl/blob/master/CHANGELOG.md#0491-2024-06-30). | |||
- Reduces the minimal supported Clojure version to 1.10.0 (from 1.10.3). | |||
- [#3722](https://github.com/clojure-emacs/cider/pull/3722): Call `cider-docstring--format` after checking argument |
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.
That's not the right section of the changelog (1.15.1 was already released). I'll fix the placement myself.
I see below error when write some functions which doesn't have docstring.
cider-docstring--format
cannot call withnil
, so checking argument before function call.Backtrace
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
eldev test
)eldev lint
) which is based onelisp-lint
and includescheckdoc
, check-declare, packaging metadata, indentation, and trailing whitespace checks.Thanks!
If you're just starting out to hack on CIDER you might find this section of its
manual extremely useful.