Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Formatting invalid code causes entire file to be cleared. #60

Closed
newtonallen3 opened this issue Jun 27, 2014 · 0 comments
Closed

Formatting invalid code causes entire file to be cleared. #60

newtonallen3 opened this issue Jun 27, 2014 · 0 comments

Comments

@newtonallen3
Copy link

Repro steps:

  1. Create an invalid go file
  2. Format it (Shift+Ctrl+F)

Observed behavior:
Everything in the file is deleted. An empty file is left behind. The console window shows the output of gofmt, which evidently terminated with an error code and printed some messages to stderr.

Expected behavior:
The file is unmodified. Perhaps an error dialog appears, showing that editing failed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants