vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Cannot read properties of undefined (reading 'hasDynamicHeight')

Open vs-code-engineering[bot] opened this issue 1 year ago • 29 comments

TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight')
at ifi.Cb in src/vs/base/browser/ui/list/listView.ts:1596:13
at ifi.Bb in src/vs/base/browser/ui/list/listView.ts:1527:23
at ifi.W in src/vs/base/browser/ui/list/listView.ts:699:9
at ifi.splice in src/vs/base/browser/ui/list/listView.ts:587:16
at <anonymous> in src/vs/base/browser/ui/list/splice.ts:17:35
at Array.forEach (<anonymous>)
at gNi.splice in src/vs/base/browser/ui/list/splice.ts:17:20
at <anonymous> in src/vs/base/browser/ui/list/listWidget.ts:1584:57
at fn in src/vs/base/common/event.ts:1717:13
at r4i.splice in src/vs/base/browser/ui/list/listWidget.ts:1584:22

Go to Errors Site

2025-02-17 11:24:31.890 [error] [Window] Cannot read properties of undefined (reading 'hasDynamicHeight'): TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight') at ipi.Fb (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:27625) at ipi.Eb (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:26914) at ipi.layout (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:16691) at fVi.layout (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:307:8769) at $v.layout (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:411:77738) at xf.layout (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:412:28540) at uwe.L (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2044:2181) at vte.value (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2044:5750) at x.B (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392) at x.C (vscode-file://vscode-app/.../Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2462)

Context: WSL + python debugger

nmoreaud avatar Feb 17 '25 10:02 nmoreaud

same issue.

zhxinyu avatar Feb 20 '25 04:02 zhxinyu

This happens for me in the debug console after the recent update.

Nandha95 avatar Feb 20 '25 05:02 Nandha95

Same here (custom codium build)

Version: 1.97.2 Release: 25045 Commit: 7211e5a20b57d2e57d119144ac954542a24b547b Date: 2025-02-14T18:21:12.766Z Electron: 32.2.7 ElectronBuildId: undefined Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Linux x64 6.8.0-52-generic

RSLLES avatar Feb 20 '25 10:02 RSLLES

Thought this was from my code as "DynamicHeight" is a term used in oceanography! Comforting to see that it's a recognized vscode error.

MBARIMike avatar Feb 21 '25 02:02 MBARIMike

Same issue; powershell + python debugger.

Version: 1.97.0 (system setup)
Commit: 33fc5a94a3f99ebe7087e8fe79fbe1d37a251016
Date: 2025-02-04T22:41:26.688Z
Electron: 32.2.7
ElectronBuildId: 10660205
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.19045
2025-02-21 19:53:45.368 [error] [Window] Cannot read properties of undefined (reading 'hasDynamicHeight'): TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight')
    at ipi.Fb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:27625)
    at ipi.Eb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:26914)
    at ipi.Z (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:15004)
    at ipi.splice (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:13453)
    at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:262:96
    at Array.forEach (<anonymous>)
    at x$i.splice (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:262:83)
    at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:307:7637
    at T3.bufferEvents (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:5472)
    at fVi.splice (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:307:7613)
2025-02-21 19:53:45.369 [error] [Window] Cannot read properties of undefined (reading 'hasDynamicHeight'): TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight')
    at ipi.Fb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:27625)
    at ipi.Eb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:26914)
    at ipi.nb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:22078)
    at x.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
    at x.C (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2462)
    at x.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2680)
    at wte.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:35768)
    at x.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
    at x.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2611)
    at g$.n (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:32998)
2025-02-21 19:53:52.312 [error] [Window] No debugger available, can not send 'completions': Error: No debugger available, can not send 'completions'
    at Vet.completions (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2200:28158)
    at Object.provideCompletionItems (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2036:34656)
    at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:429:31700
    at Array.map (<anonymous>)
    at ioe (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:429:31482)
    at QNe.trigger (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:442:16498)
    at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:442:15653
    at vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:30:75959
