Skip to content

Documentation generation does not respect --configpath #2997

Closed
@rhys-vdw

Description

@rhys-vdw

How are you using the lua-language-server?

Command Line

Which OS are you using?

Windows WSL

What is the issue affecting?

Other

Expected Behaviour

The specified config file should be used.

Actual Behaviour

The specified config is ignored, meaning that runtime.builtin cannot be customized for export. See #2977 (comment)

Reproduction steps

.luarc.docs.json

{
  "$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
  "runtime.version": "Lua 5.1",
  "runtime.builtin": {
    "basic": "disable",
    "bit": "disable",
    "bit32": "disable",
    "builtin": "disable",
    "coroutine": "disable",
    "debug": "disable",
    "ffi": "disable",
    "io": "disable",
    "jit": "disable",
    "math": "disable",
    "os": "disable",
    "package": "disable",
    "string": "disable",
    "table": "disable",
    "table.clear": "disable",
    "table.new": "disable",
    "utf8": "disable"
  }
}
lua-language-server --configpath .luarc.doc.json --doc ../.. --doc_out_path _data

See that builtins are included in doc output, despite being disabled in specified config file.

Additional Notes

Actually built-ins should not be included regardless: #2977

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