High memory usage on Antigravity (google's new IDE)
Describe the Bug
From reddit:
I am also having same issue. pyrefly is using 7 GB of memory on macos for no reason at all. Looks like it is a problem with Google Antigravity but I dont have much details.
https://www.reddit.com/r/Python/comments/1o66tho/comment/nq3zs0o/
Light on details, but worth keeping an eye out for any other reports
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
same issue with Zed
another report
https://www.reddit.com/r/vibecoding/comments/1pbtzlg/antigravity_high_memory_problem_with_pyrefly/
@remixer-dec thanks for reporting this issue. Would you be able to share a bit more about the project? A pointer (if open source), lines of code or some other metric. Does the memory creep up over time (like a memory leak) or immediately jump to 9GB. Details like this can help us understand and fix the problem.
I have similar issue. Half of my memory is used by pyrefly
I can't share project because it is a private
The project has 79 .py files, it is private. It happens when I ether restart Zed or restart language servers + open a .py file. It grows to a certain size, depending on which files are open.
pyrefly.toml looks like this:
infer-with-first-use = false
project-includes = ["./"]
[errors]
missing-import = "ignore"
also I experienced a crash when I tried to observe how it behaves when I switch between files:
ERROR Thread panicked, shutting down: panicked at pyrefly/lib/state/state.rs:1559:17: assertion failed: inserted Backtrace: 0: __mh_execute_header ... 173: __mh_execute_header 174: __pthread_joiner_wakePANIC Sorry, Pyrefly crashed, this is always a bug in Pyrefly itself.