You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 24, 2025. It is now read-only.
feat: add configurable unrecognized version fallback behavior (#475)
Implements the `wdl` side of #464; a new `sprocket` release will still be required to fully close out that issue.
The primary change here is a move of the recognized version enforcement from the initial parse in `wdl-grammar` to the code in `wdl-analysis` that consumes the parse. The behavior upon finding an unrecognized version is now also configurable, with a configurable-severity diagnostic being emitted in case the fallback is used. Other notable changes include:
- `Analyzer` now takes a general-purpose `Config` struct which contains the previous `DiagnosticsConfig` struct as a field.
- `wdl-ast` interfaces now include a version fallback option in order to return an `Ast` variant consistent with the analyzer's configured fallback option.
- `wdl-lsp`'s configuration is now hardcoded to fall back to the default WDL version (1.2 as of this change) with warning-level severity for the associated diagnostic. Additional configurability is planned in #517.
- The `wdl-analysis` test suite now looks for `config.toml` in test definition directories and runs the test under that configuration if found. This is a fairly crude mechanism at this point—suitable for testing, but `sprocket`'s config files are the better option for user-facing config.
- New tests have been added that exercise the fallback behavior with and without configured diagnostics.
Copy file name to clipboardExpand all lines: wdl-analysis/CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
* Added support for struct members, struct literals and call inputs in `goto_definition` ([#491](https://github.com/stjude-rust-labs/wdl/pull/491)).
13
13
* Added `find references` support for WDL Language Server ([#484](https://github.com/stjude-rust-labs/wdl/pull/484)).
14
14
* Added `goto_definition` support for WDL Language Server ([#468](https://github.com/stjude-rust-labs/wdl/pull/468)).
15
+
* Added a `fallback_version` configuration option ([#475](https://github.com/stjude-rust-labs/wdl/pull/475)).
16
+
17
+
#### Changed
18
+
19
+
*`Analyzer` now takes a general-purpose `Config` argument, which contains the previous `DiagnosticsConfig` argument ([#475](https://github.com/stjude-rust-labs/wdl/pull/475)).
20
+
* Non-error diagnostics during parsing no longer prevent `wdl-analysis` from analyzing documents ([#475](https://github.com/stjude-rust-labs/wdl/pull/475)).
0 commit comments