SublimeCSSTidy
SublimeCSSTidy copied to clipboard
CSSTidy Errors tab is always empty (insert uses the other view edit token)
Claude reports: the "CSSTidy Errors" tab is always empty, so a failure shows nothing.
When the tidier fails, run() opens a new tab and calls nv.insert(edit, 0, ...) with the edit object of the original view. On Sublime Text build 4200 the new tab stays empty (size 0 in the sheet list); the message and the command line are lost. Related: err is bytes from communicate(), so "{}".format(err) would print b'...' even if the insert worked (the title of #24 shows that b'' form).
Fix idea: nv.run_command("append", {"characters": err.decode("utf-8", "replace") + ...}).