Goz3rr / vscode-glualint

glualint for vscode
https://marketplace.visualstudio.com/items?itemName=goz3rr.vscode-glualint
MIT License
7 stars 4 forks source link

Failed formatting the file #14

Closed ZehMatt closed 1 year ago

ZehMatt commented 1 year ago

I just get an error Failed to pretty print code, most likely due to syntax errors. I have the latest version of this extension and glualint is at the version 1.25.0

Running glualint from the command line on the same file has no errors so I'm guessing it is rather the extension than glualint.

Goz3rr commented 1 year ago

I've left a comment on the PR as well, but for posterity:

You're probably running the "Format Selection" with no selection, so glualint returns an empty string which makes the extension think it failed. vscode provides a "Format Document" action as well which formats the entire document.

ZehMatt commented 1 year ago

My bad, not an actual issue.