Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: relax .NET runtime version check #443

Merged
merged 2 commits into from
Oct 10, 2023
Merged

Conversation

alex-chew
Copy link
Contributor

Fixes #442.

  • Relaxes the .NET runtime version check to only require the .NET Runtime (instead of ASP.NET Core too), and to permit versions later than 6.0.x.
  • Make the version check error message more concise, in order to reduce the likelihood that VS Code hides the notification (due to the message being too long to fit on screen).

Comment on lines +32 to +34
export const NotASupportedDotnetInstallation = ' is not a compatible dotnet file. Dafny requires the .NET Runtime 5.0 or greater, found ';
export const FailedDotnetExecution = 'Failed to execute dotnet. Dafny requires the .NET Runtime 5.0 or greater.';
export const NoCompatibleInstallation = 'No compatible dotnet runtime found. Dafny requires the .NET Runtime 5.0 or greater.';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note, I'm a bit surprised we need three different error messages, implying there are three different places we check this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it's possible that the "Dafny requires the .NET Runtime 5.0 or greater" part is redundant, but indeed the three messages are used in three distinct failure modes (successfully executed dotnet --list-runtimes but found no compatible version; failed to execute dotnet with a manually-specified executable; and failed to execute dotnet using $PATH).

@alex-chew alex-chew merged commit a40bbe8 into master Oct 10, 2023
8 checks passed
@alex-chew alex-chew deleted the fix-dotnet-runtime-check branch October 10, 2023 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(offer to help) installation via VSCode on mac M1
2 participants