Skip to content

Commit

Permalink
Add release note and fix path resolution in Dafny project file
Browse files Browse the repository at this point in the history
  • Loading branch information
keyboardDrummer committed Sep 7, 2023
1 parent 0beaffb commit 7a6914d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/DafnyCore/Options/DafnyProject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@ public class DafnyProject : IEquatable<DafnyProject> {
return false;
}

var previousWorkingDirectory = Directory.GetCurrentDirectory();
Directory.SetCurrentDirectory(Path.GetDirectoryName(Uri.LocalPath));
var parseResult = option.Parse(new[] { option.Aliases.First(), tomlValue });
Directory.SetCurrentDirectory(previousWorkingDirectory);
if (parseResult.Errors.Any()) {
value = null;
return false;
Expand Down
1 change: 1 addition & 0 deletions docs/dev/news/4506.fix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support all types of options in the Dafny project file (dfyconfig.toml)

0 comments on commit 7a6914d

Please sign in to comment.