-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
Global functions aren't exported #1943
Comments
Try removing the |
Thanks for the suggestion! Unfortunately this doesn't change the behavior in my test. I will try it with a minimal example to make sure it's not a side effect of something else at next. |
It also doesn't work with a minimalistic example(a single function), with or without the meta annotation |
I missed this case since I never used global functions |
Ok, thanks for the confirmation! Do you plan to add that in the near future ? Otherwise maybe I will rework my API to not use global functions.(Which sounds like a good choice anyway 😀) |
Thanks for adding support for that! Do I have to do anything special to be able to export global functions ? It doesn't work for me with the example posted above. (With or without the meta annotation) @sumneko (Version 3.6.17) |
Could you provide a demo file for me to test? |
@sumneko The example I mentioned above in a single lua file doesn't produce any output for example. ---@meta
function dummy() end If there is any other way to export global functions please let me know. |
Currently I would not export anything from meta files, since I don't want to export basic functions (e.g. |
@sumneko in the newest version this is supported, right ? how is it supposed to work ? |
@sumneko Could you please give me an update if this feature is supposed to work now ? (And if it is could you tell me how to export global functions) |
Sorry, this time it was an error on my side, it works great. Thanks a lot for adding this feature! |
When I export documentation it contains all my types and their methods but the global functions are missing.
As an example this is how a file looks like and the function isn't part of the exported documentation:
Is this a bug or am I doing something wrong ?
My goal is to document all functions of my custom engine. It works nicely for all my types and methods but seems like I'm doing something wrong for the functions.
The text was updated successfully, but these errors were encountered: