sphinx-lua-ls 3.10.1__tar.gz → 3.11.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.cl-keeper.yaml +2 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/CHANGELOG.md +8 -1
- {sphinx_lua_ls-3.10.1/sphinx_lua_ls.egg-info → sphinx_lua_ls-3.11.0}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/conf.py +1 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/index.rst +1 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/settings.rst +7 -0
- sphinx_lua_ls-3.11.0/docs/source/troubleshooring.rst +78 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/__init__.py +12 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/_version.py +3 -3
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/apidoc.py +7 -2
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/autodoc.py +18 -6
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/config.py +15 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/objtree.py +21 -87
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0/sphinx_lua_ls.egg-info}/PKG-INFO +1 -1
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls.egg-info/SOURCES.txt +1 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.github/dependabot.yml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.github/workflows/ci.yaml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.gitignore +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.pre-commit-config.yaml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/.readthedocs.yaml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/CONTRIBUTING.md +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/LICENSE +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/README.md +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/conftest.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/_extra/robots.txt +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/apidoc.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/autodoc.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/directives.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/example/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/example/logging.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/example.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/installation.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/quickstart.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/docs/source/roles.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/poe_tasks.toml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/pyproject.toml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/scripts/resolve_venv.sh +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/setup.cfg +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/autoindex.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/domain.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/inherited.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/intersphinx.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/lua_ls.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/nodes.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/py.typed +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/pygments.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/static/lua.css +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls/utils.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls.egg-info/dependency_links.txt +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls.egg-info/requires.txt +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/sphinx_lua_ls.egg-info/top_level.txt +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/__init__.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/conftest.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/.gitignore +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/lua/mod/inner.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/lua/mod.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-apidoc/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/globals.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/src/unknown_object.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-disabled/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-disabled/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-disabled/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-disabled/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/.emmyrc.json +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/annotations.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/doctype.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/foo/x.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/global_tables.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/globals.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/globals_2.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/incongruent_export.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/member_ordering.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/module_function.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/module_title.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/nested_modules.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/nesting.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/object_types.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/relative_resolve.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/signatures.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/lua/using.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/doctype.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/global_tables.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/globals.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/incongruent_export.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/member_ordering.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/module_function.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/module_title.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/nested_modules.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/nesting.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/nesting_recursive.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/object_types.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/relative_resolve.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/require.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/signatures.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-emmylua/src/using.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/lua/root_1/autodoc.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/lua/root_2/autodoc.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-roots/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings-override/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings-override/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings-override/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings-override/lua/autodoc.lua +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc-settings-override/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/annotations.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/autoindex.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/directives.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/inherited.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/modules.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-doc/src/refs.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-intersphinx/Makefile +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-intersphinx/conf.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-intersphinx/index.rst +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-intersphinx/make.bat +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_parse.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/apidoc-md-sep.yml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/apidoc-md.yml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/apidoc-rst-sep.yml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/apidoc-rst.yml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-annotations.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-autoindex.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-disabled-index.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-annotations.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-autoindex.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-doctype.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-global_tables.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-globals.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-incongruent_export.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-index.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-member_ordering.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-module_function.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-module_title.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-nested_modules.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-nesting.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-object_types.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-require.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-signatures.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-emmylua-using.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-globals.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-member_ordering.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-module_title.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-nested_modules.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-nesting.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-nesting_recursive.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-object_types.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-relative_resolve.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-roots-default.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-roots-no-roots.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-roots-single-root.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-settings-no-recursion.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-settings-simple.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/autodoc-unknown_object.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-annotations.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-autoindex.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-directives.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-inherited.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-modules.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression/doc-refs.html +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_regression.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/test_versions.py +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/tox.toml +0 -0
- {sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/uv.lock +0 -0
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [3.11.0] - 2026-03-29
|
|
6
|
+
|
|
7
|
+
- Added config option to print debug logs: `lua_ls_verbose`.
|
|
8
|
+
- Improved error messages related to object lookup errors and added a troubleshooting
|
|
9
|
+
guide.
|
|
10
|
+
|
|
5
11
|
## [3.10.1] - 2026-03-29
|
|
6
12
|
|
|
7
13
|
- Fiexd broken cross-references on the search page.
|
|
@@ -277,6 +283,7 @@ Initial release.
|
|
|
277
283
|
[3.1.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.0.0...v3.1.0
|
|
278
284
|
[3.10.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.9.0...v3.10.0
|
|
279
285
|
[3.10.1]: https://github.com/sphinx-contrib/lua-ls/compare/v3.10.0...v3.10.1
|
|
286
|
+
[3.11.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.10.1...v3.11.0
|
|
280
287
|
[3.2.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.1.0...v3.2.0
|
|
281
288
|
[3.3.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.2.0...v3.3.0
|
|
282
289
|
[3.4.0]: https://github.com/sphinx-contrib/lua-ls/compare/v3.3.0...v3.4.0
|
|
@@ -292,4 +299,4 @@ Initial release.
|
|
|
292
299
|
[@pieterlexis]: https://github.com/pieterlexis
|
|
293
300
|
[emmylua]: https://github.com/EmmyLuaLs/emmylua-analyzer-rust/
|
|
294
301
|
[luals#3301]: https://github.com/LuaLS/lua-language-server/issues/3301
|
|
295
|
-
[unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.
|
|
302
|
+
[unreleased]: https://github.com/sphinx-contrib/lua-ls/compare/v3.11.0...HEAD
|
|
@@ -29,6 +29,7 @@ lua_ls_backend = "emmylua"
|
|
|
29
29
|
lua_ls_class_default_function_name = "__init"
|
|
30
30
|
lua_ls_class_default_force_non_colon = True
|
|
31
31
|
lua_ls_class_default_force_return_self = True
|
|
32
|
+
lua_ls_verbose = True
|
|
32
33
|
|
|
33
34
|
intersphinx_mapping = {
|
|
34
35
|
"python": ("https://docs.python.org/3", None),
|
|
@@ -244,3 +244,10 @@ Settings
|
|
|
244
244
|
to use Sphinx's global setting ``maximum_signature_line_length``.
|
|
245
245
|
If ``maximum_signature_line_length`` is also ``None``,
|
|
246
246
|
signature wrapping will be disabled.
|
|
247
|
+
|
|
248
|
+
.. py:data:: lua_ls_verbose
|
|
249
|
+
:type: bool
|
|
250
|
+
|
|
251
|
+
Prints debug logs from sphinx-lua-ls without raising verbosity level
|
|
252
|
+
of other Sphinx loggers. Set to ``True`` to see object tree discovered
|
|
253
|
+
by lua analyzer.
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Troubleshooring
|
|
2
|
+
===============
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
Autodoc can't fund a module or object
|
|
6
|
+
-------------------------------------
|
|
7
|
+
|
|
8
|
+
1. Set ``lua_ls_verbose = True`` in ``conf.py`` and run build with ``-E`` (``make html O="-E"``).
|
|
9
|
+
|
|
10
|
+
#. Search build log for record ``Lua analysis finished. Found objects:`` and see
|
|
11
|
+
if object that can't be found appears in the object tree.
|
|
12
|
+
|
|
13
|
+
#. If it's there, check spelling and full path of the object. Error message will contain
|
|
14
|
+
all candidate paths that Sphinx-LuaLs tried when resolving it.
|
|
15
|
+
|
|
16
|
+
#. If it's not there, check your documentation markup, EmmyLua/LuaLs settings,
|
|
17
|
+
and project paths and directories:
|
|
18
|
+
|
|
19
|
+
.. tab-set::
|
|
20
|
+
:sync-group: backend
|
|
21
|
+
|
|
22
|
+
.. tab-item:: EmmyLua
|
|
23
|
+
:sync: emmylua
|
|
24
|
+
|
|
25
|
+
a. Check that :py:data:`lua_ls_project_root` and :py:data:`lua_ls_project_directories`
|
|
26
|
+
point to the right places.
|
|
27
|
+
|
|
28
|
+
You can see how Sphinx-LuaLs launched language server by grepping build
|
|
29
|
+
log for message ``running lua-language-server with args``.
|
|
30
|
+
|
|
31
|
+
#. Make sure that you have an explicit return at the end of a module.
|
|
32
|
+
|
|
33
|
+
If your module only sets global variables, return an empty table from it:
|
|
34
|
+
|
|
35
|
+
.. code-block:: lua
|
|
36
|
+
|
|
37
|
+
-- mod.lua
|
|
38
|
+
|
|
39
|
+
--- Module documentation.
|
|
40
|
+
return {}
|
|
41
|
+
|
|
42
|
+
#. Alternatively, if your module exports a global variable with the same name,
|
|
43
|
+
make sure to set its doctype:
|
|
44
|
+
|
|
45
|
+
.. code-block:: lua
|
|
46
|
+
|
|
47
|
+
-- mod.lua
|
|
48
|
+
|
|
49
|
+
--- Module documentation.
|
|
50
|
+
---
|
|
51
|
+
--- @doctype module
|
|
52
|
+
mod = {
|
|
53
|
+
-- Module contents.
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#. Make sure that your project directories are listed in ``.emmyrc.json``
|
|
57
|
+
under ``workspace.workspaceRoots`` and not ``workspace.library``.
|
|
58
|
+
|
|
59
|
+
.. tab-item:: LuaLs
|
|
60
|
+
:sync: luals
|
|
61
|
+
|
|
62
|
+
a. Check that :py:data:`lua_ls_project_root` and :py:data:`lua_ls_project_directories`
|
|
63
|
+
point to the right places.
|
|
64
|
+
|
|
65
|
+
You can see how Sphinx-LuaLs launched language server by grepping build
|
|
66
|
+
log for message ``running lua-language-server with args``.
|
|
67
|
+
|
|
68
|
+
#. Make sure that you've created a class named after your module, and set its
|
|
69
|
+
doctype:
|
|
70
|
+
|
|
71
|
+
.. code-block:: lua
|
|
72
|
+
|
|
73
|
+
-- mod.lua
|
|
74
|
+
|
|
75
|
+
--- Module documentation.
|
|
76
|
+
---
|
|
77
|
+
--- !doctype module
|
|
78
|
+
--- @class mod
|
|
@@ -12,6 +12,7 @@ import sphinx.builders.html
|
|
|
12
12
|
import sphinx.domains
|
|
13
13
|
import sphinx.errors
|
|
14
14
|
from sphinx.util import logging
|
|
15
|
+
from sphinx.util.console import get_terminal_width
|
|
15
16
|
from sphinx.util.display import progress_message
|
|
16
17
|
from sphinx.util.fileutil import copy_asset_file
|
|
17
18
|
|
|
@@ -36,6 +37,7 @@ def run_lua_ls(app: sphinx.application.Sphinx):
|
|
|
36
37
|
domain: sphinx_lua_ls.domain.LuaDomain = app.env.get_domain("lua") # type: ignore
|
|
37
38
|
|
|
38
39
|
if domain.config.backend == "disable":
|
|
40
|
+
logger.debug("skipping lua-ls run: backend is 'disabled'")
|
|
39
41
|
return
|
|
40
42
|
|
|
41
43
|
root_dir = domain.config.project_root
|
|
@@ -62,6 +64,9 @@ def run_lua_ls(app: sphinx.application.Sphinx):
|
|
|
62
64
|
modified = True
|
|
63
65
|
break
|
|
64
66
|
if not modified:
|
|
67
|
+
logger.debug(
|
|
68
|
+
"skipping lua-ls run: lua files were not modified since previous run"
|
|
69
|
+
)
|
|
65
70
|
return
|
|
66
71
|
|
|
67
72
|
cwd = pathlib.Path.cwd()
|
|
@@ -130,6 +135,12 @@ def run_lua_ls(app: sphinx.application.Sphinx):
|
|
|
130
135
|
if parser.runtime_version and not domain.config.lua_version:
|
|
131
136
|
domain.config.lua_version = parser.runtime_version
|
|
132
137
|
|
|
138
|
+
logger.debug("Lua analysis finished. Found objects:")
|
|
139
|
+
logger.debug("-" * get_terminal_width())
|
|
140
|
+
objtree_s = str(domain.objtree)
|
|
141
|
+
logger.debug("%s", "<globals>\n" + objtree_s if objtree_s else "<empty>")
|
|
142
|
+
logger.debug("-" * get_terminal_width())
|
|
143
|
+
|
|
133
144
|
|
|
134
145
|
def run_apidoc(
|
|
135
146
|
app: sphinx.application.Sphinx,
|
|
@@ -210,6 +221,7 @@ def setup(app: sphinx.application.Sphinx):
|
|
|
210
221
|
app.add_config_value("lua_ls_class_default_force_non_colon", None, rebuild="env")
|
|
211
222
|
app.add_config_value("lua_ls_class_default_force_return_self", None, rebuild="env")
|
|
212
223
|
app.add_config_value("lua_ls_maximum_signature_line_length", 50, rebuild="env")
|
|
224
|
+
app.add_config_value("lua_ls_verbose", False, rebuild="")
|
|
213
225
|
|
|
214
226
|
app.add_directive_to_domain(
|
|
215
227
|
"lua", "autoobject", sphinx_lua_ls.autodoc.AutoObjectDirective
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '3.
|
|
22
|
-
__version_tuple__ = version_tuple = (3,
|
|
21
|
+
__version__ = version = '3.11.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (3, 11, 0)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'gf59390e32'
|
|
@@ -145,9 +145,14 @@ def _generate(
|
|
|
145
145
|
is_global: bool = False,
|
|
146
146
|
parent_modname: str | None = None,
|
|
147
147
|
):
|
|
148
|
-
obj = objtree.
|
|
148
|
+
obj, modname, classname, objname = objtree.find_path(fullname)
|
|
149
149
|
if not obj:
|
|
150
|
-
|
|
150
|
+
parent = ".".join(filter(None, [modname, classname])) or "<global namespace>"
|
|
151
|
+
msg = f"unknown lua object {fullname}:\n"
|
|
152
|
+
msg += f" {parent} has no item {objname!r}\n"
|
|
153
|
+
msg += "Hint: set `lua_ls_verbose = True` in conf.py to see all objects exported by lua analyzer.\n"
|
|
154
|
+
msg += "Hint: see troubleshooting guide at https://sphinx-lua-ls.readthedocs.io/en/latest/troubleshooring.html"
|
|
155
|
+
raise sphinx.errors.ConfigError(msg)
|
|
151
156
|
|
|
152
157
|
autodoc_options = options.copy()
|
|
153
158
|
for name, value in obj.parsed_options.items():
|
|
@@ -1099,8 +1099,6 @@ class AutoObjectDirective(AutodocUtilsMixin):
|
|
|
1099
1099
|
raise self.error("got an empty object name")
|
|
1100
1100
|
|
|
1101
1101
|
found = self.get_root(name)
|
|
1102
|
-
if not found:
|
|
1103
|
-
raise self.error(f"unknown lua object {name}")
|
|
1104
1102
|
|
|
1105
1103
|
root, modname, classname, objname = found
|
|
1106
1104
|
|
|
@@ -1131,7 +1129,7 @@ class AutoObjectDirective(AutodocUtilsMixin):
|
|
|
1131
1129
|
def get_signatures(self) -> list[str]:
|
|
1132
1130
|
return sphinx_lua_ls.domain.LuaObject.get_signatures(self) # type: ignore
|
|
1133
1131
|
|
|
1134
|
-
def get_root(self, name: str) -> tuple[Object, str, str, str]
|
|
1132
|
+
def get_root(self, name: str) -> tuple[Object, str, str, str]:
|
|
1135
1133
|
modname = self.options.get("module", self.env.ref_context.get("lua:module"))
|
|
1136
1134
|
if "module" in self.options:
|
|
1137
1135
|
classname = ""
|
|
@@ -1144,11 +1142,25 @@ class AutoObjectDirective(AutodocUtilsMixin):
|
|
|
1144
1142
|
".".join(filter(None, [name])),
|
|
1145
1143
|
]
|
|
1146
1144
|
|
|
1145
|
+
attempts: list[tuple[str, str, str, str]] = []
|
|
1146
|
+
|
|
1147
1147
|
for candidate in candidates:
|
|
1148
|
-
|
|
1149
|
-
|
|
1148
|
+
obj, modname, classname, objname = self.objtree.find_path(candidate)
|
|
1149
|
+
if obj:
|
|
1150
|
+
return obj, modname, classname, objname
|
|
1151
|
+
else:
|
|
1152
|
+
attempts.append((candidate, modname, classname, objname))
|
|
1153
|
+
|
|
1154
|
+
msg = f"unknown lua object {name}:\n"
|
|
1155
|
+
for candidate, modname, classname, objname in attempts:
|
|
1156
|
+
parent = (
|
|
1157
|
+
".".join(filter(None, [modname, classname])) or "<global namespace>"
|
|
1158
|
+
)
|
|
1159
|
+
msg += f" Trying as {candidate}: {parent} has no item {objname!r}\n"
|
|
1160
|
+
msg += "Hint: set `lua_ls_verbose = True` in conf.py to see all objects exported by lua analyzer.\n"
|
|
1161
|
+
msg += "Hint: see troubleshooting guide at https://sphinx-lua-ls.readthedocs.io/en/latest/troubleshooring.html"
|
|
1150
1162
|
|
|
1151
|
-
|
|
1163
|
+
raise self.error(msg)
|
|
1152
1164
|
|
|
1153
1165
|
|
|
1154
1166
|
class AutoFunctionDirective(AutoObjectDirective):
|
|
@@ -3,6 +3,7 @@ from __future__ import annotations
|
|
|
3
3
|
import dataclasses
|
|
4
4
|
import pathlib
|
|
5
5
|
import re
|
|
6
|
+
import sys
|
|
6
7
|
import typing as _t
|
|
7
8
|
from dataclasses import dataclass
|
|
8
9
|
|
|
@@ -41,6 +42,7 @@ class LuaDomainConfig:
|
|
|
41
42
|
class_default_force_non_colon: bool = False
|
|
42
43
|
class_default_force_return_self: bool = False
|
|
43
44
|
maximum_signature_line_length: int | None = 50
|
|
45
|
+
verbose: bool = False
|
|
44
46
|
|
|
45
47
|
|
|
46
48
|
def _type(name: str, value, types: _t.Type[T] | tuple[_t.Type[T], ...]) -> T:
|
|
@@ -326,5 +328,18 @@ def set_options(app: sphinx.application.Sphinx):
|
|
|
326
328
|
(int, type(None)),
|
|
327
329
|
)
|
|
328
330
|
|
|
331
|
+
if config["lua_ls_verbose"] is not None:
|
|
332
|
+
domain_config.verbose = _type("lua_ls_verbose", config["lua_ls_verbose"], bool)
|
|
333
|
+
if domain_config.verbose:
|
|
334
|
+
app.verbosity = max(app.verbosity, 1)
|
|
335
|
+
root_logger = logging.getLogger("sphinx_lua_ls")
|
|
336
|
+
root_logger.logger.propagate = False
|
|
337
|
+
handler = logging.NewLineStreamHandler(
|
|
338
|
+
logging.SafeEncodingWriter(sys.stdout)
|
|
339
|
+
)
|
|
340
|
+
handler.setFormatter(logging.ColorizeFormatter())
|
|
341
|
+
root_logger.logger.addHandler(handler)
|
|
342
|
+
root_logger.setLevel("DEBUG")
|
|
343
|
+
|
|
329
344
|
domain = _t.cast(sphinx_lua_ls.domain.LuaDomain, app.env.get_domain("lua"))
|
|
330
345
|
domain.config = domain_config
|
|
@@ -362,38 +362,25 @@ class Object(DocstringMixin):
|
|
|
362
362
|
return self.__class__.__name__
|
|
363
363
|
|
|
364
364
|
def __str__(self) -> str:
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
res += f"\n {name} {first}{rest}"
|
|
385
|
-
|
|
386
|
-
if self.children and tail:
|
|
387
|
-
res += "\n"
|
|
388
|
-
res += tail
|
|
389
|
-
|
|
390
|
-
return res
|
|
391
|
-
|
|
392
|
-
def _print_object(self) -> str:
|
|
393
|
-
return "{"
|
|
394
|
-
|
|
395
|
-
def _print_object_tail(self) -> str:
|
|
396
|
-
return "}"
|
|
365
|
+
lines: list[str] = []
|
|
366
|
+
self._print_children_tree(lines, "")
|
|
367
|
+
return "\n".join(lines)
|
|
368
|
+
|
|
369
|
+
def _print_children_tree(self, lines: list[str], prefix: str):
|
|
370
|
+
items = list(self.children.items())
|
|
371
|
+
for i, (name, ch) in enumerate(items):
|
|
372
|
+
is_last = i == len(items) - 1
|
|
373
|
+
connector = "└── " if is_last else "├── "
|
|
374
|
+
continuation = " " if is_last else "│ "
|
|
375
|
+
|
|
376
|
+
desc = f"{prefix}{connector}"
|
|
377
|
+
if ch.kind:
|
|
378
|
+
desc += f"{ch.kind.value} "
|
|
379
|
+
desc += name
|
|
380
|
+
lines.append(desc)
|
|
381
|
+
|
|
382
|
+
ch_prefix = prefix + continuation
|
|
383
|
+
ch._print_children_tree(lines, ch_prefix)
|
|
397
384
|
|
|
398
385
|
def find(self, path: str) -> Object | None:
|
|
399
386
|
"""
|
|
@@ -413,7 +400,7 @@ class Object(DocstringMixin):
|
|
|
413
400
|
root = root.children[name]
|
|
414
401
|
return root
|
|
415
402
|
|
|
416
|
-
def find_path(self, path: str) -> tuple[Object, str, str, str]
|
|
403
|
+
def find_path(self, path: str) -> tuple[Object | None, str, str, str]:
|
|
417
404
|
"""
|
|
418
405
|
Find an object and return a path to it.
|
|
419
406
|
|
|
@@ -433,7 +420,7 @@ class Object(DocstringMixin):
|
|
|
433
420
|
|
|
434
421
|
for name in path.split("."):
|
|
435
422
|
if name not in root.children:
|
|
436
|
-
return None
|
|
423
|
+
return None, ".".join(modname), ".".join(classname), name
|
|
437
424
|
|
|
438
425
|
root = root.children[name]
|
|
439
426
|
|
|
@@ -478,13 +465,6 @@ class Data(Object):
|
|
|
478
465
|
else:
|
|
479
466
|
return None
|
|
480
467
|
|
|
481
|
-
def _print_object(self) -> str:
|
|
482
|
-
lit = f" = {self.lit}" if self.lit else ""
|
|
483
|
-
return f": {self.type}{lit}"
|
|
484
|
-
|
|
485
|
-
def _print_object_tail(self) -> str:
|
|
486
|
-
return ""
|
|
487
|
-
|
|
488
468
|
|
|
489
469
|
@dataclass(kw_only=True, repr=False, eq=False)
|
|
490
470
|
class Table(Object):
|
|
@@ -505,12 +485,6 @@ class Table(Object):
|
|
|
505
485
|
else:
|
|
506
486
|
return None
|
|
507
487
|
|
|
508
|
-
def _print_object(self) -> str:
|
|
509
|
-
return "= table {"
|
|
510
|
-
|
|
511
|
-
def _print_object_tail(self) -> str:
|
|
512
|
-
return "}"
|
|
513
|
-
|
|
514
488
|
|
|
515
489
|
@dataclass(kw_only=True, repr=False, eq=False)
|
|
516
490
|
class Function(Object):
|
|
@@ -548,19 +522,6 @@ class Function(Object):
|
|
|
548
522
|
else:
|
|
549
523
|
return None
|
|
550
524
|
|
|
551
|
-
def _print_object(self) -> str:
|
|
552
|
-
params = ", ".join(map(str, self.params))
|
|
553
|
-
generics = ", ".join(map(str, self.generics))
|
|
554
|
-
if generics:
|
|
555
|
-
generics = f"<{generics}>"
|
|
556
|
-
returns = ", ".join(map(str, self.returns))
|
|
557
|
-
if returns:
|
|
558
|
-
returns = " -> " + returns
|
|
559
|
-
return f"= function{generics}({params}){returns}"
|
|
560
|
-
|
|
561
|
-
def _print_object_tail(self) -> str:
|
|
562
|
-
return ""
|
|
563
|
-
|
|
564
525
|
|
|
565
526
|
@dataclass(kw_only=True, repr=False, eq=False)
|
|
566
527
|
class Class(Object):
|
|
@@ -595,15 +556,6 @@ class Class(Object):
|
|
|
595
556
|
else:
|
|
596
557
|
return None
|
|
597
558
|
|
|
598
|
-
def _print_object(self) -> str:
|
|
599
|
-
generics = ", ".join(map(str, self.generics))
|
|
600
|
-
if generics:
|
|
601
|
-
generics = f"<{generics}>"
|
|
602
|
-
return f"= class{generics}({', '.join(self.bases)})"
|
|
603
|
-
|
|
604
|
-
def _print_object_tail(self) -> str:
|
|
605
|
-
return ""
|
|
606
|
-
|
|
607
559
|
|
|
608
560
|
@dataclass(kw_only=True, repr=False, eq=False)
|
|
609
561
|
class Alias(Object):
|
|
@@ -632,15 +584,6 @@ class Alias(Object):
|
|
|
632
584
|
else:
|
|
633
585
|
return None
|
|
634
586
|
|
|
635
|
-
def _print_object(self) -> str:
|
|
636
|
-
generics = ", ".join(map(str, self.generics))
|
|
637
|
-
if generics:
|
|
638
|
-
generics = f"<{generics}>"
|
|
639
|
-
return f"= alias{generics}({self.type})"
|
|
640
|
-
|
|
641
|
-
def _print_object_tail(self) -> str:
|
|
642
|
-
return ""
|
|
643
|
-
|
|
644
587
|
|
|
645
588
|
@dataclass(kw_only=True, repr=False, eq=False)
|
|
646
589
|
class Enum(Object):
|
|
@@ -669,15 +612,6 @@ class Enum(Object):
|
|
|
669
612
|
else:
|
|
670
613
|
return None
|
|
671
614
|
|
|
672
|
-
def _print_object(self) -> str:
|
|
673
|
-
generics = ", ".join(map(str, self.generics))
|
|
674
|
-
if generics:
|
|
675
|
-
generics = f"<{generics}>"
|
|
676
|
-
return f"= enum{generics}({self.type})"
|
|
677
|
-
|
|
678
|
-
def _print_object_tail(self) -> str:
|
|
679
|
-
return ""
|
|
680
|
-
|
|
681
615
|
|
|
682
616
|
class Parser:
|
|
683
617
|
#: Lua version used by this runtime.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/member_ordering.lua
RENAMED
|
File without changes
|
|
File without changes
|
{sphinx_lua_ls-3.10.1 → sphinx_lua_ls-3.11.0}/test/roots/test-autodoc/lua/nested_modules.lua
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|