-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Picking up root build.zig in monorepo setup #2061
Comments
Select only the closest
|
Hi, thanks for taking the time to get back to me, real appreciate the work you're putting into I've tried to address some of the raised questions/solutions below. Admittedly, I still feel that selecting the closest Select only the closest build.zig
I don't think a root I can see the angle of wanting to run Additionally, running
Because whilst I want to work on individual libs within a monorepo and get fast feedback they exist within a holistic context and I want to be able to jump between them if required. I could get round this in zed by adding each monorepo folder to the project but it feels like a weird workflow, especially considering working with monorepos within other language ecosystems. Select only the root build.zig
The benefit of having the Afterthought: Maybe this isn't a big deal with build caching. I'm not sure how the zig build system works though and therefore to what level it would be able to avoid re-building downstream dependents. |
Zig Version
0.14.0-dev.2034+56996a280
ZLS Version
0.14.0-dev.179+5acc066
Client / Code Editor / Extensions
Zed 0.158.2
Steps to Reproduce and Observed Behavior
Hi, not sure if this is intended but I'm just flagging as it feels slightly off.
Have popped up an example here
libs/test/src/test.zig
i32
to something else wrong i.e.i24
No syntax highlighting appears where error exists.
I originally thought the root
build.zig
was overriding the use of thelibs/test/build.zig
but even with that removed I'm not seeing anything ran or diagnostics returned on the receivedtextDocument/didSave
message.A quick last test and I've found that syntax highlighting works if I open
libs/test
inzed
as the root folder i.e.zed zed-syntax-highlighting-test/libs/test
so that appears to play a part.Expected Behavior
I would expect the closest
build.zig
to the code in question to be used.Relevant log output
With a root
build.zig
file presentWith no root
build.zig
file presentThe text was updated successfully, but these errors were encountered: