Skip to content
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

Change format of forms-str and arglists-str #412

Merged
merged 1 commit into from
Jun 18, 2017

Conversation

xiongtx
Copy link
Member

@xiongtx xiongtx commented Jun 18, 2017

Fixes #411.

forms-str now looks like:

"(.instanceMember instance args*)\n(.instanceMember Classname args*)"

arglists-str now looks like:

"[x]\n[x y]\n[x y z]"

Changes include:

  • No extraneous whitespace
  • Newlines

Previously, the two had inconsistent formats.

arglists-str looked like:

"([x] [x y] [x y z])"

forms-str looked like:

"  [(.instanceMember instance args*)  (.instanceMember Classname args*)]"

Before submitting a PR make sure the following things have been done:

  • The commits are consistent with our contribution guidelines
  • You've added tests to cover your change(s)
  • All tests are passing
  • The new code is not generating reflection warnings
  • You've updated the readme (if adding/changing middleware)

Thanks!

Fixes clojure-emacs#411.

forms-str now looks like:

    "(.instanceMember instance args*)\n(.instanceMember Classname args*)"

arglists-str now looks like:

    "[x]\n[x y]\n[x y z]"

Changes include:

- No extraneous whitespace
- Newlines

Previously, the two had inconsistent formats.

arglists-str looked like:

    "([x] [x y] [x y z])"

forms-str looked like:

    "  [(.instanceMember instance args*)\n  (.instanceMember Classname args*)]"
xiongtx added a commit to xiongtx/cider that referenced this pull request Jun 18, 2017
Depends on clojure-emacs/cider-nrepl#412.

Using the new forms-str and arglists-str formats simplifies code for
`cider-docview-render-info`.
@bbatsov bbatsov merged commit fd65f55 into clojure-emacs:master Jun 18, 2017
@bbatsov
Copy link
Member

bbatsov commented Jun 18, 2017

👍

bbatsov pushed a commit to clojure-emacs/cider that referenced this pull request Jun 18, 2017
Depends on clojure-emacs/cider-nrepl#412.

Using the new forms-str and arglists-str formats simplifies code for
`cider-docview-render-info`.
@xiongtx xiongtx deleted the 411-forms-arglists-str branch June 18, 2017 04:30
@bbatsov
Copy link
Member

bbatsov commented Jun 18, 2017

"[x]\n[x y]\n[x y z]"

It's not a big deal, but it might be even better to return just a vector of all signatures and leave it to the client to join those however they see fit.

@xiongtx
Copy link
Member Author

xiongtx commented Jun 18, 2017

Vector as in Clojure vector? Doesn't everything that's moved b/t cider-nrepl and CIDER have to be a string?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants