cmake-format not working as cmake formatter #11076
Unanswered
steckes
asked this question in
Troubleshooting
Replies: 1 comment 2 replies
-
External formatters work by piping the document through the formatter command. I believe |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I tried to use cmake-format as formatter for cmake files.
Instead of formatting, the whole content of the file gets deleted.
I tried adding
-i
as argument for in-place formatting, what does not help.Here my config:
Do you see something I messed up?
When I call
cmake-format -i CMakeLists.txt
in the commandline it works.Reproduction Steps
I tried this:
hx CMakeLists.txt
:format
I expected this to happen:
File gets formatted
Instead, this happened:
Content gets deleted
Helix log
Logfile stays empty
Platform
Linux
Terminal Emulator
alacritty 0.13.2
Installation Method
pacman
Helix Version
helix 24.3
Beta Was this translation helpful? Give feedback.
All reactions