Skip to content

Enum with >100 members says undefined field for later members #3117

@justarandomgeek

Description

@justarandomgeek

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Type Checking

Expected Behaviour

We have an @enum defines.events with approximately 300 values (and growing) in it in the Factorio API, but LuaLS 3.13.8 seems to only consider the first 100 values in it to be valid members of the type, giving "unknown field" errors when using later members of the enum.

Actual Behaviour

undefined field on later members

Reproduction steps

create a large enum. use it.

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions