pylance-release icon indicating copy to clipboard operation
pylance-release copied to clipboard

*** files and 0 cells to analyze

Open xazeng opened this issue 7 months ago • 4 comments

Type: Bug

This problem often occurs when editing Python files, resulting in the Python code color not being updated correctly.

Extension version: 2025.6.2 VS Code version: Code 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-06-24T20:27:15.391Z) OS version: Windows_NT x64 10.0.19044 Modes:

System Added Logs
2025-07-11 09:58:43.089 [info] (Client) Pylance async client (2025.6.2) started with python extension (2025.10.0)
2025-07-11 09:58:44.033 [info] [Info  - 9:58:44 AM] (16348) Server root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 09:58:44.034 [info] [Info  - 9:58:44 AM] (16348) Pylance language server 2025.6.2 (pyright version 1.1.402, commit 9496ae00) starting
2025-07-11 09:58:44.052 [info] [Info  - 9:58:44 AM] (16348) Starting service instance "abc_assist" for workspace "e:\prj\defg.2\defg\abc_assist"
2025-07-11 09:58:44.163 [info] [Info  - 9:58:44 AM] (16348) Setting environmentName for service "abc_assist": "3.8.10 (abc conda)"
2025-07-11 09:58:44.163 [info] [Info  - 9:58:44 AM] (16348) Setting pythonPath for service "abc_assist": "D:\App\anaconda3\envs\abc\python.exe"
2025-07-11 09:58:44.164 [info] [Info  - 9:58:44 AM] (16348) No include entries specified; assuming e:\prj\defg.2\defg\abc_assist
2025-07-11 09:58:44.164 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/node_modules
2025-07-11 09:58:44.164 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/__pycache__
2025-07-11 09:58:44.164 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/.*
2025-07-11 09:58:44.224 [info] [Info  - 9:58:44 AM] (16348) Assuming Python version 3.8.10.final.0
2025-07-11 09:58:44.647 [info] [Info  - 9:58:44 AM] (16348) Found 435 source files
2025-07-11 09:58:44.665 [info] [Info  - 9:58:44 AM] (16348) Setting environmentName for service "abc_assist": "3.8.10 (abc conda)"
2025-07-11 09:58:44.665 [info] [Info  - 9:58:44 AM] (16348) Setting pythonPath for service "abc_assist": "D:\App\anaconda3\envs\abc\python.exe"
2025-07-11 09:58:44.665 [info] [Info  - 9:58:44 AM] (16348) No include entries specified; assuming e:\prj\defg.2\defg\abc_assist
2025-07-11 09:58:44.666 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/node_modules
2025-07-11 09:58:44.666 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/__pycache__
2025-07-11 09:58:44.666 [info] [Info  - 9:58:44 AM] (16348) Auto-excluding **/.*
2025-07-11 09:58:44.730 [info] [Info  - 9:58:44 AM] (16348) Assuming Python version 3.8.10.final.0
2025-07-11 09:58:45.094 [info] [Info  - 9:58:45 AM] (16348) Found 435 source files
2025-07-11 09:58:45.333 [info] [Info  - 9:58:45 AM] (16348) BG: Priority queue background worker(2) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 09:58:45.334 [info] [Info  - 9:58:45 AM] (16348) BG: Priority queue background worker(2) started
2025-07-11 09:58:45.849 [info] [Info  - 9:58:45 AM] (16348) BG: Indexer background runner(3) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (index)
2025-07-11 09:58:45.849 [info] [Info  - 9:58:45 AM] (16348) BG: Indexing(3) started
2025-07-11 09:58:48.048 [info] [Info  - 9:58:48 AM] (16348) BG: scanned(3) 337 files over 1 exec env
2025-07-11 09:58:48.267 [info] [Info  - 9:58:48 AM] (16348) BG: indexed(3) 337 files over 1 exec env
2025-07-11 09:58:48.388 [info] [Info  - 9:58:48 AM] (16348) BG: Indexing finished(3).
2025-07-11 10:05:26.974 [info] [Info  - 10:05:26 AM] (16348) Starting service instance "<default>" for workspace ""
2025-07-11 10:05:26.998 [info] [Info  - 10:05:26 AM] (16348) Setting environmentName for service "<default>": "3.8.10 (abc conda)"
2025-07-11 10:05:26.998 [info] [Info  - 10:05:26 AM] (16348) Setting pythonPath for service "<default>": "d:\App\anaconda3\envs\abc\python.exe"
2025-07-11 10:05:26.998 [info] [Info  - 10:05:26 AM] (16348) No include entries specified; assuming \<default workspace root>
2025-07-11 10:05:26.999 [info] [Info  - 10:05:26 AM] (16348) Auto-excluding **/node_modules
2025-07-11 10:05:26.999 [info] [Info  - 10:05:26 AM] (16348) Auto-excluding **/__pycache__
2025-07-11 10:05:26.999 [info] [Info  - 10:05:26 AM] (16348) Auto-excluding **/.*
2025-07-11 10:05:27.273 [info] [Info  - 10:05:27 AM] (16348) Assuming Python version 3.8.10.final.0
2025-07-11 10:05:27.380 [info] [Error - 10:05:27 AM] (16348) File or directory "\<default workspace root>" does not exist.
2025-07-11 10:05:27.380 [info] [Info  - 10:05:27 AM] (16348) No source files found.
2025-07-11 10:05:27.881 [info] [Info  - 10:05:27 AM] (16348) BG: Priority queue background worker(5) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 10:05:27.882 [info] [Info  - 10:05:27 AM] (16348) BG: Priority queue background worker(5) started
2025-07-11 10:10:20.365 [info] [Info  - 10:10:20 AM] (16348) Found 435 source files
2025-07-11 10:12:13.607 [info] [Info  - 10:12:13 AM] (16348) BG: [BG(1)] Long operation: SemanticTokens full at file:///d%3A/App/anaconda3/envs/abc/Lib/site-packages/PySide6/QtWidgets.pyi (7900ms)
2025-07-11 10:12:24.529 [info] [Info  - 10:12:24 AM] (16348) BG: [BG(1)] Long operation: SemanticTokens full at file:///d%3A/App/anaconda3/envs/abc/Lib/site-packages/PySide6/QtWidgets.pyi (10793ms)
2025-07-11 10:15:35.421 [info] [Info  - 10:15:35 AM] (16348) Found 436 source files
2025-07-11 10:26:52.043 [info] 
<--- Last few GCs --->

[16348:0000008800114000]  1688332 ms: Mark-Compact (reduce) 1570.3 (1656.5) -> 1570.3 (1653.0) MB, pooled: 0 MB, 669.37 / 0.00 ms  (average mu = 0.361, current mu = 0.005) last resort; GC in old space requested
[16348:0000008800114000]  1688927 ms: Mark-Compact (reduce) 1570.3 (1653.0) -> 1570.3 (1653.0) MB, pooled: 0 MB, 595.16 / 0.00 ms  (average mu = 0.229, current mu = 0.000) last resort; GC in old space requested


<--- JS stacktrace --->

FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
----- Native stack trace -----


2025-07-11 10:26:52.089 [info]  1: 00007FF7956FC4BA llhttp_get_upgrade+53466
 2: 00007FF7957D326B node::OnFatalError+747
 3: 00007FF79A8DBAA4 v8::Function::NewInstance+868
 4: 00007FF79A8DBA13 v8::Function::NewInstance+723
 5: 00007FF798D74B45 v8::internal::ThreadIsolation::StartOfJitAllocationAt+346469
 6: 00007FF798D64985 v8::internal::ThreadIsolation::StartOfJitAllocationAt+280485
 7: 00007FF798B2212D Cr_z_uncompress+11173917
 8: 00007FF798CE957D v8::ExternalMemoryAccounter::Decrease+2733
 9: 00007FF79A8E6A49 v8::String::Utf8Length+825
10: 00007FF7959514A7 uv_backend_fd+43511
11: 00007FF79594B389 uv_backend_fd+18649
12: 00007FF7959487AB uv_backend_fd+7419

2025-07-11 10:26:52.089 [info] 13: 00007FF799415773 v8::internal::compiler::CompilationDependencies::FieldTypeDependencyOffTheRecord+2339955
14: 00007FF7E16F107E 

2025-07-11 10:26:52.395 [info] [Error - 10:26:52 AM] Server process exited with code 134.
2025-07-11 10:26:52.398 [info] [Info  - 10:26:52 AM] Connection to server got closed. Server will restart.
2025-07-11 10:26:52.398 [info] true
2025-07-11 10:26:53.356 [info] [Info  - 10:26:53 AM] (4584) Server root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 10:26:53.358 [info] [Info  - 10:26:53 AM] (4584) Pylance language server 2025.6.2 (pyright version 1.1.402, commit 9496ae00) starting
2025-07-11 10:26:53.377 [info] [Info  - 10:26:53 AM] (4584) Starting service instance "abc_assist" for workspace "e:\prj\defg.2\defg\abc_assist"
2025-07-11 10:26:53.431 [info] [Info  - 10:26:53 AM] (4584) Setting environmentName for service "abc_assist": "3.8.10 (abc conda)"
2025-07-11 10:26:53.431 [info] [Info  - 10:26:53 AM] (4584) Setting pythonPath for service "abc_assist": "D:\App\anaconda3\envs\abc\python.exe"
2025-07-11 10:26:53.431 [info] [Info  - 10:26:53 AM] (4584) No include entries specified; assuming e:\prj\defg.2\defg\abc_assist
2025-07-11 10:26:53.432 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/node_modules
2025-07-11 10:26:53.432 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/__pycache__
2025-07-11 10:26:53.432 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/.*
2025-07-11 10:26:53.494 [info] [Info  - 10:26:53 AM] (4584) Assuming Python version 3.8.10.final.0
2025-07-11 10:26:53.915 [info] [Info  - 10:26:53 AM] (4584) Found 436 source files
2025-07-11 10:26:53.932 [info] [Info  - 10:26:53 AM] (4584) Setting environmentName for service "abc_assist": "3.8.10 (abc conda)"
2025-07-11 10:26:53.932 [info] [Info  - 10:26:53 AM] (4584) Setting pythonPath for service "abc_assist": "D:\App\anaconda3\envs\abc\python.exe"
2025-07-11 10:26:53.933 [info] [Info  - 10:26:53 AM] (4584) No include entries specified; assuming e:\prj\defg.2\defg\abc_assist
2025-07-11 10:26:53.933 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/node_modules
2025-07-11 10:26:53.933 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/__pycache__
2025-07-11 10:26:53.933 [info] [Info  - 10:26:53 AM] (4584) Auto-excluding **/.*
2025-07-11 10:26:54.000 [info] [Info  - 10:26:54 AM] (4584) Assuming Python version 3.8.10.final.0
2025-07-11 10:26:54.347 [info] [Info  - 10:26:54 AM] (4584) Found 436 source files
2025-07-11 10:26:54.798 [info] [Info  - 10:26:54 AM] (4584) BG: Priority queue background worker(2) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 10:26:54.798 [info] [Info  - 10:26:54 AM] (4584) BG: Priority queue background worker(2) started
2025-07-11 10:26:55.055 [info] [Info  - 10:26:55 AM] (4584) BG: Indexer background runner(3) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist (index)
2025-07-11 10:26:55.056 [info] [Info  - 10:26:55 AM] (4584) BG: Indexing(3) started
2025-07-11 10:26:57.360 [info] [Info  - 10:26:57 AM] (4584) BG: scanned(3) 337 files over 1 exec env
2025-07-11 10:26:57.564 [info] [Info  - 10:26:57 AM] (4584) BG: indexed(3) 337 files over 1 exec env
2025-07-11 10:26:57.670 [info] [Info  - 10:26:57 AM] (4584) BG: Indexing finished(3).
2025-07-11 10:48:17.605 [info] [Info  - 10:48:17 AM] (4584) Starting service instance "<default>" for workspace ""
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) Setting environmentName for service "<default>": "3.8.10 (abc conda)"
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) Setting pythonPath for service "<default>": "d:\App\anaconda3\envs\abc\python.exe"
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) No include entries specified; assuming \<default workspace root>
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) Auto-excluding **/node_modules
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) Auto-excluding **/__pycache__
2025-07-11 10:48:17.627 [info] [Info  - 10:48:17 AM] (4584) Auto-excluding **/.*
2025-07-11 10:48:17.901 [info] [Info  - 10:48:17 AM] (4584) Assuming Python version 3.8.10.final.0
2025-07-11 10:48:18.007 [info] [Error - 10:48:18 AM] (4584) File or directory "\<default workspace root>" does not exist.
2025-07-11 10:48:18.008 [info] [Info  - 10:48:18 AM] (4584) No source files found.
2025-07-11 10:48:18.517 [info] [Info  - 10:48:18 AM] (4584) BG: Priority queue background worker(5) root directory: file:///c%3A/Users/Administrator/.vscode/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-11 10:48:18.518 [info] [Info  - 10:48:18 AM] (4584) BG: Priority queue background worker(5) started
2025-07-11 10:49:16.836 [info] [Error - 10:49:16 AM] (4584) Error occurred on priorityQueueBackgroundRunner background thread: {"code":"ERR_WORKER_OUT_OF_MEMORY"}

System Info
Item Value
CPUs AMD Ryzen 7 3700X 8-Core Processor (16 x 3593)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.95GB (39.08GB free)
Process Argv E:\work\defg.2\defg\abc_assist --crash-reporter-id c00d8559-5c9c-48c6-b317-227878c1251c
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249601
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
2e7ec940:31000449
cppperfnew:31000557
dwnewjupytercf:31046870
nativeloc1:31344060
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
4gafe986:31271826
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
jjjhb125:31275178
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
j6a0c355:31339598
c4b42873:31341128
i851h500:31338111
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31335815
mytestcf:31335658
82j33506:31327384
nes-diff-11:31337487
63221493:31336333
yijiwantestdri0626-c:31336931
4gdec884:31342391

xazeng avatar Jul 11 '25 03:07 xazeng

Hi @xazeng, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.


Duplicate IssuesThese issues appear to be duplicates of your report.

  • Forever "... files and ... cells to analyze" – status notification never clears, requiring reload to clear. https://github.com/microsoft/pylance-release/issues/7087

The team will respond to your issue shortly. Please note this is a trial feature and may not be fully accurate. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or was incorrect, please give it a 👎. Your feedback helps us improve!

github-actions[bot] avatar Jul 11 '25 03:07 github-actions[bot]

Hi. I'm having this same issue. Color syntax highlighting stops working, even though most other features seem to work.

Extension version: 2025.6.2 VS Code Version: 1.102.1 Commit: 7adae6a56e34cb64d08899664b814cf620465925 Date: 2025-07-15T16:41:17.147Z Electron: 35.6.0 ElectronBuildId: 11847422 Chromium: 134.0.6998.205 Node.js: 22.15.1 V8: 13.4.114.21-electron.0 OS: Linux x64 6.12.10-76061203-generic

Python Language Server (pylance) ouput:

2025-07-21 15:00:38.402 [info] [Info  - 3:00:38 PM] (2071) Server root directory: file:///home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-21 15:00:38.402 [info] [Info  - 3:00:38 PM] (2071) Pylance language server 2025.6.2 (pyright version 1.1.402, commit 9496ae00) starting
2025-07-21 15:00:38.404 [info] [Info  - 3:00:38 PM] (2071) Starting service instance "firefly" for workspace "/workspaces/firefly"
2025-07-21 15:00:38.419 [info] (Client) Pylance async client (2025.6.2) started with python extension (2025.10.0)
2025-07-21 15:00:38.472 [info] [Info  - 3:00:38 PM] (2071) Loading pyproject.toml file at /workspaces/firefly/pyproject.toml
2025-07-21 15:00:38.477 [info] [Info  - 3:00:38 PM] (2071) Setting environmentName for service "firefly": "3.12.3 (.venv venv)"
2025-07-21 15:00:38.477 [info] [Info  - 3:00:38 PM] (2071) Setting pythonPath for service "firefly": "/workspaces/firefly/.venv/bin/python"
2025-07-21 15:00:38.477 [info] [Info  - 3:00:38 PM] (2071) No include entries specified; assuming /workspaces/firefly
2025-07-21 15:00:38.496 [info] [Info  - 3:00:38 PM] (2071) Assuming Python version 3.12.3.final.0
2025-07-21 15:00:39.017 [info] [Info  - 3:00:39 PM] (2071) Found 609 source files
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) BG: Priority queue background worker(2) root directory: file:///home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) BG: Priority queue background worker(2) started
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) Loading pyproject.toml file at /workspaces/firefly/pyproject.toml
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) Setting environmentName for service "firefly": "3.12.3 (.venv venv)"
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) Setting pythonPath for service "firefly": "/workspaces/firefly/.venv/bin/python"
2025-07-21 15:00:39.019 [info] [Info  - 3:00:39 PM] (2071) No include entries specified; assuming /workspaces/firefly
2025-07-21 15:00:39.032 [info] [Info  - 3:00:39 PM] (2071) Assuming Python version 3.12.3.final.0
2025-07-21 15:00:39.709 [info] [Info  - 3:00:39 PM] (2071) Found 609 source files
2025-07-21 15:00:40.174 [info] [Info  - 3:00:40 PM] (2071) BG: Indexer background runner(3) root directory: file:///home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist (index)
2025-07-21 15:00:40.174 [info] [Info  - 3:00:40 PM] (2071) BG: Indexing(3) started
2025-07-21 15:00:40.304 [info] [Error - 3:00:40 PM] (2071) Indexing Failed: "Exception: ENOTDIR: not a directory, scandir '/workspaces/firefly/.venv/bin/python3' in Error: ENOTDIR: not a directory, scandir '/workspaces/firefly/.venv/bin/python3'\n    at Object.readdirSync (node:fs:1584:26)\n    at G.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1294793)\n    at makeCallSync.subPath (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1342015)\n    at S.makeCallSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1343807)\n    at S.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1341983)\n    at d.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1301952)\n    at A.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1301952)\n    at _0x5df89b.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1196411)\n    at readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1582285)\n    at _0x291428.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:930371)\n    at _0x37f0e2.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1453365)\n    at _0x238ff2.scan (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1448086)\n    at /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1912187\n    at t.LogTracker.log (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1177243)\n    at _0x18f876.scanPackages (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1911422)\n    at /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1926252\n    at _0x2ae243 (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:288215)\n    at MessagePort.<anonymous> (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1925616)\n    at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)"
2025-07-21 15:00:40.304 [info] [Info  - 3:00:40 PM] (2071) BG: Indexing finished(3).
2025-07-21 15:00:47.760 [info] [Info  - 3:00:47 PM] (2071) BG: Indexer background runner(4) root directory: file:///home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist (refresh)
2025-07-21 15:00:47.761 [info] [Info  - 3:00:47 PM] (2071) BG: Indexing(4) started
2025-07-21 15:00:47.881 [info] [Error - 3:00:47 PM] (2071) Indexing Failed: "Exception: ENOTDIR: not a directory, scandir '/workspaces/firefly/.venv/bin/python3' in Error: ENOTDIR: not a directory, scandir '/workspaces/firefly/.venv/bin/python3'\n    at Object.readdirSync (node:fs:1584:26)\n    at G.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1294793)\n    at makeCallSync.subPath (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1342015)\n    at S.makeCallSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1343807)\n    at S.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1341983)\n    at d.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1301952)\n    at A.readdirSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/vendor.bundle.js:2:1301952)\n    at _0x5df89b.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1196411)\n    at readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1582285)\n    at _0x291428.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:930371)\n    at _0x37f0e2.readdirEntriesSync (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1453365)\n    at _0x238ff2.scan (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1448086)\n    at /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1912187\n    at t.LogTracker.log (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/pyright.bundle.js:1:1177243)\n    at _0x18f876.scanPackages (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1911422)\n    at /home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1926252\n    at _0x2ae243 (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:288215)\n    at MessagePort.<anonymous> (/home/vscode/.vscode-server/extensions/ms-python.vscode-pylance-2025.6.2/dist/server.bundle.js:1:1925616)\n    at MessagePort.[nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n    at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)"
2025-07-21 15:00:47.881 [info] [Info  - 3:00:47 PM] (2071) BG: Indexing finished(4).
2025-07-21 15:11:07.048 [info] [Info  - 3:11:07 PM] (2071) Found 608 source files
2025-07-21 16:11:54.837 [info] [Error - 4:11:54 PM] (2071) Error occurred on priorityQueueBackgroundRunner background thread: {"code":"ERR_WORKER_OUT_OF_MEMORY"}

SimNine avatar Jul 21 '25 20:07 SimNine

looks like its running out of memory Is this a public repo?

you could try increasing memory https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#increase-memory-limit-for-vs-code-remote-only

bschnurr avatar Jul 21 '25 20:07 bschnurr

@bschnurr it is not a public repo. I thought about increasing memory, but the issue actually seems to be that memory usage keeps increasing constantly (and indefinitely), even when nothing new is being indexed or opened, and therefore the process will eventually run out of memory no matter how much is allocated. My issue actually looks to be the same as https://github.com/microsoft/pylance-release/issues/7400, so I will mostly continue corresponding there

SimNine avatar Jul 22 '25 14:07 SimNine