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] Incomplete code crashes compiler and LSP #3543

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

[BUG] Incomplete code crashes compiler and LSP #3543

soraros opened this issue Sep 24, 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 24, 2024

Bug description

As title. Only happens if the line is above an assignment.

Steps to reproduce

import math

fn main():
  math.  # cursor after .
  b = 2

The following works:

import math

fn main():
  (math.)  # cursor after .
  b = 2
import math

fn main():
  math.  # cursor after .

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 24, 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