N
N
neitri2020-01-19 13:16:02
go
neitri, 2020-01-19 13:16:02

Why does the file get corrupted when saving?

I am writing a GO program in Visual Studio Code. An hour after launch, incomprehensible things begin. I save the file, and the characters randomly disappear. Accordingly, the program does not compile if you save again, symbols may still be lost. other files in the same directory are saved normally.
I observed this behavior on different computers. I did not find a solution, I switched to Liteide.
It's been 10 months already. I have reinstalled Windows 10 latest VSCode and Go. But the problem is the same. The file gets corrupted when saved.
What is the problem? VSCode or Go? I have not seen this in LiteIDE.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
neitri, 2020-01-23
@neitri

Removed completely GO, VSCode, extensions. After the re-installation, it began to adequately report warnings and save files.

A
Alexander Melentyev, 2020-01-20
@asmelentyev

Only the code editor affects the file as a whole. There is no need for the language to remove characters, as this will lead to an error. I also recommend checking installed plugins.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question