-
-
Notifications
You must be signed in to change notification settings - Fork 142
Closed
Labels
bugSomething isn't workingSomething isn't workinghigh_priorityHigh Priority Issues are marked with this label.High Priority Issues are marked with this label.windowsAffecting WindowsAffecting Windows
Description
Describe the bug
Formatter crashes unexpectedly.
To Reproduce
- Open a new tab.
- Make 3 new lines.
- Format the code.
- Get
[Format command returned non-zero exit code -1073741819].
It happens with a high probability, but not always for me.
Expected behavior
The formatter won't crash.
Screenshots
Desktop (please complete the following information):
- OS: Window 10
- Version: cb333ed
Smartphone (please complete the following information):
N/A
Additional context
I think it happens because the file is occupied by the editor, and clang-format can't modify it.
I suggest using clang-format by its output, instead of the -i option. It will not only fix this bug, but also support undo for formatting.
I'll try to fix it tomorrow.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghigh_priorityHigh Priority Issues are marked with this label.High Priority Issues are marked with this label.windowsAffecting WindowsAffecting Windows