Package Details: basedpyright-git v1.39.2.r0.gceb200c19-1

Git Clone URL: https://aur.archlinux.org/basedpyright-git.git (read-only, click to copy)
Package Base: basedpyright-git
Description: Fork of pyright, a static type checker for Python, with various improvements and new features
Upstream URL: https://github.com/DetachHead/basedpyright
Licenses: MIT
Conflicts: basedpyright
Provides: basedpyright
Submitter: Schnouki
Maintainer: Schnouki
Last Packager: Schnouki
Votes: 4
Popularity: 0.000025
First Submitted: 2024-04-25 20:04 (UTC)
Last Updated: 2026-04-20 23:16 (UTC)

Required by (1)

Sources (1)

Latest Comments

zii commented on 2026-06-30 07:10 (UTC)

Upstream switched from npm to pnpm, so npm ci should likely be swapped for something like pnpm install --frozen-lockfile --prod, and npm run build for pnpm run build.

einalex commented on 2026-06-11 09:22 (UTC) (edited on 2026-06-11 09:32 (UTC) by einalex)

build fails with:

==> Starting prepare()...
Using CPython 3.14.5 interpreter at: /usr/bin/python3
Creating virtual environment at: .venv
Resolved 147 packages in 1ms
Installed 4 packages in 14ms
 + docify==1.2.1
 + libcst==1.8.6
 + pyyaml==6.0.3
 + tqdm==4.67.3
could not import _compression: No module named '_compression'
could not import _msi: No module named '_msi'
could not import _winapi: No module named '_winapi'
could not import aifc: No module named 'aifc'
[...]
could not import sys._monitoring: No module named 'sys._monitoring'; 'sys' is not a package
could not import tkinter.tix: No module named 'tkinter.tix'
could not import xml.utils: No module named 'xml.utils'
npm warn Unknown env config "tmp". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "tmp". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm error A complete log of this run can be found in: /home/4D6/einalex/.cache/npm/_logs/2026-06-11T09_21_00_916Z-debug-0.log
==> ERROR: A failure occurred in prepare().

zii commented on 2026-04-20 07:24 (UTC)

The build fails with the following message (on my machine):

Successfully built dist/basedpyright-1.39.2.tar.gz
Successfully built dist/basedpyright-1.39.2-py3-none-any.whl
==> Entering fakeroot environment...
==> Starting package()...
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/lib/python3.14/site-packages/installer/__main__.py", line 115, in <module>
    _main(sys.argv[1:], "python -m installer")
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/installer/__main__.py", line 111, in _main
    installer.install(source, destination, {})
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/installer/_core.py", line 89, in install
    record = destination.write_script(
        name=name,
    ...<2 lines>...
        section=section,
    )
  File "/usr/lib/python3.14/site-packages/installer/destinations.py", line 235, in write_script
    entry = self.write_to_fs(
        Scheme("scripts"), script_name, stream, is_executable=True
    )
  File "/usr/lib/python3.14/site-packages/installer/destinations.py", line 169, in write_to_fs
    target_path = self._path_with_destdir(scheme, path)
  File "/usr/lib/python3.14/site-packages/installer/destinations.py", line 143, in _path_with_destdir
    raise ValueError(
        f"Attempting to write {path} outside of the target directory"
    )
ValueError: Attempting to write basedpyright outside of the target directory
==> ERROR: A failure occurred in package().
    Aborting...
error: failed to build 'basedpyright-git-v1.32.1.r23.gf88523c13-1': 

Schnouki commented on 2024-11-25 14:04 (UTC)

Updated, thanks @zii!

zii commented on 2024-11-19 07:51 (UTC)

Upstream changed the build again. ./pw pdm build needs to be ./pw uv build now. 🙂

Schnouki commented on 2024-10-21 11:24 (UTC)

@a821 Oops, sorry about hat! I just fixed the URL. @zii Noticed that when building the new version so I fixed it too. Thanks!

zii commented on 2024-10-08 06:57 (UTC)

Installing the package fails because CONTRIBUTING.md was moved in https://github.com/DetachHead/basedpyright/commit/93830237dd7def147ef396d437343ecad661b43a :)

a821 commented on 2024-09-19 08:06 (UTC) (edited on 2024-09-19 08:13 (UTC) by a821)

F̶Y̶I̶,̶ ̶r̶e̶p̶o̶ ̶i̶s̶ ̶4̶0̶4̶.̶

Edit: Sorry! I was misled by a misspelled URL. The username is DetachHead and not DetacHead (note the missing h). Could you fix it?

zii commented on 2024-06-21 08:02 (UTC) (edited on 2024-07-04 11:21 (UTC) by zii)

Edit: Fixed. :)

basedpyright depends on the Python package nodejs-wheel-binaries, which is currently missing:

$ basedpyright
Traceback (most recent call last):
  File "/usr/bin/basedpyright", line 5, in <module>
    from basedpyright.pyright import main
  File "/usr/lib/python3.12/site-packages/basedpyright/pyright.py", line 3, in <module>
    from basedpyright.run_node import run
  File "/usr/lib/python3.12/site-packages/basedpyright/run_node.py", line 6, in <module>
    from nodejs_wheel.executable import node
ModuleNotFoundError: No module named 'nodejs_wheel'