-
-
Notifications
You must be signed in to change notification settings - Fork 832
Labels
A-formatterArea - FormatterArea - Formatter
Description
Large files are unexpectedly truncated and formatting fails when using the --stdin-filepath option.
Environment
- oxfmt version: 0.24.0
- OS: macOS (Sequoia 15.7.3), M3 chip
- Context: conform.nvim integration for nvim format-on-save
Repro
- Find a large file. In my case, the file I was editing was ~1500 lines.
wc -l /path/to/large.file.tsSee what the line count is before invokingoxfmtcat /path/to/large.file.ts | oxfmt --stdin-filepath /path/to/large.file.ts | wc -lSee failure and the modified line count
Getting this error:
thread 'tokio-runtime-worker' (656208) panicked at apps/oxfmt/src/core/utils.rs:52:74:
called `Result::unwrap()` on an `Err` value: Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtraceExpected behavior
Formats entire file without truncation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-formatterArea - FormatterArea - Formatter