Opened 8 months ago

Last modified 8 months ago

#69548 assigned defect

tree-sitter-rust causes Emacs' rust-ts-mode to peg the CPU and consume all system memory.

Reported by: ragnese Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version: 2.9.1
Keywords: Cc:
Port: tree-sitter-rust

Description

This also seems to happen with tree-sitter-python according to this reddit post: https://old.reddit.com/r/emacs/comments/1848h8w/enabling_pythonts_mod%C4%99_causes_my_emacs_memory/

My symptoms are exactly the same as that python one, but with rust. This does not appear to happen with other *-ts-modes in Emacs with other tree-sitter-* ports, so I don't know if it's something specific to how this one and the python one are built or if it's something wrong with the tree-sitter "base" port.

As mentioned in the linked post, building everything outside of MacPorts seems to work, so it's something specific with either our MacPorts configuration or these ports.

I'm on an M2 Mac running Sonoma.

Please let me know what I can do to help debug the issue.

Change History (1)

comment:1 Changed 8 months ago by jmroot (Joshua Root)

Owner: set to amake
Status: newassigned
Summary: This port causes Emacs' rust-ts-mode to peg the CPU and consume all system memory.tree-sitter-rust causes Emacs' rust-ts-mode to peg the CPU and consume all system memory.
Note: See TracTickets for help on using tickets.