Skip to main content

q-lang-server

Offline Language Server Protocol implementation for q and k, written in Rust and powered by tree-sitter.

The server binary is named qls.

Install

pip install q-lang-server

Or with uv:

uv pip install q-lang-server

This installs the qls executable on your PATH.

Features

  • Diagnostics (linter)
  • Document formatting
  • Go to definition
  • Find references
  • Rename symbol (with prepare rename)
  • Hover
  • Document symbols and workspace symbols
  • Document highlight
  • Completion (with resolve)
  • Signature help
  • Semantic tokens

Source files are analyzed offline from the workspace. By default the server looks under **/src/**/*.q and **/src/**/*.k. Add ; to mark statement ends when needed for more accurate parsing.

Formatter

The formatter keeps lines within 100 characters and produces stable output — formatting an already formatted file changes nothing.

Long symbol lists are wrapped with a trailing , so each continuation line still joins into the same list:

longSyms: `symbol000`symbol001`symbol002`symbol003`symbol004`symbol005`symbol006`symbol007,
  `symbol008`symbol009`symbol010`symbol011`symbol012`symbol013`symbol014`symbol015`symbol016;

Symbol lists inside q-sql phases are left as-is, since a , there separates columns or conditions.

Ignore directives

Place either comment above a block to skip analysis for that block:

// q-lang-server-ignore-linter
// q-lang-server-ignore-formatter

Editor setup

Neovim

Use chili-neovim for q/k syntax, process management, and LSP. It starts qls for .q / .k buffers by default.

  1. Install qls (see above) and ensure it is on your $PATH.
  2. Install chili-neovim with lazy.nvim:

Minimal:

{ "jshinonome/chili-neovim" }

With options and completion:

{
  "jshinonome/chili-neovim",
  main = "chili",
  dependencies = {
    "hrsh7th/nvim-cmp",
    "hrsh7th/cmp-nvim-lsp",
    "hrsh7th/cmp-buffer",
    "hrsh7th/cmp-vsnip",
    "hrsh7th/vim-vsnip",
  },
  opts = {
    qls = {
      cmd = { "qls" },
      filetypes = { "q" }, -- .q and .k
      document_highlight = true,
      format_on_save = true,
    },
  },
}

See the chili-neovim README for process config, commands, and keybindings.

Other editors

Any LSP client that can launch qls over stdio can use this server. Point the client at the qls binary and associate it with q and k filetypes.

License

Licensed under the Apache License, Version 2.0.

Metadata

Release files for q-lang-server 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for q-lang-server 1.0.6
File Actions
q_lang_server-1.0.6-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for q_lang_server-1.0.6-py3-none-win_amd64.whl
q_lang_server-1.0.6-py3-none-win32.whl Python 3 none Windows x86-32 Details for q_lang_server-1.0.6-py3-none-win32.whl
q_lang_server-1.0.6-py3-none-musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64 Details for q_lang_server-1.0.6-py3-none-musllinux_1_2_x86_64.whl
q_lang_server-1.0.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for q_lang_server-1.0.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
q_lang_server-1.0.6-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for q_lang_server-1.0.6-py3-none-macosx_11_0_arm64.whl
q_lang_server-1.0.6-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for q_lang_server-1.0.6-py3-none-macosx_10_12_x86_64.whl

Total release size: 11.9 MB

Release files / q_lang_server-1.0.6-py3-none-win_amd64.whl

Download URL q_lang_server-1.0.6-py3-none-win_amd64.whl
Size 2.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
5013e47bb6bfff3d3e16c7f855057f8db708071bc93a1ec55d23e9785d7d92dc
BLAKE2b-256 checksum
How to use checksums
5fdec164123196ac3e34968ec9c10c11e6015af8b28f8c32b97427d40e5b267d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / q_lang_server-1.0.6-py3-none-win32.whl

Download URL q_lang_server-1.0.6-py3-none-win32.whl
Size 1.8 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
ae879ec9b62e70f558f3b452efe6c4c334b3e99aaf144ff1d1e7f73382bc3f85
BLAKE2b-256 checksum
How to use checksums
a900f998b551e726cae38c90d28641ab5c883b04ca1d0e31ca25c44639c9ce4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / q_lang_server-1.0.6-py3-none-musllinux_1_2_x86_64.whl

Download URL q_lang_server-1.0.6-py3-none-musllinux_1_2_x86_64.whl
Size 2.1 MB
Tags Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
a57693b7a8cf456c6e7a3a04bf47fb7801c6b894758844c4455bb8152bcdaa1b
BLAKE2b-256 checksum
How to use checksums
2fca6df24e9a8faae184c5e3a86ecae134b5fb078c130124112f2baad0828291
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / q_lang_server-1.0.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL q_lang_server-1.0.6-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
ba66c1896921e6378e280035199b9d732a6a13dae1f8492b3b30c67e09d217d6
BLAKE2b-256 checksum
How to use checksums
7b6399faa4ed9f8d8279f3f28f70f8dcc0f1abe397e1957651ab8493569993da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / q_lang_server-1.0.6-py3-none-macosx_11_0_arm64.whl

Download URL q_lang_server-1.0.6-py3-none-macosx_11_0_arm64.whl
Size 1.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
778203e1e82fafdbe14a23b2c503688d493aae7f81e552d5ea12da00893999f7
BLAKE2b-256 checksum
How to use checksums
4725a68cd0b6a0b62f578f6df4b485ea2a3e2bdeecc67798fa0205ed290bddcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / q_lang_server-1.0.6-py3-none-macosx_10_12_x86_64.whl

Download URL q_lang_server-1.0.6-py3-none-macosx_10_12_x86_64.whl
Size 2.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d248d8f5df9136797129f2cf01b29abd60c0364f00a14335062bf64461f48158
BLAKE2b-256 checksum
How to use checksums
d2c10494ab6337c38f765fb8e98c2e4ae0e5c6f92f9cbec1cf131faaf1cfb4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for q-lang-server 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page