Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyright won't start with node v20.18.0: Invalid regular expression SyntaxError #320

Open
hholst80 opened this issue Nov 4, 2024 · 0 comments

Comments

@hholst80
Copy link

hholst80 commented Nov 4, 2024

Describe the bug

pyright does not run.

# python3 --version
Python 3.12.2
# node --version
v20.18.0 

Code or Screenshots

# source venv/bin/activate.fish
(venv) root@xps ... (master)
# pip freeze
nodeenv==1.9.1
pyright==1.1.387
typing_extensions==4.12.2
(venv) root@xps ... (master)
# pyright

[snip]

SyntaxError: Invalid regular expression: /\(\?P?<([\p{ID_Start}$_][\p{ID_Continue}$_\u200C\u200D]*)>/u: Invalid property name in character class
    at wrapSafe (node:internal/modules/cjs/loader:1378:20)
    at Module._compile (node:internal/modules/cjs/loader:1428:41)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at o.f.require (/root/.cache/pyright-python/1.1.387/node_modules/pyright/dist/pyright.js:1:2316)
    at /root/.cache/pyright-python/1.1.387/node_modules/pyright/dist/pyright.js:1:1784
    at Array.reduce (<anonymous>)

Node.js v20.18.0
(venv) root@xps ... (master) [0|1]
# 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant