-
Notifications
You must be signed in to change notification settings - Fork 3
Improvements to printing using new infrastructure #593
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
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.
🎉 💰 This will be quite helpful!
display_args.add_argument( | ||
'--no-omit-current-body', | ||
dest='omit_current_body', | ||
default=True, | ||
action='store_false', | ||
help='Display the <currentBody> cell completely.', | ||
) |
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.
Maybe we can modify this (in a later PR) to carry a list of omitted field names (default [ currentBody ]
, can be emptied for full printing or any field can be added). The use site in __main__
would just pass the list (with angle-brackets added) to CTermShow
.
No need to do this now, though.
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.
It could be possible, but making it a list
wouldn't be the way. Using the CTermShow.let(...)
method would be the way, which makes it so instances of CTermShow
are immutable. But it would be nice to be able to dynamically control which cells are omitted...
These are some improvements to printing that we can implement now that we have merged changes upstream runtimeverification/k#4808.
DisplayOpts
to theKMIRAPRNodePrinter
, because why not?<currentBody>
cell by default in TUI and shower, but enables turning it back on with--no-omit-current-body
option to both.SMIRInfo
in theproof_dir
when we have it available inprove-rs
, so that it can be used for printing sourcemap information in the show/view commands (like current function name and span).