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 crashes on incomplete code #3558

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

[BUG] LSP crashes on incomplete code #3558

soraros opened this issue Sep 27, 2024 · 0 comments
Assignees
Labels
Area: Language Server bug Something isn't working mojo-repo Tag all issues with this label

Comments

@soraros
Copy link
Contributor

soraros commented Sep 27, 2024

Bug description

As title. I failed to reduce the snippet further.

The mojo-lsp-server binary exited with signal 'SIGSEGV' and exit code 'null'.
The mojo-lsp-server will restart.

Steps to reproduce

The moment you put any character in the brackets, the LSP crashes.

from memory import UnsafePointer

fn main():
  UnsafePointer[]()  # put any character in the brackets

alias T = Int

fn f[T: EqualityComparable](s: T):
  pass

Another case:

fn main() raises -> :  # put any char here as return type
  pass

alias T = Tuple[StringLiteral, StringLiteral, StringLiteral]

fn f[T: EqualityComparable](s: T):
  pass

System information

Mojo 2024.9.2705 (bf2938d0) on Docker, Intel Mac
@soraros soraros added bug Something isn't working mojo-repo Tag all issues with this label labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Language Server bug Something isn't working mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

3 participants