Package Details: cmake-language-server 0.1.10-3

Git Clone URL: https://aur.archlinux.org/cmake-language-server.git (read-only, click to copy)
Package Base: cmake-language-server
Description: Python based cmake language server
Upstream URL: https://github.com/regen100/cmake-language-server
Keywords: cmake language-server
Licenses: MIT
Submitter: otreblan
Maintainer: otreblan
Last Packager: otreblan
Votes: 12
Popularity: 0.001587
First Submitted: 2019-11-19 23:42 (UTC)
Last Updated: 2024-08-06 11:27 (UTC)

Latest Comments

SuicideCatt commented on 2024-08-06 08:16 (UTC)

Hi, please add python-pdm-backend to package dependencies

yyyyyiiiiii commented on 2024-07-23 19:27 (UTC)

Currently, to build the project successfully, need to add python-pdm-backend to the dependencies list. Without this dependency, the build process fails with the following error:

==> Starting build()...
* Getting build dependencies for wheel...

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_hooks/_impl.py", line 402, in _call_hook
    raise BackendUnavailable(
pyproject_hooks._impl.BackendUnavailable: Cannot import 'pdm.backend'

ERROR Backend 'pdm.backend' is not available.
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'cmake-language-server-0.1.10-1': 
error: packages failed to build: cmake-language-server-0.1.10-1

kusoneko commented on 2023-10-20 07:25 (UTC) (edited on 2023-10-20 07:31 (UTC) by kusoneko)

Version 0.1.8-1 doesn't build with the following error:

Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
    main()
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 335, in main
    json_out['return_val'] = hook(**hook_input['kwargs'])
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel
    return _build_backend().build_wheel(wheel_directory, config_settings,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pdm/backend/__init__.py", line 54, in build_wheel
    return builder.build(
           ^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pdm/backend/base.py", line 213, in build
    self.initialize(context)
  File "/usr/lib/python3.11/site-packages/pdm/backend/base.py", line 180, in initialize
    self.call_hook("pdm_build_initialize", context)
  File "/usr/lib/python3.11/site-packages/pdm/backend/base.py", line 138, in call_hook
    getattr(hook, hook_name)(context, *args, **kwargs)
  File "/usr/lib/python3.11/site-packages/pdm/backend/hooks/version/__init__.py", line 69, in pdm_build_initialize
    metadata["version"] = getattr(self, f"resolve_version_from_{source}")(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pdm/backend/hooks/version/__init__.py", line 98, in resolve_version_from_scm
    version = get_version_from_scm(context.root, tag_regex=tag_regex)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/pdm/backend/hooks/version/scm.py", line 336, in get_version_from_scm
    raise ValueError(
ValueError: Cannot find the version from SCM or SCM isn't detected.
You can still specify the version via environment variable `PDM_BUILD_SCM_VERSION`.

ERROR Backend subprocess exited when trying to invoke build_wheel

Edit: I fixed it by patching the PKGBUILD with the following:

diff --git a/PKGBUILD b/PKGBUILD
index 32276f5..a402fa8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -25,7 +25,7 @@ sha256sums=('799a1d69e14a8f9ce4a9f26470fd5cb8c61b6305c4f7d3dd97b9974744a32ebd')
 build() {
    cd "$srcdir/$pkgname-$pkgver"

-   python -m build --wheel --no-isolation
+   PDM_BUILD_SCM_VERSION="$pkgver" python -m build --wheel --no-isolation
 }

 package() {

MarsSeed commented on 2023-08-02 00:17 (UTC)

python-pdm is not required at all for the make, only python-pdm-pep517.

But unfortunately I was not able to make it run with without crashing with the current python-pygls 1.0.2, because of some 'KeyError' when it tried to get textDocument/documentSymbol.

And when I downgraded pygls to v0.1.3, I got the same TypeError as mentioned in issue #80.

Seems like the project is pretty much dead.

bart commented on 2023-05-09 07:46 (UTC)

Adding "python-pdm-pep517" to the makedepends fixes the build issue

<deleted-account> commented on 2023-04-12 03:52 (UTC)

Unable to build with the latest python

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
    obj = import_module(mod_path)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pdm.pep517'

ERROR Backend 'pdm.pep517.api' is not available.

IngoMeyer commented on 2023-02-14 09:21 (UTC) (edited on 2023-02-14 09:24 (UTC) by IngoMeyer)

Cannot be started with python-pygls 1.0.0. Hopefully, there will be a new release soon since that problem is already fixed in the development version.

Spixmaster commented on 2022-12-08 15:41 (UTC)

Could you update the dependency "python-cmakelang" to "cmake-format"? The former package was deleted.

Shatur commented on 2021-04-22 15:29 (UTC)

Unable to run in with the latest python (I have python-pygls installed):

Traceback (most recent call last):
  File "/usr/bin/cmake-language-server", line 33, in <module>
    sys.exit(load_entry_point('cmake-language-server==0.1.2', 'console_scripts', 'cmake-language-server')())
  File "/usr/bin/cmake-language-server", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/lib/python3.9/site-packages/cmake_language_server/server.py", line 6, in <module>
    from pygls.features import (COMPLETION, FORMATTING, HOVER, INITIALIZE,
ModuleNotFoundError: No module named 'pygls.features'

FrederickZh commented on 2020-04-27 18:57 (UTC)

This package conflicts against https://aur.archlinux.org/packages/cmake-format/.