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

Autodoc namespace registers as value when the import is in a sub-directory #20283

Open
Guigui220D opened this issue Jun 13, 2024 · 1 comment
Labels
autodoc The web application for interactive documentation and generation of its assets. bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@Guigui220D
Copy link

Zig Version

0.14.0-dev.27+0cef727e5

Steps to Reproduce and Observed Behavior

I realize this might be a specific case of this line in #19249

when global const has a type of type, categorize it as a type despite its value

Get the minimal example: https://github.com/Guigui220D/zig-autodoc-bug
Run zig build test
Observe that the docs shows sub as a namespace but add as a value, when the only difference is that add is an import from a sub-directory

Expected Behavior

Both add and sub should be shown as namespaces

@Guigui220D Guigui220D added the bug Observed behavior contradicts documented or intended behavior label Jun 13, 2024
@Guigui220D
Copy link
Author

Is there a known workaround to this?

@Vexu Vexu added the autodoc The web application for interactive documentation and generation of its assets. label Jun 13, 2024
@Vexu Vexu added this to the 0.14.0 milestone Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autodoc The web application for interactive documentation and generation of its assets. bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants