-
Notifications
You must be signed in to change notification settings - Fork 260
Description
The Pyrefly language server crashes repeatedly immediately upon opening the editor (startup). After 5 attempts, the server stops restarting. The logs indicate a panic in pyrefly::alt::solve and pyrefly::alt::expr, likely due to a stack overflow or deep recursion during the initial analysis/type inference.
I am working on a Django 5.0.14 project. Given the stack trace, it seems the server struggles to resolve some bindings or types specific to the Django framework structure during the initial indexing.
Steps to Reproduce
Open the Antigravity editor.
Load a project using Django 5.0.14.
The server crashes immediately during the initialization/indexing phase.
This occurs consistently on the first open.
Stack Trace
Click to expand full stack trace
[Error - 9:01:04] Server process exited with code 101.
PANIC Sorry, Pyrefly crashed, this is always a bug in Pyrefly itself.
...
265: pyrefly::alt::call::<impl pyrefly::alt::answers_solver::AnswersSolver>::call_infer_with_callee_range
at /home/runner/work/pyrefly/pyrefly/pyrefly/lib/alt/call.rs:1031:31
...
354: std::sys::thread::unix::Thread::new::thread_start
at /rustc/02c7b1a7ac1d739663878030510508372e46f254/library/std/src/sys/thread/unix.rs:126:17
Environment
OS: Ubuntu 24.04.3 LTS
Editor: Antigravity
Python Version: 3.12.3
Pyrefly Version: 0.50.0
Framework: Django 5.0.14
Note: I used Gemini to help me draft this report to ensure clarity. I understand technical English well, but I prefer using AI assistance for drafting prose.