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

Go-to-definition in Pulse DSL sometimes goes to dummy file #37

Open
gebner opened this issue Apr 3, 2024 · 1 comment
Open

Go-to-definition in Pulse DSL sometimes goes to dummy file #37

gebner opened this issue Apr 3, 2024 · 1 comment

Comments

@gebner
Copy link
Contributor

gebner commented Apr 3, 2024

The Pulse DSL adds lots of identifiers to the id_info table with dummy ranges. When querying F* for these symbols, we get as location a file dummy with range 0:0-0:0.

@gebner
Copy link
Contributor Author

gebner commented Apr 25, 2024

This is an example where the issue occurs:

module IdeBug
open Pulse.Lib.Pervasives

```pulse
fn foo () requires emp returns _:unit ensures emp { () }
```

let bar () =
  foo ()
//^ go-to-definition goes to dummy here

```pulse
fn baz () requires emp returns _:unit ensures emp {
  foo ()
//^ go-to-definition goes to dummy here
}
```

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