Release. Forester 4.1 [00S9]
- June 15, 2024
- Jon Sterling, with contributions from Kento Okura, Trebor Huang, Nick Hu
Special thanks to Kento Okura, Nick Hu, and Trebor Huang for their contributions to this release.
New forester init command [00U0]
- June 15, 2024
- Jon Sterling, with contributions from Kento Okura
To make it easier to set up a new forest, we have added a forester init command; when you run this command in an empty directory, it will initialise a git repository with a submodule for the default theme pinned to the correct release, and a configuration file.
Rendering only a subset of the forest [00WA]
- June 15, 2024
- Jon Sterling
A new option has been added to the forester build command to render only certain trees. For example, the following command will render only the trees at addresses xxx-MMMM and yyy-NNNN:
forester build forest.toml --render-only=xxx-MMMM,yyy-NNNN
Note that in order to maintain a correct graph analysis, the entire forest will nonetheless be evaluated. As rendering is the slowest part of the process, however, this option can still save a lot of time. In the future it could be useful to have a more sophisticated option that renders (e.g.) all children of a given tree, etc.
Changed behaviour of queries [00SP]
- June 15, 2024
- Jon Sterling
Forester’s rudimentary support for queries has been simplified somewhat. Previously, the results of a query would be gathered and, if non-empty, placed underneath an anonymous subtree (whose title could be modified using transclusion options).
In light of the user-level support for anonymous subtrees introduced in Forester 3.1, the behaviour of queries has been simplified: the results of a query are simply transcluded directly without being enclosed in a subtree.
Although the new behaviour is simpler, it is no longer possible to have a query subtree that is hidden when it returns no results. Users should treat the querying feature as highly provisional, and subject to change and even potential removal.
Addresses for anonymous trees [00SQ]
- June 15, 2024
- Jon Sterling
Previously, a subtree could be emitted without any address; this greatly complicated the logic of the graph analysis, designated parents, and other things. Now, emitting an anonymous subtree generates a fresh address in a separate namespace; as a result, these trees get rendered to their own XML file. Naturally, an anonymous subtree cannot be linked to or transcluded, but it can now participate properly in the graph analysis.
Incremental parsing [00SA]
- June 15, 2024
- Jon Sterling, with contributions from Nick Hu
Menhir’s incremental parsing API is adopted in order to make the parser more resiliant to syntax errors. The goal is to support language server protocol diagnostics in a future release.
Dependency audit [00WG]
- June 15, 2024
- Jon Sterling
In recent releases, Forester has become increasingly dependent on various system packages (including openssl) via transitive dependencies. This has caused a great deal of build breakage for both our developers and users, so we decided to remove all but the most critical dependencies to avoid losing control of things. Experimental tools that rely on more system dependencies that are likely to cause build breakage can be created, but only outside the main forester package.