Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
"Document using GoFmt" deletes all code in text editor. #2010
"Document using GoFmt" deletes all code in text editor.
Steps to Reproduce
Open a .go file, Format->Document using GoFmt.
All code are formated.
All code are deleted.
Komodo IDE v10.1.1, Windows 10 64-bit
-- eg. Error logs, screenshots, workarounds --
Note on this: I remember this being reported before but I can't find the report. The issues, if I recall correctly, is that the Go format tool takes a file name and formats it on the disk. Other formatting tools provide a method where you pass in a string, the tool formats it, gives it back, then we dump it into the file.