modular / modular/modular

[BUG][LSP] LSP crashes for empty raising `main`

Open
#4,336 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug modular-repo mojo
Dominant language
Mojo
Stars
29.8k
Forks
3.2k
PR merge metrics
No merged PRs in 30d

Description

Bug description

As title.

Steps to reproduce
fn main() raises:
  pass
System information
Package     Version               Build    Size       Kind   Source
max         25.3.0.dev2025041105  release  9.7 KiB    conda  max
max-core    25.3.0.dev2025041105  release  258.5 MiB  conda  max-core
max-python  25.3.0.dev2025041105  release  35.4 MiB   conda  max-python

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the crash with the empty Mojo main example from the issue in the LSP. Trace the failure from that input and verify that the LSP remains usable for fn main() raises: pass without crashing.

Written by the indexing model from the issue text.

Assessment

Domain
compilers, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.