no error source location when importing non existent source file in zig build project #22930
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
Zig Version
0.14.0-dev.3239+d7b93c787
Steps to Reproduce and Observed Output
zig init
const foo = @import("non_existent_file.zig");
tosrc/main.zig
zig build
The observed output is the following:
Expected Output
I would expect an error message that is identical to running
zig run src/main.zig
:I also noticed that
zig build --watch -fincremental
will report the correct error message but only on the first compile cycle.The missing source location stops ZLS's build on save feature from providing an error message in this situation. See zigtools/zls#2196.
The text was updated successfully, but these errors were encountered: