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

Function precondition might not hold without hint #2918

Open
MikaelMayer opened this issue Oct 24, 2022 · 0 comments
Open

Function precondition might not hold without hint #2918

MikaelMayer opened this issue Oct 24, 2022 · 0 comments
Labels
area: error-reporting Clarity of the error reporting during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)

Comments

@MikaelMayer
Copy link
Member

predicate problem(x: nat) {
  x > 2
}
function callProblem(x: nat): (j: nat)
  requires problem(x) {
  1
}
method Main() {
  var _ := callProblem(1);
}

We get the too simple error message in the IDE.
image

On the command line it's fine, it correctly reports two more locations.

@MikaelMayer MikaelMayer added area: error-reporting Clarity of the error reporting part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo) labels Oct 24, 2022
@keyboardDrummer keyboardDrummer added the kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label label Nov 7, 2022
@keyboardDrummer keyboardDrummer added the during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: error-reporting Clarity of the error reporting during 1: program development Bad error message or documentation; IDE bug; crash compiling invalid program kind: bug Crashes, unsoundness, incorrect output, etc. If possible, add a `part:` label part: language server Support for LSP in Dafny (server part; client is in ide-vscode repo)
Projects
None yet
Development

No branches or pull requests

2 participants