Sublime Forum

Saving JSON Truncates

#1

I have never experienced this with sublime text and i am a long time user. The last couple days i have i watched sublime truncate my json file on saving. i can undo and it comes back but i can not get it to save. it always at the same amount of characters. doesn’t matter whats in the file. it does not seem to be due to any junk hidden characters. 4096 char every time. Save as and change it to .txt and it works fine.

0 Likes

#2

This is most likely being done by a plugin. Have to tried reverting to a freshly installed state.

0 Likes

#3

I’m experiencing the same thing with the same reaction. As a quick workaround to be able to save the file, I changed the syntax to Plain Text.

Looking a bit deeper, the problem is indeed caused by a plugin. After the truncate, the Undo menu indicates it was a “Jsoncomma Fix” which can be undone. Removing the JSONComma plugin in Package Control solves the problem.

The issue is known on GitHub.

1 Like