2025-02-21 19:53:54.731 [error] [Window] Cannot read properties of undefined (reading 'hasDynamicHeight'): TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight')
    at ipi.Fb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:27625)
    at ipi.Eb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:26914)
    at ipi.nb (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:22078)
    at x.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
    at x.C (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2462)
    at x.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2680)
    at wte.value (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:35768)
    at x.B (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392)
    at x.fire (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2611)
    at g$.n (vscode-file://vscode-app/c:/Program%20Files/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:32998)

talpid avatar Feb 21 '25 09:02 talpid

same error happens to me today using WSL + debugpy

mirkan1 avatar Feb 21 '25 13:02 mirkan1

Cannot read properties of undefined (reading 'hasDynamicHeight')

Same issue using debugger and python.

jcline116 avatar Feb 24 '25 20:02 jcline116

Same issue with vscode + python debugger.

Opening the "debug console" window and trying to enter a variable sometimes results in this bug. The console window is completely empty in that case. The result of your expression either appears for a split second only - or sometimes becomes visible once you increase the vertical height of the debug console window -> it seems the bottom of the output appears higher than the top of the debug window.

vscode 1.97.2

behrenhoff avatar Feb 25 '25 15:02 behrenhoff

Same issue, vscode (1.97.2) + python debugger on macOS 15.3.1

alanwilter avatar Feb 26 '25 20:02 alanwilter

Same here with VSCode 1.97.2 + python Debugger 2025.0.1

damdaepark avatar Feb 27 '25 08:02 damdaepark

Same issue.

Apezdr avatar Feb 28 '25 03:02 Apezdr

Same issue

CongliangLi avatar Feb 28 '25 06:02 CongliangLi

Same issue. Python development + debugging. Happens when I use the debug console. I can still use the variables view in the debug side panel.

2025-03-01 09:57:31.904 [error] [Window] Cannot read properties of undefined (reading 'hasDynamicHeight'): TypeError: Cannot read properties of undefined (reading 'hasDynamicHeight') at ipi.Fb (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:27625) at ipi.Eb (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:26914) at ipi.nb (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:264:22078) at x.B (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392) at x.C (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2462) at x.fire (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2680) at vte.value (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:35768) at x.B (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2392) at x.fire (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:29:2611) at g$.n (vscode-file://vscode-app/c:/Users/61603/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:68:32998)

martinmoldrup avatar Mar 01 '25 09:03 martinmoldrup

I too am experiencing this issue. At the same time it began, autocomplete stopped working as reported in #241402. I was hopeful both were resolved with #239900 but they were not. (I never experienced the unresponsive console described in that issue.)

lovette avatar Mar 01 '25 21:03 lovette

same issues in python debugger. Whats the fix?

athmanar avatar Mar 02 '25 02:03 athmanar

Same Issue with 1.97.2 on Ubuntu 20 Downgraded to 1.96.0 - and debug console working fine.

This issue was raised here also - https://github.com/microsoft/vscode/issues/241402 but it was closed from some reason 🤷

yamichael avatar Mar 02 '25 09:03 yamichael

Same issue

alxhosse avatar Mar 03 '25 02:03 alxhosse

Same issue

lllAlexanderlll avatar Mar 03 '25 07:03 lllAlexanderlll

Same

VRMink avatar Mar 03 '25 17:03 VRMink

Same issue, appeared recently, probably after some kind of update. Happens when I try to inspect a response from OpenAI(...).chat.completions.create(...)

Convl avatar Mar 04 '25 13:03 Convl

Same

YohanFl avatar Mar 04 '25 14:03 YohanFl

Check directory resources.

beni9124 avatar Mar 04 '25 14:03 beni9124

Same issue. I do alot of work in the python debug console. I see this error and then the debug console is no longer responding to input

IvanCobotic avatar Mar 05 '25 13:03 IvanCobotic

same issue

rishi-menon avatar Mar 05 '25 20:03 rishi-menon

same

Image

cfloressuazo avatar Mar 05 '25 23:03 cfloressuazo

same issue with vscode 1.97.2 and python debugger 2025.1 solved after updating python debugger to 2025.4

WilliamMoon avatar Mar 06 '25 02:03 WilliamMoon

same issue with vscode 1.98.0 and python debugger 2025.4.0

rojo1997 avatar Mar 06 '25 23:03 rojo1997

Same issue with: Version: 1.98.0 (Universal) Commit: 6609ac3d66f4eade5cf376d1cb76f13985724bcb Date: 2025-03-04T21:06:18.612Z Electron: 34.2.0 ElectronBuildId: 11044223 Chromium: 132.0.6834.196 Node.js: 20.18.2 V8: 13.2.152.36-electron.0 OS: Darwin arm64 24.3.0

crlandsc avatar Mar 07 '25 17:03 crlandsc

Is there any resolution?

athmanar avatar Mar 09 '25 01:03 athmanar