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

Dafny VS extension crashes when including lengthy files #24

Closed
parno opened this issue Sep 2, 2016 · 0 comments
Closed

Dafny VS extension crashes when including lengthy files #24

parno opened this issue Sep 2, 2016 · 0 comments
Assignees

Comments

@parno
Copy link
Collaborator

parno commented Sep 2, 2016

If you include a file that's longer than the including file, the Dafny extension will often crash. Here's a small example. Create two files:

includer.dfy:

include "includee.dfy"

method test()

and includee.dfy:




function TestFunc(x:int) : int
{
    x + 2
}

lemma SomeProperties(y:int)
    ensures TestFunc(y) > y;
{

}

This will crash the extension. The problem is that the code that tries to add "Go to definition" functionality doesn't check whether the expression it's trying to tag is in the current buffer/file. In this case, it sees TestFunc in the ensures to SomeProperties, and tries to add a tag to the current snapshot, which fails with an out of range error.

@parno parno closed this as completed in 0a116dc Sep 2, 2016
@parno parno self-assigned this Nov 18, 2016
camrein added a commit that referenced this issue Apr 8, 2021
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

1 participant