Repository navigation
Releases
Releases · nikolskiy/tlaup
tlaup 0.9.0
Changed
tlaup --helpand 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.
upgradecompares 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 upgradereplaces the older build and moves the pin. tool listkeeps installed builds next to their upstream release and marks one that has a newer build available.tool listmarks an installed build whose release upstream no longer lists asinstalled, not upstream(waslocal only).rollingis listed first intlaup tool list, then versions by number.module addsays when it replaced a module of the same name; it no longer copies atestfolder.module listshows build times in UTC.- The output of
tlaup tlcis 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 aspath:line:col: error: message(was afile://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.codesandtlaup.tlc.sanyare 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 settingtlc.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, everytlaup tlcreminds you of kept folders, andtlaup cache clean <run-id>or--allremoves 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-generateSpecTEafter--to get them. - Ctrl-C exits with 130.
- Help text rewritten for
tool,moduleandtlc; 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_HOMEis used to findjavaandjavacwhen it is set;PATHis the fallback.- A run starts Java once instead of three times; the Java version check is remembered until the Java installation changes.
tlaup config editreads$VISUALbefore$EDITORand checks the file after editing.
Added
- Each setting can be given as an environment variable
TLAUP_<SECTION>_<KEY>. TLAUP_HOMEmoves all of tlaup's folders;TLAUP_CONFIG_DIR,TLAUP_CACHE_DIRandTLAUP_DATA_DIRmove one each.--debug, andpython -m tlaup.GITHUB_TOKENorGH_TOKENis used for GitHub API requests, which raises the rate limit. The token is sent only toapi.github.com, and to hosts you list intool.token_hosts; it is never printed. Credentials in.netrcare not used.- Versions can be typed without the
v, asstableorrolling, and astag@committo name one build. tlaup tool currentshows the pinned build and its jar without starting Java.tlaup cache dirprints the cache folder;tlaup cache cleanremoves the remembered GitHub lookups and the run folders nothing will resume, and with--allalso kept run folders and the remembered Java check. It never removes installed tools or modules.tlaup tool list --installedlists the installed builds only, with no network.tool.token_hostslists 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.TLCOverridesis loaded. - Arguments after
--are passed to TLC:tlaup tlc Spec -- -deadlock -simulate num=10. --workers N|auto.--java-opt.- tlaup passes
-fpand-seedto 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(andsany,pcal,repl) asks whether to install the stable release or the rolling build, installs it and carries on.--auto-install stable|rollingorTLAUP_AUTO_INSTALLanswers the question for scripts. The spec is checked first, and--show-commandnever asks or installs. - On a terminal
tlaup tlcshows 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 settingtlc.plain, gives plain output on a terminal too. tlaup sany SPECruns the SANY parser and prints its findings aspath: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 SPECruns the PlusCal translator. It rewrites the spec in place and keeps the previous version asSPEC.old, as the translator does. It also writesSPEC.cfg, replacing an existing one without a backup; pass-- -nocfgto keep yours. With-- -label -reportLabelsit prints each label the translator added asSpec.tla:7:3: label Lbl_1 added.tlaup replstarts the TLA+ REPL of the pinned build (rolling builds only).tlaup config set KEY VALUEchanges one setting. It rewrites the config file and does not keep comments.tlaup config pathprints the config file's path;tlaup config get KEYprints one setting.tlaup completion bash|zsh|fishprints 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 namesspec,modules,classesandlibare fixed),tlc.java_class,tlc.overrides_class,tla.community_modules.tla.urls.tags,tla.urls.releasesandtla.urls.per_pageare replaced bytool.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 withtlaup config edit. - Toolsets, custom modules, the run cache and the config file now live in folders named
tlaupinstead oftla(on Linux~/.config/tlaupand~/.cache/tlaup, was~/.config/tlaand~/.cache/tla). Nothing is moved over: runtlaup tool installandtlaup module addagain. The oldtlafolders are not touched and can be deleted. - Installed tools are stored in a new layout with a
build.jsonbeside each jar. They live in the cache'stoolfolder (wastools). Builds installed by earlier versions are not recognised: runtlaup tool installagain. The oldtoolsfolder 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 NAMEwithout a terminal, or with--yes, removes all of them; name one build asNAME@COMMIT. tlaup tool installwith no version asks which build to install (stable or rolling), or takes the answer fromTLAUP_AUTO_INSTALL, and fails without either; it used to install the latest stable release.- With several builds of one tag installed,
tlaup tool path TAGnow fails and lists them (it printed the first). tlaup tools diris nowtlaup tool dirand prints only the folder; usetlaup tool list --installedfor the builds.tlaup tools install -fandtlaup tools uninstall -yare nowtlaup tool install --forceandtlaup tool uninstall --yes.tlaup toolsandtlaup modulesare nowtlaup toolandtlaup 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 addrefuses a folder whose name does not fit (for example one with a space); rename the folder. - Modules are stored in the cache's
modulefolder (wasmodules), each with amodule.json. Modules added by earlier versions are not found: runtlaup module addagain. The oldmodulesfolder can be deleted. module addcompiles a module's Java sources against the TLA+ tools jar and the module's ownlib/*.jaronly. Other registered modules and the jars ofmodule_lib_pathare 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 ownlib/.- 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...