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

[BUG] LSP fails on alias declarations within non-top-level statements #3551

Open
soraros opened this issue Sep 26, 2024 · 0 comments
Open

[BUG] LSP fails on alias declarations within non-top-level statements #3551

soraros opened this issue Sep 26, 2024 · 0 comments
Labels
bug Something isn't working mojo-repo Tag all issues with this label

Comments

@soraros
Copy link
Contributor

soraros commented Sep 26, 2024

Bug description

When an alias a = expr statement is used within control structures like for, if, or with, the syntax highlighting and type hinting tooltips fail to function.

Steps to reproduce

fn main():
  l = List(1, 2, 3)
  if True:
    alias s = len(l)  # Nothing works on this line

System information

Mojo 2024.9.2405 (094f5635) on Docker, Intel Mac
@soraros soraros added bug Something isn't working mojo-repo Tag all issues with this label labels Sep 26, 2024
@soraros soraros changed the title [BUG] LSP doesn't work on alias declaration when it's not top-level statement [BUG] LSP fails on alias declarations within non-top-level statements Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

1 participant