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

build command completely unresponsive

Open skytwosea opened this issue 2 years ago • 1 comments

ctrl+b is completely unresponsive for .zig files. No error messages, no 'build not available' messages, no results window: nothing. All other aspects work: syntax highlighting works perfectly, to the extent of my observations.

Temp fix: I created a dead-simple zig.sublime-build file to replace the original:

{
    "cmd": ["zig", "run", "$file"],
    "selector": "source.zig"
}

System: Kubuntu 5.15.0-87-generic on x86_64 ST: build 4152, licensed Zig: 0.12.0-dev.1261+bb0419599

This issue is especially strange because I run two machines, both are essentially identical: same Kubuntu distro, same ST build, same Zig compiler. On my secondary machine, ctrl+b works just fine. On my primary machine, however, ctrl+b is problematic, as above.

skytwosea avatar Oct 30 '23 20:10 skytwosea

I am not a Zig guy. It requires a build.zig file in your project root. https://github.com/ziglang/sublime-zig-language/blob/1a4a38445fec495817625bafbeb01e79c44abcba/Build%20Systems/Zig.sublime-build#L5

jfcherng avatar Oct 31 '23 04:10 jfcherng