Automattic / Automattic/harper

Harper can block file saving

Open
#1,331 13 comments 2 reactions 0 assignees View on GitHub
bug visual-studio-code-plugin
Dominant language
Rust
Stars
15.4k
Forks
627
Avg merge
1d 15h
Merged PRs (30d)
102

Description

**Describe the bug**

In very big files, Harper can block file saving for multiple seconds. But why is that even the case as Harper doesn't provide any formatter?

**To Reproduce**
Steps to reproduce the behavior:
1. Save a big file

**Expected behavior**
Harper doesn't run on file save.

**Screenshots**
Image

**Platform**
Cursor, MacOS

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the delay in Cursor on macOS by saving a very large file, then trace the save integration to determine why Harper runs during saving. Done means saving a large file no longer blocks for multiple seconds because Harper is not invoked on file save.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.