Skip to content
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

comptime-resolving strategy to get include paths for import #1

Open
matu3ba opened this issue Jun 12, 2022 · 1 comment
Open

comptime-resolving strategy to get include paths for import #1

matu3ba opened this issue Jun 12, 2022 · 1 comment

Comments

@matu3ba
Copy link

matu3ba commented Jun 12, 2022

This is required for package path resolving as discussed on discord.
Also, I think this is required to resolve OptionsStep (see for an usage example build_options inside src/), if those is used as import path (ie for the package).

ziglang/zig#3372 is much more complex
ziglang/zig#9973 is way simpler, but would need more handling of comptime generated import paths.

@matu3ba
Copy link
Author

matu3ba commented Sep 25, 2022

Funny enough, I am working on resolving packages now for file reduction.
The info is also used by Autodoc. The plugin is extremely useful and relative simple with the AST info.
For some reason zls is still failing to jump to the tag source and many other things, which is annoying.

I used

fd '.*.zig' src >> files
fd '.*.zig' lib/std >> files
FILES=$(cat files)
ztags $FILES

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

No branches or pull requests

1 participant