-
Notifications
You must be signed in to change notification settings - Fork 153
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
Documentation not indexed #353
Comments
Can you explicit what is missing? I guess you are talking about arguments not being tagged as references but I am not sure. For the first link it would be Thanks! edit: no, it seems you are talking about doc comments. That is related to find-file-doc-comments.pl, which we don't know much about. We need to look into it. |
For the second one, I think it is because of the name mismatch. The code looks for a matching name as a shortcut to avoid needing a full C parser. elixir/find-file-doc-comments.pl Line 90 in 5fe2a8e
|
For the first one, it might be that the ctags invocation needs to be updated. elixir/find-file-doc-comments.pl Line 43 in 5fe2a8e
|
Indeed the ctags inside the Docker container doesn't give an entry for
Compared to a recent ctags (the one used by the prod server):
This is an issue with the universal-ctags packaged by Debian Bookworm:
It doesn't work with So prod server has a recent ctags that works fine, but the initial indexing has been done inside the Docker container. That means blobs that didn't change are wrong in the latest version. To address this, we should:
For (1) we could either switch distro, sideload universal-ctags or compile it manually. |
For this one, I am wondering if we could ignore finding a declaration/prototype below that matches the name. If we take declarations from I cannot think of places where not checking the declaration below would be an issue. |
@tleb Thanks for the research on the first one! Re. the second one, I don't recall why I added that check. I think it might have been to avoid indexing doc comments belonging to things other than functions. E.g., a doc comment for a macro, then the macro, then a function --- we don't want the doc comment associated with the function. |
I am wondering if we could change the approach completely:
Benefits:
Downfalls:
|
Hi, I just found few documentation that are not indexed by elixir:
https://elixir.bootlin.com/linux/v6.12.1/source/mm/util.c#L55 - Because of "noinline"?
https://elixir.bootlin.com/linux/v6.12.1/source/mm/util.c#L817 - Because the name in kdoc is wrong?
Thanks
Louis Chauvet
The text was updated successfully, but these errors were encountered: