|
| 1 | +# Version 4.1 Release Notes |
| 2 | + |
| 3 | +Link version 4.1 is distributed with Dyalog APL version 20.0 and is supported with version 19.0. |
| 4 | +You can select documentation for other versions of Link using the dropdown in the title bar. |
| 5 | + |
| 6 | +Apart from these release notes and minor corrections to the documentation, the documentation for version 4.1 |
| 7 | +is identical to 4.0. Version 4.1 is primarily a bug fix release. A couple of significant groups of |
| 8 | +fixes are discussed below, |
| 9 | +and the [version 4.1 milestone on GitHub](https://github.com/Dyalog/link/milestone/5?closed=1) documents the full |
| 10 | +set of issues that are resolved by version 4.1. |
| 11 | + |
| 12 | +In addition to fixes, Link 4.1 recognises a new environment setting `ALWAYSREFORMAT`, |
| 13 | +which turns on automatic reformatting of all source code as it is written to source files. |
| 14 | +The following values are accepted: |
| 15 | + |
| 16 | +* ALWAYSREFORMAT=0: Do not reformat the source code |
| 17 | +* ALWAYSREFORMAT=1: Reformat using standard tab settings (4), as returned by (`61 ⎕ATX`) |
| 18 | +* ALWAYSREFORMAT=2: Use user-configured tab settings, as returned by `⎕CR` or `⎕NR`. |
| 19 | + |
| 20 | +## Significant fixes |
| 21 | + |
| 22 | +### Improved Error Messages |
| 23 | + |
| 24 | +Several error messages have been improved. For example, when a file |
| 25 | +cannot be imported to a classic interpreter due to a TRANSLATION ERROR, |
| 26 | +the file and the offending character is identified. |
| 27 | + |
| 28 | +### Improved File System Watcher |
| 29 | + |
| 30 | +The most significant improvement in version 4.1 is a complete rewrite of the code |
| 31 | +that handles file system watcher events, which increased the performance and the |
| 32 | +robustness of Link, when faced with several more or less simultaneous file updates. |
| 33 | + |
| 34 | +For example, when using a source code management system like Git, a branch switch |
| 35 | +or a revert operation may cause a flurry of change to files. In Link 4.0, this |
| 36 | +could sometimes lead to functions disappearing, or failing to disappear when they should, |
| 37 | +as a result of processing messages in the wrong order. |
| 38 | + |
| 39 | +Although Link 4.1 is very much more robust than Link 4.0 in this regard, it is still not |
| 40 | +recommended to copy or unzip hundreds or thousands of files with an active file system |
| 41 | +watcher. |
0 commit comments