{"id":21047209,"url":"https://github.com/labatata101/sith-language-server","last_synced_at":"2026-03-03T20:32:39.477Z","repository":{"id":175088323,"uuid":"562294145","full_name":"LaBatata101/sith-language-server","owner":"LaBatata101","description":"An experimental Python language server made in Rust.","archived":false,"fork":false,"pushed_at":"2025-05-11T21:43:28.000Z","size":3142,"stargazers_count":108,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-26T04:12:00.678Z","etag":null,"topics":["lsp-server","python","python-lsp-server","python-parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LaBatata101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-11-05T22:13:49.000Z","updated_at":"2025-05-25T19:50:27.000Z","dependencies_parsed_at":"2023-06-26T02:46:42.195Z","dependency_job_id":"9f6c7ffe-d52e-40c2-bf00-3ee67f8cd16a","html_url":"https://github.com/LaBatata101/sith-language-server","commit_stats":null,"previous_names":["labatata101/python-lsp","labatata101/sith-language-server"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/LaBatata101/sith-language-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fsith-language-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fsith-language-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fsith-language-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fsith-language-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaBatata101","download_url":"https://codeload.github.com/LaBatata101/sith-language-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaBatata101%2Fsith-language-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30058291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lsp-server","python","python-lsp-server","python-parser","rust"],"created_at":"2024-11-19T14:35:59.600Z","updated_at":"2026-03-03T20:32:39.458Z","avatar_url":"https://github.com/LaBatata101.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SithLSP\n\n\u003e [!WARNING]\n\u003e THIS SOFTWARE IS IN ALPHA STATE EXPECT BUGS, BREAKING CHANGES, CRASHES, EXPLOSIONS AND EVERYTHING IN BETWEEN!\n\nAn experimental language server for the Python programming language.\n\n## Features\n\n- 🪲 Syntax checking\n- ↪ Go to definition\n- 🔍 Find references\n- 🖊️ Autocompletion\n- 📝 Element renaming\n- 🗨️ Hover to view details on variables, functions, and more (_only shows documentation for now_)\n- 💅 Code formatting and linting powered by [Ruff](https://github.com/astral-sh/ruff)\n- 💡 Highlighting of symbol references\n- 🐍 Automatically detect the Python interpreter being used by your project\n- ... and many more!\n\n\u003cdetails\u003e\n\u003csummary\u003eLSP methods implemented so far\u003c/summary\u003e\n\n- textDocument/completion\n- textDocument/publishDiagnostics\n- textDocument/definition\n- textDocument/references\n- textDocument/formatting\n- textDocument/didChange\n- textDocument/documentHighlight\n- textDocument/didOpen\n- textDocument/didClose\n- textDocument/rename\n- textDocument/prepareRename\n- textDocument/hover\n- textDocument/documentSymbol\n- textDocument/codeAction\n- textDocument/signatureHelp\n- workspace/executeCommand\n- workspace/didChangeWorkspaceFolders\n- completionItem/resolve\n- codeAction/resolve\n\n\u003c/details\u003e\n\n## How to use\n\nYou can install SithLSP from the main branch with\n\n```sh\n$ cargo install --git https://github.com/LaBatata101/sith-language-server\n```\n\nTo install a specific release use `--tag`\n\n```sh\n$ cargo install --git https://github.com/LaBatata101/sith-language-server --tag v0.2.3-alpha\n```\n\nYou can also download the latest version of SithLSP from the [releases](https://github.com/LaBatata101/sith-language-server/releases) or\nbuild it manually following the steps below. The VSCode extension can also be downloaded from the [releases](https://github.com/LaBatata101/sith-language-server/releases) page, it's the `.vsix` file.\n\n### Building the project\n\nDownload the repository with\n\n```sh\n$ git clone https://github.com/LaBatata101/sith-language-server\n```\n\nnow build the SithLSP binary (you'll need the latest version of the Rust compiler).\n\n```sh\n$ cd sith-language-server\n$ cargo build --release\n```\n\nThe binary will be located in the `target/release` folder. You should place the binary in `$PATH` or,\nif you're using VSCode, you can use the `sith.executable` setting option.\n\n### Building the VSCode extension\n\nIt's probably better to disable the `Python` or `Pylance` extensions, from Microsoft, to avoid any conflicts when\nusing this extension.\n\nYou can build the VSCode extension manually with\n\n```sh\n# First we need to build the extension package\n$ npm install -g @vscode/vsce\n$ cd sith-language-server/editors/vscode\n# Install dependencies\n$ npm install\n# Build the extension package\n$ npm run compile\n$ vsce package\n# Now manually install the extension\n$ code --install-extension sith-language-server-*.vsix\n```\n\n### Neovim Configuration\n\nIf you're using [`nvim-lspconfig`](https://github.com/neovim/nvim-lspconfig) add this to your config\n\n```lua\nlocal lspconfig = require(\"lspconfig\")\nlocal configs = require(\"lspconfig.configs\")\n\nif not configs.sith_lsp then\n  local root_files = {\n    \"pyproject.toml\",\n    \"requirements.txt\",\n    \"Pipfile\",\n    \"pyrightconfig.json\",\n    \".git\",\n  }\n  configs.sith_lsp = {\n    default_config = {\n      cmd = { \"/path/to/sith-lsp\" },\n      root_dir = function(fname)\n        return lspconfig.util.root_pattern(unpack(root_files))(fname)\n      end,\n      single_file_support = true,\n      filetypes = { \"python\" },\n      settings = {\n          -- Settings for the server goes here.\n          -- Config example\n          ruff = {\n              lint = {\n                  enable = true\n              }\n          }\n      },\n    },\n  }\nend\n```\n\nOtherwise, add this to your `init.lua` config file.\n\n```lua\nlocal pwd = vim.loop.cwd()\nvim.api.nvim_create_autocmd(\"FileType\", {\n  pattern = \"python\",\n  callback = function()\n    vim.lsp.start({\n      name = \"SithLSP\",\n      filetypes = { \"python\" },\n      root_dir = pwd,\n      cmd = { \"/path/to/sith-lsp\" },\n      init_options = {\n        settings = {\n          -- Settings for the server goes here.\n          -- Config example\n          ruff = {\n            lint = {\n              enable = true\n            }\n          }\n        },\n      },\n    })\n  end,\n})\n```\n\n### Helix Configuration\n\nAdd this to your `languages.toml` config file.\n\n```toml\n[language-server.sith-lsp]\ncommand = \"/path/to/sith-lsp\"\n\n# Config example\n[language-server.sith-lsp.config.settings.ruff.lint]\nenable = true\n\n[[language]]\nname = \"python\"\nlanguage-servers = [\n  \"sith-lsp\",\n]\n\n```\n\n# Settings\n\nYou can ommit the `sith` prefix from the settings if you are not on **VSCode**.\n\n### sith.executable\n\n**NOTE:** This setting is only valid in the VSCode extension.\n\nPath to the language server executable.\n\n- type: `string`\n- default: `sith-lsp`\n\n### sith-language-server.trace.server\n\n**NOTE:** This setting is only valid in the VSCode extension.\n\nTraces the communication between VS Code and the language server.\n\n- type: `string`\n- default: `off`\n- options: `off`, `messages`, `verbose`\n\n### sith.logLevel\n\nControls the log level of the language server.\n\n- type: `string`\n- default: `null`\n- options: `error`, `warning`, `info`, `debug`, `trace`\n\n### sith.logFile\n\nPath to the log file for the language server.\n\n- type: `string`\n- default: `null`\n\n### sith.interpreter\n\nPath to a Python interpreter to use to run the LSP server.\nIf this setting is set `sith` won't search automatically for a Python interpreter.\n\n- type: `string`\n- default: `null`\n\n### sith.ruff.enable\n\nWhether to enable Ruff.\n\n- type: `boolean`\n- default: `true` if `sith.ruff.path` is set, `false` otherwise.\n\n### sith.ruff.path\n\nPath to the `ruff` executable, e.g., `[\\\"/path/to/ruff\\\"]`.\n\n- type: `string`\n- default: `null`\n\n### sith.ruff.format.enable\n\nWhether to enable Ruff formatting.\n\n- type: `boolean`\n- default: `true` if `sith.ruff.path` is set, `false` otherwise.\n\n### sith.ruff.format.args\n\nAdditional command-line arguments to pass to `ruff format`, e.g., `\\\"args\\\": [\\\"--config=/path/to/pyproject.toml\\\"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`.\n\n- type: `string[]`\n- default: `[]`\n\n### sith.ruff.lint.enable\n\nWhether to enable Ruff linting.\n\n- type: `boolean`\n- default: `true` if `sith.ruff.path` is set, `false` otherwise.\n\n### sith.ruff.lint.args\n\nAdditional command-line arguments to pass to `ruff check`, e.g., `\\\"args\\\": [\\\"--config=/path/to/pyproject.toml\\\"]`. Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, like `--force-exclude` and `--verbose`.\n\n- type: `string[]`\n- default: `[]`\n\n### sith.ruff.lint.select\n\nSet rule codes to enable. Use `ALL` to enable all rules. See [the documentation](https://docs.astral.sh/ruff/settings/#lint_select) for more details.\n\n- type: `string[]`\n- default: `null`\n\n### sith.ruff.lint.extendSelect\n\nEnable additional rule codes on top of existing configuration, instead of overriding it. Use `ALL` to enable all rules.\n\n- type: `string[]`\n- default: `null`\n\n### sith.ruff.lint.ignore\n\nSet rule codes to disable. See [the documentation](https://docs.astral.sh/ruff/settings/#lint_ignore) for more details.\n\n- type: `string[]`\n- default: `null`\n\n# Acknowledgements\n\n- [Ruff](https://github.com/astral-sh/ruff) - ~~stole~~ borrowed lots of code from them.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabatata101%2Fsith-language-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flabatata101%2Fsith-language-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flabatata101%2Fsith-language-server/lists"}