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

Use pretty-print formatting inside cider-inspect #3643

Open
MicahElliott opened this issue Apr 17, 2024 · 1 comment
Open

Use pretty-print formatting inside cider-inspect #3643

MicahElliott opened this issue Apr 17, 2024 · 1 comment

Comments

@MicahElliott
Copy link

MicahElliott commented Apr 17, 2024

Is your feature request related to a problem? Please describe.

When stepping through in cider debugger and inspecting nested data, that data gets wrapped instead of ideally being displayed in a pretty-print view (with added newlines and indentation).

Describe the solution you'd like

Display the data using clojure.core.pprint/pprint or something similar.

Describe alternatives you've considered

The workaround now is to visit the inspector window and drill down, sometimes multiple levels. Otherwise, the inspector window often won't even need to be visited.

Additional context

This is how it looks now, pretty ugly/unreadable.

2024-04-17-141207_scrot

@vemv
Copy link
Member

vemv commented Apr 17, 2024

Not sure pretty-print is the answer - the Inspector should be emphasize data, not strings. Also, importantly, a large value should not get in the way of the next k-v entries.

Ideally we'd trim things while not breaking syntax-highlighting.

I think there's already such logic - should be a matter of reviewing it / tweaking it.

Cheers - V

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

No branches or pull requests

2 participants