SublimePrettyJson icon indicating copy to clipboard operation
SublimePrettyJson copied to clipboard

"validate_on_save": true, not working sublime 4

Open jbartolozzi opened this issue 3 years ago • 5 comments

tested using ubuntu 22 / macos installed via git and package control i add "validate_on_save": true, to my user settings (it's already in the deaults) and nothing happens on a json file on save. the file is being highlighted etc as json

jbartolozzi avatar Jul 22 '22 01:07 jbartolozzi

Looking at it now. Can you give me an example JSON file?

TerminalFi avatar Jul 22 '22 02:07 TerminalFi

Even something like this { "test": 1.0, "tes2": "a", "tes3": "b" } } if i do Command Palette -> Pretty JSON Validate the error shows up, but on-save doesnt seem to do anything. No printout in the console either.

jbartolozzi avatar Jul 25 '22 16:07 jbartolozzi

Thanks! Think I have found the issue

TerminalFi avatar Jul 26 '22 23:07 TerminalFi

👋 I am still seeing this error. Has there been any fix pushed?

nanafwu avatar Aug 31 '22 22:08 nanafwu

The https://github.com/dzhibas/SublimePrettyJson/pull/184 fixes it as well.

d0vgan avatar Aug 07 '24 15:08 d0vgan