Skip to content

Commit 01eed98

Browse files
authored
Add manual workaround for out of memory
1 parent 6f010ea commit 01eed98

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/doc/en/developer/tools.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,10 @@ Pyright
327327

328328
- Tox: Run ``./sage -tox -e pyright path/to/the/file.py``
329329

330-
- Manual: Run ``pyright path/to/the/file.py``
330+
- Manual: Run ``pyright path/to/the/file.py``. If you want to check the whole Sage library, you most likely run out of memory with the default settings.
331+
You can use the following command to check the whole library::
332+
333+
NODE_OPTIONS="--max-old-space-size=8192" pyright
331334

332335
- VS Code: Install the `Pylance <https://marketplace.visualstudio.com/items?itemName=ms-python.vscode-pylance>`__ extension.
333336

0 commit comments

Comments
 (0)