v0.43.02026-10-15
Welcome to Rascal 0.43.0! The major changes of this release are the removal of annotations and the removal of the std scheme. Additionally, this release includes several bugfixes and improvements to usability, performance, and stability.
These release notes are organized by major topics, and there is a list of merged pull requests and closed issues at the end.
Many, if not most, of the improvements to the Rascal project were both funded and executed by Swat.engineering. Thanks!
The Java-air project was extracted from the Rascal standard library in version 0.41.x already. Please add a dependency to java-air if you want to keep using this functionality.
Find the full release notes here.
Language improvements
* The std scheme to refer to locations in the standard library has been sunsetted. See the separate blog post for details. (https://github.com/usethesource/rascal/pull/2828, https://github.com/usethesource/rascal/pull/2847)
* The scheme and authority of locations are now case-insensitive (normalized to lowercase), as required by the URI RFC. This fixes a few subtle issues when locations were used in combination with some form of RPC (HTTP/JSON/LSP) or case-sensitive file system. (https://github.com/usethesource/rascal/pull/2845, https://github.com/usethesource/rascal/pull/2857, https://github.com/usethesource/rascal/pull/2851, https://github.com/usethesource/rascal/pull/2860, https://github.com/usethesource/rascal/pull/2862)
Parsers (including concrete syntax pattern matchers) can now be run directly for symbols with regular operators, including , +, and ?, without the need to introduce dummy symbols in the grammar. (https://github.com/usethesource/rascal/pull/2809)
* Annotation syntax and semantics have been removed. See blog post. A Quick Fix is available in VS Code to automatically migrate all Rascal code with annotations to equivalent code (keyword fields). (https://github.com/usethesource/rascal/pull/1974, https://github.com/usethesource/rascal/pull/2793)
* The Rascal language now depends on version 1.1.x of Vallang.
* Due to the removal of the std resolver, users will most likely also have to update their library dependencies to the latest release.
* The removal of the std scheme, the removal of annotation support, and the case-insensitivity of scheme/authority are low-impact breaking changes. Migration tools and Quick Fixes in the VS Code extension are provided to streamline the few code changes that might be needed.
* If you have string constants in your own Java code for location schemes or authorities, changing these to all lowercase will help prevent any issues. For example, change String myScheme = "arrayLength"; to String myScheme = "arraylength";, to make sure that myLoc.getScheme().equals(myScheme) still works.
Maven and evaluator improvements
* Rascal tests can now be executed using Maven, without the need to write separate Java classes with the JUnitTestRunner annotation. Test output is reported in language-independent CTRF JSON format. See the Test Mojo. (https://github.com/usethesource/rascal/pull/2755, https://github.com/usethesource/rascal/pull/2840)
* The internals have been updated toward improvements in the VS Code extension to better respect pom.xml. See the separate blog post for details. (https://github.com/usethesource/rascal/pull/2641, https://github.com/usethesource/rascal/pull/2794, https://github.com/usethesource/rascal/pull/2792, https://github.com/usethesource/rascal/pull/2796, https://github.com/usethesource/rascal/pull/2804, https://github.com/usethesource/rascal/pull/2901)
Several other small issues have been fixed/improved. (https://github.com/usethesource/rascal/pull/2843, https://github.com/usethesource/rascal/pull/2877, https://github.com/usethesource/rascal/pull/2854, https://github.com/usethesource/rascal/pull/2913)
Typechecker improvements
* The calculation of use-defs is made more precise. As a result, for instance, Go To Definition for recursive function calls now works as expected in VS Code. (https://github.com/usethesource/rascal/pull/2770, https://github.com/usethesource/rascal/pull/2801, https://github.com/usethesource/rascal/pull/2865)
* The registration of dependencies of calcs/reqs is made more precise. As a result, a few cases when the typechecker accidentally reported type errors no longer exist. (https://github.com/usethesource/rascal/pull/2762)
* The performance of whole-project typechecking has been improved. Depending on the size and number of type errors/warnings of the project, the typechecking time can be reduced by 10%-40%. (https://github.com/usethesource/rascal/pull/2849)
* Several other small issues have been fixed/improved. (https://github.com/usethesource/rascal/pull/2776, https://github.com/usethesource/rascal/pull/2772, https://github.com/usethesource/rascal/pull/2781, https://github.com/usethesource/rascal/pull/2785, https://github.com/usethesource/rascal/pull/2786, https://github.com/usethesource/rascal/pull/2798, https://github.com/usethesource/rascal/pull/2799, https://github.com/usethesource/rascal/pull/2800, https://github.com/usethesource/rascal/pull/2864, https://github.com/usethesource/rascal/pull/2896)
* The Rascal typechecker now depends on version 0.17.x of Typepal.
Standard library improvements
* Formatting: A new formatter for Rascal code has been added in module lang::rascal::format::Rascal. As part of this, the existing box-based formatting framework has been extended with several functions and stability improvements. Furthermore, there are new utility functions to generate and debug box-based formatting pipelines in module util::Formatters, as demonstrated in module lang::pico::format::Formatting. (https://github.com/usethesource/rascal/pull/2738, https://github.com/usethesource/rascal/pull/2872)
* XML parsing: Support for case-sensitive parsing of tags and attributes has been added. (https://github.com/usethesource/rascal/pull/2888)
* Graph visualization: Support for tooltips/hover styles and edge weights has been improved. (https://github.com/usethesource/rascal/pull/2769)
* Reflective: Support to generate a new Rascal project folder and pom.xml has been improved. (https://github.com/usethesource/rascal/pull/2891, https://github.com/usethesource/rascal/pull/2893)
* IO: resolveLocation now always returns the argument location if it cannot be resolved (instead of sometimes throwing a SchemeNotSupported exception).
* Several other small issues have been fixed/improved. (https://github.com/usethesource/rascal/pull/2815, https://github.com/usethesource/rascal/pull/2831, https://github.com/usethesource/rascal/pull/2876, https://github.com/usethesource/rascal/pull/2892)