LuaLS / LuaLS/lua-language-server
Auto-generated FFI bindings seem to be broken
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
### How are you using the lua-language-server?
Visual Studio Code Extension (sumneko.lua)
### Which OS are you using?
MacOS
### What is the issue affecting?
Annotations, Type Checking, Libraries
### Expected Behaviour
the automated FFI type creation to create valid types, for every declaration
### Actual Behaviour
### Reproduction steps
1. Use [this](https://gist.github.com/Frityet/9a13a2704764ea74dc31246f97c21951) file
2. Reload FFI metadata
3. Inspect the generated file
### Additional Notes
_No response_
### Log File
[lls-log.log](https://github.com/LuaLS/lua-language-server/files/14115361/lls-log.log)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reproduction file in the linked gist and the attached lls-log.log, then reload the FFI metadata and inspect the generated file as described. Compare the generated declarations with the source declarations and the expected valid types. Done means automated FFI type creation produces valid types for every declaration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100