pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

High memory usage on Antigravity (google's new IDE)

Open yangdanny97 opened this issue 1 month ago • 1 comments

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

yangdanny97 avatar Nov 22 '25 05:11 yangdanny97

same issue with Zed

Image

remixer-dec avatar Nov 29 '25 15:11 remixer-dec

another report

https://www.reddit.com/r/vibecoding/comments/1pbtzlg/antigravity_high_memory_problem_with_pyrefly/

yangdanny97 avatar Dec 02 '25 14:12 yangdanny97

@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.

lolpack avatar Dec 02 '25 15:12 lolpack

I have similar issue. Half of my memory is used by pyrefly

Image

I can't share project because it is a private

anteqkois avatar Dec 12 '25 10:12 anteqkois

Image

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_wake

PANIC Sorry, Pyrefly crashed, this is always a bug in Pyrefly itself.

remixer-dec avatar Dec 13 '25 04:12 remixer-dec