You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When formatting is enabled and run against a file that shfmt can't parse, the contents are replaced with an empty file. This is a result of improper handling when shfmt returns a non-zero exit status.
Non-zero exist statuses from `shfmt` weren't checked for or handled. As
a result the (empty) output from `shfmt` was returned as the formatted
document. An exception is now thrown when a non-zero exit status is
encountered.
Fixesbash-lsp#1162
chris-reeves
added a commit
to chris-reeves/bash-language-server
that referenced
this issue
May 14, 2024
Non-zero exist statuses from `shfmt` weren't checked for or handled. As
a result the (empty) output from `shfmt` was returned as the formatted
document. An exception is now thrown when a non-zero exit status is
encountered.
Fixesbash-lsp#1162
When formatting is enabled and run against a file that
shfmt
can't parse, the contents are replaced with an empty file. This is a result of improper handling whenshfmt
returns a non-zero exit status.Originally reported by @David-Else in #1136 (comment)
The text was updated successfully, but these errors were encountered: