sublime-zig-language icon indicating copy to clipboard operation
sublime-zig-language copied to clipboard

Saving a zig file while this package is enabled causes the Sublime console to appear with an error

Open pineapplemachine opened this issue 5 months ago • 1 comments

While this package is enabled, when I attempt to save any zig source file, the Sublime console appears and displays this error:

[WinError 2] The system cannot find the file specified
[Finished]

This is with ST build 4192. The sublime-zig-language package version is listed as v1.5.0.

pineapplemachine avatar May 29 '25 07:05 pineapplemachine

(I was able to prevent this error from appearing by adding "zig.fmt.on_save": false in my package settings)

(I also had just installed zig on this system for the first time. Now after restarting Sublime so that my PATH change took effect, the console output now simply reads [Finished in 50ms] and the file is auto-formatted as one might expect. So it seems this is a matter of not gracefully handling the case that the zig executable cannot be found?)

pineapplemachine avatar May 29 '25 07:05 pineapplemachine