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

LSP: Go to type definition doesn't work for reprovided types #2138

Open
ospencer opened this issue Aug 12, 2024 · 0 comments
Open

LSP: Go to type definition doesn't work for reprovided types #2138

ospencer opened this issue Aug 12, 2024 · 0 comments
Labels
lsp Issues related to the language server.

Comments

@ospencer
Copy link
Member

Example program:

module Example

from "number" include Number

match (Number.parseInt("10", 10)) {
  Err(hasNoTypeDefinition) => Err(""),
  Ok(n) => Ok(n),
}

If you try to go to type definition on hasNoTypeDefinition, it fails. The type comes from the runtime/atoi/parse runtime module. The error occurs because the type is not in the environment, and goes away if the type is imported.

@ospencer ospencer added the lsp Issues related to the language server. label Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lsp Issues related to the language server.
Projects
None yet
Development

No branches or pull requests

1 participant