liteide icon indicating copy to clipboard operation
liteide copied to clipboard

File is formatted if I press ctrl-s, not if I wait for auto save or for synchronous code formatting

Open mpictor opened this issue 5 years ago • 0 comments

What version of LiteIDE are you using (LiteIDE About - Version and Build Qt Version)?

LiteIDE X36.3 Qt 5.13.2

What version of Go are you using (go version)?

go version go1.14.1 linux/amd64

What operating system and processor architecture are you using(go env)?

GOARCH="amd64" GOOS="linux"

What did you do?

Options set:

Under LiteApp, I have Automatically save documents when application is idle checked, and its box contains 5sec Under GolangFmt, I have Automatically format code when saving checked as well as Synchronous code formatting, and the time for the latter is 1000.

Edit a go file, introducing incorrect formatting. Wait.

What did you expect to see?

I expect the synchronous code formatting to trigger and format the file after 1 second. Even if that doesn't happen, the file should be formatted when it saves after 5s.

What did you see instead?

The file saves after 5s but no formatting occurs.

Note that the file does get formatted if I press ctrl-s rather than waiting.

mpictor avatar Apr 07 '20 04:04 mpictor