Hi, I have had some problems with sublime text 4, since its version 4121 it presents the following when creating a new PHP or HTML file, or when modifying an existing file and trying to save it completely deletes all its content.
To correct this problem I have had to delete the installation that I have of it without leaving anything of the registry of it in Ubuntu 20.04.
It works fine for me for a while, but then suddenly it starts doing the same thing and I can't work.
Do you have any idea why it does this, and how I could correct it and thanks in advance for any help you can give me.
In case of problems of this type with the Sublime text editor, I suggest performing the following steps for debugging (the order is at will):
Always have Sublime updated to the latest version , in case, in the first instance, the problem between versions had been corrected.
Disable suspicious packages using
Control-Shift-P
, then typedisable
, then selectPackage Control: Disable Package
and when a list of packages appears select the suspicious one. And discard them as the tests are carried out.Check the Sublime console to see everything it does and find possible related errors, because with this you can identify if it is also a package and deactivate it as explained in the previous point. To see the console click on in the top menu.
View | Show console
As the OP himself (Original Poster) has declared, in his case the problem was caused by the PHPTools package , which he has deactivated, solving his specific problem.