Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Formatter error #80

@ouuan

Description

@ouuan

Describe the bug

Formatter crashes unexpectedly.

To Reproduce

  1. Open a new tab.
  2. Make 3 new lines.
  3. Format the code.
  4. 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

image

Desktop (please complete the following information):

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 workinghigh_priorityHigh Priority Issues are marked with this label.windowsAffecting Windows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions