[BUG][LSP] LSP crashes for empty raising `main`
Open
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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