Skip to content

Output of check step not being reported #2562

@yamafaktory

Description

@yamafaktory

Zig Version

0.16.0-dev.2135+7c0b42ba0

ZLS Version

0.16.0-dev.104+d732b05e

Client / Code Editor / Extensions

NVIM v0.11.5

Steps to Reproduce and Observed Behavior

Use this check step: https://github.com/yamafaktory/hypergraphz/blob/main/build.zig#L53-L58

-> works fine with tagged version (0.15.2)
-> doesn't work with aforementioned zls & zig version though manually triggering zig build check works as expected

Expected Behavior

zls should report any error from the check step.

Log Output

1 │ warn  ( diag ): zig build runner exited with non-zero status: 2
   2 │ stderr:
   3 │ /home/davy/.cache/zls/build_runner/4f1e08bb76182aa6412cc0242f77ddd6/build_runner.zig:34:6: error: no field named 'crypto_fork_safety' in struct 'std.Opti
     │ ons'
   4 │     .crypto_fork_safety = false,
   5 │      ^~~~~~~~~~~~~~~~~~
   6 │ /home/davy/.zvm/master/lib/std/std.zig:114:21: note: struct declared here
   7 │ pub const Options = struct {
   8 │                     ^~~~~~
   9 │ referenced by:
  10 │     options: /home/davy/.zvm/master/lib/std/std.zig:112:69
  11 │     print__anon_4314: /home/davy/.zvm/master/lib/std/Io/Writer.zig:712:24
  12 │     3 reference(s) hidden; use '-freference-trace=5' to see all references

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions