Skip to content

resolve relative paths for configuration paths #2288

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dotcarmen
Copy link

in my os project, i use a submodule for the zig repo to

  1. avoid hard-coding paths to local git directories
  2. include all commits from ongoing PRs (i have a DEV branch which merges all such PRs)
  3. avoid loading build.zig from the zig repo, since it's unnecessary and causes my project's build.zig to fail to build (since i use zig 0.14 to build my project, only diverging with std)

it'd be nice to support this automatically with editor configurations. for example, in the latest commit of my os project, i included a zls.json that sets the zig lib dir to the one in the submodule.

@dotcarmen
Copy link
Author

dotcarmen commented Apr 29, 2025

note that the os project is my only project currently that uses anything besides standard zig 0.14. it's gotten pretty annoying having to mv ~/Library/Application\ Support/zls.json{,.bak} and back (and subsequent restarting of the LSP) every time i want to work on my os project, so i'm just trying to squash some config issues :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant