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

[Inspector] Configure truncation limits #694

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

pdbrown
Copy link
Contributor

@pdbrown pdbrown commented Apr 9, 2021

TODO: adjust cider/orchard version when published

The limits after which the inspector truncates collection members are now
configurable. Previously they were hardcoded to 5 and 150 for collection and
atom (non-collection) members.


This continues the work in clojure-emacs/orchard#111 and needs to be updated with the right orchard version number before it can merge.


  • 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)

@bbatsov
Copy link
Member

bbatsov commented Apr 13, 2021

Orchard 0.7 is out. You can update his PR.

@pdbrown pdbrown force-pushed the feature/inspect-display-length branch 2 times, most recently from e6eccef to 6790663 Compare April 13, 2021 17:48
@pdbrown pdbrown force-pushed the feature/inspect-display-length branch from 6790663 to ea7d1f2 Compare April 13, 2021 18:49
project.clj Outdated Show resolved Hide resolved
@bbatsov
Copy link
Member

bbatsov commented Apr 13, 2021

Migth be good idea to rebase on top of master.

The limits after which the inspector truncates collection members are now
configurable. Previously they were hardcoded to 5 and 150 for collection and
atom (non-collection) members.
@pdbrown pdbrown force-pushed the feature/inspect-display-length branch from ea7d1f2 to 63e290e Compare April 13, 2021 19:04
@pdbrown pdbrown marked this pull request as ready for review April 13, 2021 19:04
;; code isn't processed by mranderson and so can't refer to inlined deps
;; including orchard.
;; See also https://github.com/benedekfazekas/mranderson/issues/5
(let [max-len 150 #_(var-get #'orchard.inspect/*max-atom-length*)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One other new change is an attempt to avoid hard-coding orchard's defaults here, but I couldn't get mranderson to munge the test code requires. I gave up after a few stabs at editing project.clj with-profile +test/:source-paths/:test-paths entries, and reverted to hard-coding. I think benedekfazekas/mranderson#5 is related.

@bbatsov bbatsov merged commit 8517048 into clojure-emacs:master Apr 14, 2021
@bbatsov
Copy link
Member

bbatsov commented Apr 14, 2021

Thanks!

@pdbrown pdbrown deleted the feature/inspect-display-length branch February 24, 2022 20:55
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