{"id":27650,"library":"clangd","title":"clangd","description":"Binary wheels for clangd, a clang-based C++ language server (LSP). Version 22.1.1 wraps clangd 22.1.1. Useful for integrating clangd into Python environments without manual binary installation.","status":"active","version":"22.1.1","language":"python","source_language":"en","source_url":"https://github.com/jmpfar/clangd-wheel","tags":["clangd","LSP","C++","binary","wheel"],"install":[{"cmd":"pip install clangd","lang":"bash","label":"Default install"}],"dependencies":[],"imports":[{"note":"clangd does not export a separate class; the module itself provides access to the binary path.","wrong":"","symbol":"ClangdServer","correct":"import clangd"}],"quickstart":{"code":"import clangd\nimport subprocess\nprint(clangd.__version__)\nsubprocess.run([clangd.__path__[0] + '/bin/clangd', '--version'])","lang":"python","description":"Print clangd version via Python."},"warnings":[{"fix":"Use subprocess.run([clangd.__path__[0] + '/bin/clangd', '--version']) to verify.","message":"clangd is a binary wheel; no Python API is provided. You must invoke the clangd binary using subprocess or similar.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to >=22.1.0 via pip install --upgrade clangd.","message":"Versions prior to 22.1.0 used a different packaging structure; importing clangd as a module might behave differently.","severity":"deprecated","affected_versions":"<22.1.0"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Check supported platforms: https://github.com/jmpfar/clangd-wheel/releases. Use pip install clangd and ensure a compatible Python version (3.6+).","cause":"clangd is not installed or pip install failed because no binary wheel matches the platform.","error":"ModuleNotFoundError: No module named 'clangd'"},{"fix":"Access the binary via clangd.__path__[0] + '/bin/clangd' and call it with subprocess.","cause":"clangd does not provide a Python class; it is a binary distribution.","error":"AttributeError: module 'clangd' has no attribute 'ClangdServer'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}