-
Notifications
You must be signed in to change notification settings - Fork 3
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 Support #403
Comments
@turmanticant thanks for the kind words and for raising this ticket. I haven't looked into the configuration of ZLS under Bazel, yet. So far I have just used ZLS with a globally installed Zig toolchain that matches the Zig version used under Bazel. Ideally rules_zig ZLS support would capture two features:
Neither of these features is implemented at the time of writing. And, I think those features can be implemented one-by-one in any order. I had a look at the ZLS configuration schema. I see fields about the Zig installation and standard and builtin library paths. Those would capture point 1 above, but not point 2. For point 2 ZLS would need to expose some interface to configure module search paths. I don't know if ZLS exposes such an interface, but I didn't find one at a cursory look. A good starting point is probably to look at how ZLS manages module search paths with build.zig based projects. |
Thanks for the threads to pull on, that is super helpful. I will take a look into point 2 to see what options for supporting this might look like. |
Hey! I started using this ruleset recently, and have appreciated how well they work!
I am trying to get IDE feedback from
zig_modules
. Everything compiles totally fine, but I don't get any symbol resolution from modules.I am using the zls for IDE feedback (through Zigbrains in a jetbrains IDE).
Are there any tricks to let zls know about these modules?
The text was updated successfully, but these errors were encountered: