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

Cannot request counterexamples #521

Closed
robflop opened this issue Jan 16, 2025 · 3 comments
Closed

Cannot request counterexamples #521

robflop opened this issue Jan 16, 2025 · 3 comments

Comments

@robflop
Copy link

robflop commented Jan 16, 2025

Using the below sample code, verification fails on the postcondition in line 2 as expected, but when requesting a counterexample via the extension (pressing F7 with the cursor in the area of the failing postcondition), I receive the error "Counterexample request failed: TypeError: Cannot convert undefined or null to object".

I just installed the Dafny extension today (version 3.4.3) and let it automatically install Dafny for me (version 4.9.1).
VSCode is version 1.96.3 and my OS is Windows 10. Am I doing something wrong here?

method Wrong(x: int) returns (y: int)
  ensures y == 1
  {
    y := x;
  }

Image
Image

@keyboardDrummer
Copy link
Member

Duplicate of #492

@keyboardDrummer keyboardDrummer marked this as a duplicate of #492 Jan 23, 2025
@robflop
Copy link
Author

robflop commented Jan 23, 2025

My bad, thanks for the tag!

@robflop robflop closed this as completed Jan 23, 2025
@keyboardDrummer
Copy link
Member

My bad, thanks for the tag!

No worries. You running into this is extra data that we need to prioritize resolving it.

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

No branches or pull requests

2 participants