Closed dcookspi closed 3 months ago
I can't seen to add 2 reviewers to this PR.
From today's meeting:
Todo:
Mentioning @rydrman and @jrray for visibility, because I can't seem to add two reviewers. I've compressed the menu to a single line, adding ?
to show the details, c
to continue instead of stepping, and put Ctrl-C
on the list to make it clear that you can still interrupt the solver here.
I made some TODO notes for things that could be done in future, but I'm not planning on doing any of them in this PR. Let me know if you'd rather I make tickets for them.
This adds a very basic interactive menu for inspecting current state the solver has reached, when using
--step/stop-on-block
or--step-on-decision
.It adds methods for showing the current state's resolved packages, unresolved requests, variable requests, options, and showing all of the those when stepping or stopping. I imagine more could be added later, e.g. we have a request to launch an environment of the currently resolved packages. I have a plan to add showing graphs of the current dependencies to this menu (PR: TBD).
The menu doesn't use any other crates and appears among the normal solver output, but doesn't use the output setting the solver has. This was partly for initial implementation ease, partly to keep the existing output intact, and partly because its interactive.
Questions:
console_menu
but didn't like it clearing the screen and jumping back and forth between the existing solver output.Gotchas uncovered:
Example output (updated with single line menu):