New features
-
The --show-snippets options is implemented for errors printed to the console (#3304)
-
- {:error} now accepts success messages
- Better hover messages when using the IDE
- Harmonized language to use more "could not prove" rather than "might not hold"
(#3687)
-
Unicode representations of mathematical symbols (such as logical implies, and, and or) are no longer recognized by the parser. (#3755)
-
Allow the Dafny IDE to publish 'Parsing' and 'Preparing Verification' messages to let the user better understand what they're waiting for. (#4031)
-
Removed obsolete options /mimicVerificationOf, /allowGlobals (#4062)
-
Allow the
{:only}
attribute to be used on members in addition toassert
statements (#4074) -
The obsolete and unsound option /allocated is removed; the behavior of dafny is locked to the case of /allocated:4. (#4076)
-
When using the Dafny CLI, error messages of the form "the included file contains error(s)" are no longer reported, since the actual errors for these included files are shown as well. When using the Dafny server, errors like these are still shown, since the Dafny server only shows errors for currently opened files. In addition, such errors are now also shown for files that are indirectly included by an opened file. (#4083)
-
When using the Dafny IDE, parsing is now cached in order to improve performance when making changes in multi-file projects. (#4085)
-
Errors issued in command-line mode now show source code context by default; this behavior can be disabled using the option --show-snippets:false. (#4087)
-
Reduced resolution time by up to 50%. Measurements on large codebases show a 35% average reduction in resolution time.
-
After generating Python code we run the byte-code compiler to surface possible issues earlier, if it's not subsequently run. (#4155)
-
Improve the responsiveness of the Dafny language server when making changes while it is in the 'Resolving...' state. (#4175)
-
It is now possible to reveal an instance function of a class by a static reveal, without the need of an object of that class. (#4176)
-
Support for the
--bprint
option for language server arguments (#4206) -
Improve printing of real numbers to use decimal notation more often (#4235)
-
When translated to other languages, Dafny module names no longer have the suffix
_Compile
appended to them. This may cause issues with existing code from non-Dafny languages in your codebase, if that code was previously referencing modules with_Compile
in the name. You can migrate either by removing the_Compile
part of references in your codebase, or by using the backwards compatibility option--compile-suffix
when usingtranslate
,build
, orrun
. (#4265) -
Counterexample parsing now supports both the 'Arguments' and 'Predicates' polymorphism encoding in Boogie. (#4299)
Bug fixes
-
Removed wrong "related position" precision when dealing with regrouped quantifiers (#2211)
-
Fixed crash on an empty filename (#3549)
-
Fixes crash if solver-path is not found (#3572)
-
Avoid infinite recursion when trying to construct a potentially self-referential object during test generation (#3727)
-
Better error message when incorrect number of out parameters (#3835)
-
Compilation of continue labels no longer crashing in Go (#3978)
-
The terminology 'opaque type' is changed to 'abstract type (for uninterpreted type declarations), to avoid ambiguity with used of the 'opaque' keyword and revealing declarations (#3990)
-
Ensures override checks have access to fuel constant equivalences (#3995)
-
No more crash when using constant in pattern (#4000)
-
Remove multiset cardinality cap in Python (#4014)
-
Wrong statement order in generated code for certain for-loops (#4015)
-
Making assertion explicit work for nested statements (#4016)
-
Use type antecedent in Type/Allocation axioms for const fields
Don't generate injectivity axioms for export-provided types
(#4020) -
Added a new CLI option --warn-deprecation, which is on by default
Extraneous semicolons are now warned about by default; the warning can be disabled using --warn-deprecation:false
(#4041) -
Regression in the subset check of the function override check (#4056)
-
Fix function to function-by-method transformation pass in test generation that could previously lead to parsing errors (#4067)
-
Modules verified in the correct order to prevent Boogie Crash (#4139)
-
In VSCode, resource units are now always displayed with 3 digit precision.
Moreover, they can now display values greater than MAX_INT without displaying a negative result.
(#4143) -
Remove redundant code in the test generation project (#4146)
-
Generate type axioms in the absence of explicit constraints for
newtype
s (#4190) -
Support for opaque function handles (#4202)
-
Traits with opaque functions can now be extended without errors (#4205)
-
Disabled --show-snippets CLI option, which is otherwise on by default, during test generation
Test generation modifies Boogie AST resulting from Dafny, and is, therefore, incompatible with --show-snippets
(#4216) -
Select proper division for real-based newtypes (#4234)
-
Formatting in the IDE consistent again with the CLI (#4269)
-
Fixes invalid declaration errors when verifying directly from Dafny using /typeEncoding:m. (#4275)
-
Make gutter icons more robust to document changes (#4308)