ziglang / sublime-zig-language

Zig language support for Sublime Text
MIT License
85 stars 25 forks source link

build command completely unresponsive #70

Open skytwosea opened 1 year ago

skytwosea commented 1 year ago

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.

jfcherng commented 1 year ago

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