Repository navigation
reload: a reload that went through is a toast, not a transcript line (7.196.0, to-human 0.4.0) - #306
Merged
Merged
Conversation
…(7.196.0, to-human 0.4.0) The reload mod told a successful /reload-plugins as its `$.ui.log` transcript line, and the to-human view kept that line out of its report with a `ui.log` hook that sent it to the debug log while the report folded. A transcript line is a system row the engine draws through no render hook: once one is written (while the full transcript showed, or when the hook missed it) no view can fold it again, and every resume draws it once more. This machine's transcripts since to-human 0.3.2: 39 of 164 autoreloads wrote the line, 25 of them in sessions whose report was folding; an isolated live session reproduced none of those. A reload whose output says no more than `Reloaded: …` now reaches the person as a toast, which the debug log also keeps, and leaves no row. One that says more (load errors, an unreachable marketplace, an update not applied) stays the plugin's transcript line, in both views. The to-human view's `ui.log` hook goes, with its tests; the live reload-rows check now expects no notice row and the toast on screen. Sminos-Session: doperpowers-8d#d6cb5bd0 (doperpowers on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A successful autoreload (
/reload-pluginswhose output is the singleReloaded: …line) now reaches the person as a toast instead of the reload mod's$.ui.logtranscript line. Any other output (load errors, an unreachable marketplace, an update not applied) stays a transcript line. The to-human view'sui.loghook, which routed the success line to the debug log while the report folded, is removed.Why
A
$.ui.logtranscript line is stored as a system row that the engine draws through no render hook. Once one is written (while the full transcript showed, or when the view's hook missed it), no view can fold it again, and every resume draws it once more. Since to-human 0.3.2, 39 of the 164 autoreloads in this machine's transcripts wrote the line, 25 of them in sessions whose report was folding. An isolated live session reproduced none of those 25: the hook diverted the line on every kind of reload (another plugin, to-human, doperpowers, sminos).Verified
tests/mods/run-mods-tests.sh,to-human/tests/mods/run.sh,tests/mods/typecheck.shtests/mods/live-reload-rows-check.py --variant after: 10/10 (no notice row, the toast on screen, nothing of the reload in the next request)prependPluginsas on the machine): toast on probe, to-human and doperpowers updates, no/reload-plugins:row in the transcript, the report unchangedSminos-Session: doperpowers-8d#d6cb5bd0 (doperpowers on macbook)