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

If 'which' is not installed, 'dafny' command surfaces incorrect error message #449

Closed
lavaleri opened this issue Dec 3, 2019 · 0 comments · Fixed by #541
Closed

If 'which' is not installed, 'dafny' command surfaces incorrect error message #449

lavaleri opened this issue Dec 3, 2019 · 0 comments · Fixed by #541

Comments

@lavaleri
Copy link
Contributor

lavaleri commented Dec 3, 2019

If running on a system which does no have which installed (This is common if running on AL2 images out of the box), then dafny gives the following misleading error message: "Error: Dafny requires Mono to run on non-Windows systems."

Instead, dafny should either surface a message about missing 'which', or dafny should use another method for determining if 'mono' is installed. (A quick google search shows some alternatives here: https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script)

RustanLeino pushed a commit that referenced this issue Feb 19, 2020
Uses the bash builtin "type" command.

Resolves #449
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 a pull request may close this issue.

1 participant