-
Notifications
You must be signed in to change notification settings - Fork 1
Requesting counterexample generates Internal Error in VSCode #49
Comments
In case it helps: before I reduced the bug-triggering code, the error reported was different:
|
On second thought, looks like this issue should be reported to the VSCode integration repo. |
I am reopening this issue as it fits better to the language server than the VSCode extension. Quote from the last comment of dafny-lang/ide-vscode/issues/25
I have added your example to the integration test solution of the language server. However, it does not appear that it yields an error on any of the tested platforms (macos-10.15, ubuntu-16.04, windows-2019). Would you mind telling me a bit more about your setup? For example a screenshot of your VSCode workspace. Does the error happen no matter what you do? E.g., you open your test file and immediately request the counterexample? What about editing the code a little bit and then request the counterexample? And do you have an example that produces your original error? It appears to me that the provided counterexample information from Boogie is incomplete. |
Also: I seem to remember that at various points of editing a file the counterexamples appear or trigger the internal error. Next time I find the situation I'll try to isolate an example. |
Actually, in that last code example if you uncomment the line
the counterexamples work. |
Thank you very much for the detailed information. I finally managed to reproduce the error with your second example. Unfortunately, I still do not have luck in reproducing the error of your condensed example. Just to make sure: Does the error happen there always or only sporadically? @RustanLeino It appears that the issue resolves around DafnyServer's DafnyProvider.cs. Do you have any idea what the reason might be?
|
Always. |
When requesting a counterexample, an Internal Error is shown in VSCode.
Code:
Error:
The text was updated successfully, but these errors were encountered: