mirror of
https://github.com/vale981/apheleia
synced 2025-03-04 17:11:40 -05:00
Revert "Work around 2^16 buffer char limit"
Unfortunately, we need to address the problem more fundamentally. The
previous fix causes the end of the buffer to be truncated under some
circumstances.
This reverts commit c77a781912
.
This commit is contained in:
parent
c77a781912
commit
80e1b09dda
2 changed files with 2 additions and 12 deletions
|
@ -3,12 +3,6 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog].
|
The format is based on [Keep a Changelog].
|
||||||
|
|
||||||
## Unreleased
|
|
||||||
### Bugs fixed
|
|
||||||
* Apheleia experiences difficulty formatting buffers longer than 2^16
|
|
||||||
characters. Previously, the formatting operation would fail entirely
|
|
||||||
in this case. Now it works, albeit with degraded performance.
|
|
||||||
|
|
||||||
## 1.1.1 (released 2020-07-16)
|
## 1.1.1 (released 2020-07-16)
|
||||||
### Formatters
|
### Formatters
|
||||||
* New: [OCamlFormat](https://github.com/ocaml-ppx/ocamlformat) for
|
* New: [OCamlFormat](https://github.com/ocaml-ppx/ocamlformat) for
|
||||||
|
|
|
@ -293,7 +293,7 @@ provided that its exit status is 0."
|
||||||
(if (funcall
|
(if (funcall
|
||||||
(or exit-status
|
(or exit-status
|
||||||
(lambda (status)
|
(lambda (status)
|
||||||
(= 0 (logand 255 status))))
|
(= 0 status)))
|
||||||
(process-exit-status proc))
|
(process-exit-status proc))
|
||||||
(when callback
|
(when callback
|
||||||
(funcall callback stdout))
|
(funcall callback stdout))
|
||||||
|
@ -315,11 +315,7 @@ provided that its exit status is 0."
|
||||||
(with-current-buffer stdin
|
(with-current-buffer stdin
|
||||||
(buffer-string))))
|
(buffer-string))))
|
||||||
(process-send-eof apheleia--current-process))
|
(process-send-eof apheleia--current-process))
|
||||||
(error
|
(error (message "Failed to run %s: %s" name (error-message-string e))))))
|
||||||
(unless (string-match-p
|
|
||||||
"process .+ no longer connected to pipe; closed it"
|
|
||||||
(error-message-string e))
|
|
||||||
(message "Failed to run %s: %s" name (error-message-string e)))))))
|
|
||||||
|
|
||||||
(defun apheleia--write-region-silently
|
(defun apheleia--write-region-silently
|
||||||
(start end filename &optional
|
(start end filename &optional
|
||||||
|
|
Loading…
Add table
Reference in a new issue