Skip to content

lute check: globalTypes.d.luau fails to load #1312

Description

@nuioiz

lute check errors when trying to use the definitions feature from #1234 with the Roblox API types

.config.luau:

return {
    lute = {
        check = {
            definitions = {
                roblox = "./types/globalTypes.d.luau",
            },
        },
    },
}

Terminal:

> lute check main.luau
Error: Failed to load definition file: C:/Users/…/types/globalTypes.d.luau
C:/Users/…/types/globalTypes.d.luau:1:1: Internal error: Code is too complex to typecheck! Consider adding type annotations around this area

lute check should be able to load the full Roblox global type definitions without hitting an internal complexity limit, considering this is one of the main use cases for definitions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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