Skip to content

v0.13.4

Choose a tag to compare

@omaclaren omaclaren released this 03 Nov 03:25
· 5 commits to master since this release

The REPL page bounds each entry's saved files by its turn in the session, and a file's link serves only a version the page showed.

  • Each entry's own turn. Since 0.13.3, a file showed under an entry if it was written while that entry ran, plus 2 seconds. Entries that follow each other quickly could share a file: save plot.png twice in a row and both entries showed the second plot; an entry that only named x.png, followed at once by one that wrote it, showed it too. Now each entry's files are bounded by its turn: from when it was recorded, or when the previous entry finished if that's later, to when the next one started. Turns follow the order entries finished in, since a send can wait for its turn after it's recorded.
  • Links serve only what was shown. A tile's link now serves its file only while it's still a version the page showed. A file replaced since, by anything (a copy that keeps its modification time included), answers 404 until an entry shows it.
  • Limits. Modification times aren't proof of which code wrote a file. A later entry's copy that keeps the original's time (cp -p, shutil.copy2) shows under the entry whose time it carries, and two entries running at once can briefly both show a file they both name.
  • Same REPL page as pi-markdown-preview 0.26.4.