Closed maclong9 closed 1 month ago
doing this is very hard if not effectively impossible, at least correctly. std.fmt
relies heavily on comptime which zls doesnt support yet, its the same reason there arent proper type errors in general. in the meantime you can try the build_on_save
feature, heres a nice article to get it setup https://kristoff.it/blog/improving-your-zls-experience/
This issue is a very specific example of #2017 + #2018. There is no need to track this separately so I will be closing this.
Zig Version
0.13.0
ZLS Version
0.14.0-dev.135+b481aae
Client / Code Editor / Extensions
Helix Editor
Steps to Reproduce and Observed Behavior
The above when compiled returns the following error:
It should be displayed in the editor before compiling.
Expected Behavior
Error should display as an error in editor so we can easily catch these errors before compilation.
Relevant log output
No response