Skip to content

Releases

tlaup 0.9.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 07:26
d80cb0a

Changed

  • tlaup --help and other commands that need neither the network nor the config start faster.
  • Settings are read in layers: built-in defaults, then the user's config file, then environment variables, then command-line options. A config file is no longer created on first run; a file needs to hold only the settings that differ from the defaults.
  • Unknown keys in the config file give a warning.
  • upgrade compares the installed jar with the published one by SHA-256 where GitHub provides it.
  • The commit shown for a build is read from the jar itself.
  • Unencrypted addresses, and redirects to them, are refused.
  • Installing a newer build of a name that is already installed keeps the older build and leaves the pin where it is; tlaup tool upgrade replaces the older build and moves the pin.
  • tool list keeps installed builds next to their upstream release and marks one that has a newer build available.
  • tool list marks an installed build whose release upstream no longer lists as installed, not upstream (was local only).
  • rolling is listed first in tlaup tool list, then versions by number.
  • module add says when it replaced a module of the same name; it no longer copies a test folder.
  • module list shows build times in UTC.
  • The output of tlaup tlc is reorganised: a header naming the build and Java; the spec's own output; each error with its message and full trace, changed variables marked; SANY and parse errors as path:line:col: error: message (was a file:// link), still followed by the lines of the spec around the error, now with ^ under the columns; a final result line with the meaning of TLC's exit code. Results are on stdout, progress on stderr.
  • The TLC output parser is now the import package tlaup_parse, shipped with tlaup. tlaup.tlc.parser, tlaup.tlc.models, tlaup.tlc.values, tlaup.tlc.codes and tlaup.tlc.sany are gone.
  • When the program reading tlaup's output goes away (tlaup tlc --raw Spec | head), TLC is stopped instead of running on unseen; not on Windows for --raw.
  • Each run has its own run folder, removed when the run ends, however it ends. tlaup tlc --keep (or the setting tlc.keep) keeps it when the run is interrupted or crashes and TLC has written a complete checkpoint; the size and the command to resume are printed, every tlaup tlc reminds you of kept folders, and tlaup cache clean <run-id> or --all removes them. tlaup never removes a kept folder on its own.
  • A first Ctrl-C while TLC is writing a checkpoint waits for the checkpoint to finish, also one typed at the terminal (Linux and macOS, not with --raw); a second stops at once.
  • On rolling builds tlaup passes -noGenerateSpecTE, so TLC no longer writes _TTrace_ files next to the spec. Pass -generateSpecTE after -- to get them.
  • Ctrl-C exits with 130.
  • Help text rewritten for tool, module and tlc; root help is grouped.
  • A run stopped with Ctrl-C is called 'interrupted' everywhere.
  • Error messages name what was searched and the command to run next.
  • Messages have the form error: ..., warning: ..., hint: ... on stderr, without symbols.
  • JAVA_HOME is used to find java and javac when it is set; PATH is the fallback.
  • A run starts Java once instead of three times; the Java version check is remembered until the Java installation changes.
  • tlaup config edit reads $VISUAL before $EDITOR and checks the file after editing.

Added

  • Each setting can be given as an environment variable TLAUP_<SECTION>_<KEY>.
  • TLAUP_HOME moves all of tlaup's folders; TLAUP_CONFIG_DIR, TLAUP_CACHE_DIR and TLAUP_DATA_DIR move one each.
  • --debug, and python -m tlaup.
  • GITHUB_TOKEN or GH_TOKEN is used for GitHub API requests, which raises the rate limit. The token is sent only to api.github.com, and to hosts you list in tool.token_hosts; it is never printed. Credentials in .netrc are not used.
  • Versions can be typed without the v, as stable or rolling, and as tag@commit to name one build.
  • tlaup tool current shows the pinned build and its jar without starting Java.
  • tlaup cache dir prints the cache folder; tlaup cache clean removes the remembered GitHub lookups and the run folders nothing will resume, and with --all also kept run folders and the remembered Java check. It never removes installed tools or modules.
  • tlaup tool list --installed lists the installed builds only, with no network.
  • tool.token_hosts lists extra hosts that may receive the GitHub token.
  • tlaup warns before a run when a registered Java override class will not be loaded by the pinned TLC build. On v1.7.4 only a class named tlc2.overrides.TLCOverrides is loaded.
  • Arguments after -- are passed to TLC: tlaup tlc Spec -- -deadlock -simulate num=10.
  • --workers N|auto.
  • --java-opt.
  • tlaup passes -fp and -seed to TLC when you do not, and repeats them when you resume, so a resumed run warns less and counts correctly.
  • A hint when a spec or cfg name has non-ASCII characters and the locale is not UTF-8, which TLC cannot open.
  • With no tools installed, tlaup tlc (and sany, pcal, repl) asks whether to install the stable release or the rolling build, installs it and carries on. --auto-install stable|rolling or TLAUP_AUTO_INSTALL answers the question for scripts. The spec is checked first, and --show-command never asks or installs.
  • On a terminal tlaup tlc shows a full-screen live view while TLC runs: the build and spec, the current phase and elapsed time, the state-space progress table and the newest output. When the run ends the view closes and the complete result is printed, so it stays in the scrollback. When output is redirected or piped, output is plain as before; --plain, or the setting tlc.plain, gives plain output on a terminal too.
  • tlaup sany SPEC runs the SANY parser and prints its findings as path:line:col: severity: message, each followed by the lines of the spec around it with ^ under the columns. It exits 150 when the spec has errors.
  • tlaup pcal SPEC runs the PlusCal translator. It rewrites the spec in place and keeps the previous version as SPEC.old, as the translator does. It also writes SPEC.cfg, replacing an existing one without a backup; pass -- -nocfg to keep yours. With -- -label -reportLabels it prints each label the translator added as Spec.tla:7:3: label Lbl_1 added.
  • tlaup repl starts the TLA+ REPL of the pinned build (rolling builds only).
  • tlaup config set KEY VALUE changes one setting. It rewrites the config file and does not keep comments.
  • tlaup config path prints the config file's path; tlaup config get KEY prints one setting.
  • tlaup completion bash|zsh|fish prints a shell completion script. Installed versions, module names and config keys are completed. In bash, a build is completed up to its name; the part after @ is typed.

Breaking

  • Config settings removed: workspace.root, workspace.spec_dir, workspace.modules_dir, workspace.classes_dir (the folder names spec, modules, classes and lib are fixed), tlc.java_class, tlc.overrides_class, tla.community_modules. tla.urls.tags, tla.urls.releases and tla.urls.per_page are replaced by tool.repository. A config file that still has them loads with one warning on every command; earlier versions wrote all of them into the file, so delete the file or remove those lines with tlaup config edit.
  • Toolsets, custom modules, the run cache and the config file now live in folders named tlaup instead of tla (on Linux ~/.config/tlaup and ~/.cache/tlaup, was ~/.config/tla and ~/.cache/tla). Nothing is moved over: run tlaup tool install and tlaup module add again. The old tla folders are not touched and can be deleted.
  • Installed tools are stored in a new layout with a build.json beside each jar. They live in the cache's tool folder (was tools). Builds installed by earlier versions are not recognised: run tlaup tool install again. The old tools folder can be deleted.
  • Uninstalling the pinned build clears the pin; it no longer switches to another installed build. Pin one with tlaup tool pin.
  • With several installed builds of one name, tlaup tool uninstall NAME without a terminal, or with --yes, removes all of them; name one build as NAME@COMMIT.
  • tlaup tool install with no version asks which build to install (stable or rolling), or takes the answer from TLAUP_AUTO_INSTALL, and fails without either; it used to install the latest stable release.
  • With several builds of one tag installed, tlaup tool path TAG now fails and lists them (it printed the first).
  • tlaup tools dir is now tlaup tool dir and prints only the folder; use tlaup tool list --installed for the builds.
  • tlaup tools install -f and tlaup tools uninstall -y are now tlaup tool install --force and tlaup tool uninstall --yes.
  • tlaup tools and tlaup modules are now tlaup tool and tlaup module; every subcommand keeps its name.
  • A module name must start with a letter or digit and hold only letters, digits, ., _ and -, at most 64 characters. module add refuses a folder whose name does not fit (for example one with a space); rename the folder.
  • Modules are stored in the cache's module folder (was modules), each with a module.json. Modules added by earlier versions are not found: run tlaup module add again. The old modules folder can be deleted.
  • module add compiles a module's Java sources against the TLA+ tools jar and the module's own lib/*.jar only. Other registered modules and the jars of module_lib_path are no longer on the compile classpath (they still take part in runs); a module that needs a jar to compile puts a copy in its own lib/.
  • Override classes are compiled with -encoding UTF-8 --release 11. A module whose sources use language features or library classes newer than Java 11 no longer compiles; set `java.min...
Read more

v0.8.2

Choose a tag to compare

@github-actions github-actions released this 15 Nov 02:24

Full Changelog: v0.8.1...v0.8.2