Replies: 1 comment
-
Please open an issue about it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The project I'm working on/with has a set of APIs with the code written in C/C++. The project has an interface to expose these APIs to Lua scripts. The annotations for these APIs are created and in general look something like so:
Many of the "properties" are written as functions to encourage the correct usage against the interface (these typically require a () on the property to ensure the value is appropriately typed rather than a general
userdata
structure). This, rightly so, gives a warning "Annotations specify that a return value is required here." I've disabled the warning in the workspace these annotations are maintained.When I use these annotations in another project (separate workspace not in the same path as the annotations), I'll often get the warning given above for properties used in the project. Either by directly coding or pasting in. If I open the offending file and close it, the warnings go away. This is both annoying and distracting. I don't want to turn off the warning completely as it's valid for use in my projects.
Am I missing a setting somewhere to prevent this crossover behavior or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions