-
-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zls is broken in bun's repo #1396
Comments
A change was made to If not, could you post the output of |
/Users/jarred/Build/zls/src/special/build_runner.zig:321:31: error: root struct of file 'Build' has no member named 'LazyPath'
fn getPath(path: std.Build.LazyPath, builder: *Build) ?[]const u8 {
~~~~~~~~~^~~~~~~~~
referenced by:
processStep: /Users/jarred/Build/zls/src/special/build_runner.zig:228:28
remaining reference traces hidden; use '-freference-trace' to see all reference traces The issue is that Zig has breaking changes between the build we're on (a couple weeks before 0.11.0) and zls randomly stopped working due to breaking changes in build.zig. Instead of executing the build.zig file with the version of zig used by zls, have you considered executing it with the local zig version used in the project? |
I agree that pushing out a nightly build to everyone that uses the extension isn't ideal, but as a 3rd party I can only direct you to the
That is already the case, which, in theory, means that grabbing the previous Cheers |
Ah, so the next time ZLS randomly breaks when I open VSCode, the process is:
Is that correct? Wouldn't it make more sense for:
|
Zig Version
0.11.0-dev.4006+bf827d0b5
Zig Language Server Version
HEAD (latest published to VSCode)
Steps to Reproduce
gh clone oven-sh/bun
bun
identifier (almost all of them)Looks like zls is failing to load build.zig in bun's repository. This started happening yesterday or today. I don't think we made any relevant changes.
Any identifiers which reference an import no longer have completions

Note that
bun
here isconst bun = @import("root").bun
. The@import("root")
seems to not resolve, most likely due to failing to load build.zig.Relevant log (note the invalid unicode character):
Complete log:
Expected Behavior
Completions should appear for imports.
Actual Behavior
Completions do not appear for imports.
The text was updated successfully, but these errors were encountered: