Skip to content

Forever "... files and ... cells to analyze" #7969

@rchiodo

Description

@rchiodo

This original issue was actually a problem with the 'Files left to analyze' message being incorrect. It was still showing even after we finished analysis.

@jtabox It sounds like you're actually having a problem where analysis never finishes. That should be a lot easier to reproduce as it would be caused by some infinite/unbounded loop in the analysis.

Can you share your source or a reproduction?

@rchiodo Sorry for the late reply. Here's a report:


It's been like this for the last 15+ minutes:

Image
  • I closed all the open files in the editor but it didn't make any difference
  • I'm in a project folder that contains 2 python files and 6 others (html, svg, md, json)
  • Before it got stuck, I noticed it was failing to color any imported type definitions in the code:
Image

There's no problems reported in VSCode's "Problems" window, but here's some output from "Outputs" window:

  • Outputs: Extension Host

I think this was when I first noticed the issue with failing to color type definitions:

2026-04-06 19:03:46.549 [warning] DiagnosticCollection with name 'Pylance' does already exist.
2026-04-06 19:03:46.580 [warning] DiagnosticCollection with name 'Pylance' does already exist.
2026-04-06 19:08:08.827 [warning] DiagnosticCollection with name 'Pylance' does already exist.
2026-04-06 19:08:08.856 [warning] DiagnosticCollection with name 'Pylance' does already exist.

And here's when it got stuck:

2026-04-06 19:30:04.697 [error] Error: illegal state - object is disposed
	at r._checkDisposed (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:528:124820)
	at r.delete (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:528:124233)
	at DiagnosticRequestor.forgetDocument (c:\Users\jtabox\.vscode\extensions\ms-python.vscode-pylance-2026.2.100\dist\vendor.bundle.js:39:73655)
	at DiagnosticFeatureProviderImpl.cleanUpDocument (c:\Users\jtabox\.vscode\extensions\ms-python.vscode-pylance-2026.2.100\dist\vendor.bundle.js:39:88126)
	at op.value (c:\Users\jtabox\.vscode\extensions\ms-python.vscode-pylance-2026.2.100\dist\vendor.bundle.js:39:87297)
	at E._deliver (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3043)
	at E._deliverQueue (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3132)
	at E.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3466)
	at updateVisibleDocuments (c:\Users\jtabox\.vscode\extensions\ms-python.vscode-pylance-2026.2.100\dist\vendor.bundle.js:34:39301)
	at c:\Users\jtabox\.vscode\extensions\ms-python.vscode-pylance-2026.2.100\dist\vendor.bundle.js:34:39670
	at op.value (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:629:133647)
	at E._deliver (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3043)
	at E._deliverQueue (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3132)
	at E.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3466)
	at op.value (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:629:80699)
	at E._deliver (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3043)
	at E.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3361)
	at Hg.acceptDocumentsAndEditorsDelta (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:509:14547)
	at Hg.$acceptDocumentsAndEditorsDelta (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:509:12906)
	at r._doInvokeHandler (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:407:154500)
	at r._invokeHandler (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:407:154248)
	at r._receiveRequest (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:407:153030)
	at r._receiveOneMessage (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:407:151868)
	at op.value (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:407:149943)
	at E._deliver (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3043)
	at E.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3361)
	at as.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:405:8437)
	at op.value (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:821:9911)
	at E._deliver (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3043)
	at E.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:403:3361)
	at as.fire (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:405:8437)
	at MessagePortMain.<anonymous> (file:///c:/Users/jtabox/AppData/Local/Programs/Microsoft%20VS%20Code/e7fb5e96c0/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:821:8082)
	at MessagePortMain.emit (node:events:519:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:2959)
	at Object.callbackTrampoline (node:internal/async_hooks:130:17)

This error has been spammed multiple times per second, stopped and then after some seconds again:

2026-04-06 19:30:04.697
2026-04-06 19:30:04.698
2026-04-06 19:30:04.698
2026-04-06 19:30:04.698
2026-04-06 19:30:50.810

...

2026-04-06 19:43:46.494 (currently)
  • Outputs: Python Language Server

This has been spammed like 30 times each second:

2026-04-06 19:29:57.441 [info] (22500): FG(joycaption_gh): Emptying type cache to avoid heap overflow. Used 3653MB out of 4096MB.

And this is from the time it got stuck:

2026-04-06 19:30:00.069 [info] (22500): FG(joycaption_gh): Long operation: binding: file:///c%3A/Users/jtabox/miniforge/envs/p312/Lib/site-packages/transformers/models/__init__.py (9847ms)
2026-04-06 19:30:00.168 [info] (22500): FG(joycaption_gh): Long operation: binding: file:///c%3A/Users/jtabox/miniforge/envs/p312/Lib/site-packages/transformers/__init__.py (9963ms)
2026-04-06 19:30:44.159 [info] (22500): BG(<default>): TS: TS(8408): Long operation: binding: file:///c%3A/Users/jtabox/miniforge/envs/p312/Lib/site-packages/transformers/models/__init__.py (5961ms)
2026-04-06 19:30:44.165 [info] (22500): BG(<default>): TS: TS(8408): Long operation: binding: file:///c%3A/Users/jtabox/miniforge/envs/p312/Lib/site-packages/transformers/__init__.py (6007ms)
2026-04-06 19:30:45.484 [info] (22500): BG(<default>): TS: TS(8408): Long operation: checking: file:///g%3A/ai/progs/joycaption_gh/batch_cli.py (8038ms)
2026-04-06 19:30:45.484 [info] (22500): BG(<default>): TS: TS(8408): Long operation: analyzing: file:///g%3A/ai/progs/joycaption_gh/batch_cli.py (8202ms)

The script mentioned is a clone of this one, I haven't done anything more than renaming it:

https://github.com/fpgaminer/joycaption/blob/main/scripts/batch-caption.py


My specs:

  • AMD Ryzen 9 5900X 12-Core @ 4.00 GHz
  • 32 GB RAM
  • Windows 11 Pro 25H2 - Build 26200.8117
  • VS Code:
Version: 1.114.0 (user setup)
Commit: e7fb5e96c0730b9deb70b33781f98e2f35975036
Date: 2026-04-01T09:27:11Z
Electron: 39.8.3
ElectronBuildId: 13658728
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.26200
  • Python extension: 2026.4.0 - Release
  • Pylance: 2026.2.100 - Pre-release (have swapped between releases but got the issue in both)

Let me know if you need something more.

Originally posted by @jtabox in #7087

Metadata

Metadata

Assignees

Labels

ai-triage-respondedIndicate whether the AI triage agent has responded to this issue.team needs to reproduceIssue has not been reproduced yetuser respondedWas "waiting for user response" and they responded

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions