vscode: Integrated ZSH terminal - job table full or recursion limit exceeded

Type: Bug

Since updating to 1.72.1 1.72.2, I have been constantly getting the following error in the integrated terminal:

/tmp/user-code-zsh/.zshenv:9: job table full or recursion limit exceeded

This path points to a file with the following contents

# ---------------------------------------------------------------------------------------------
#   Copyright (c) Microsoft Corporation. All rights reserved.
#   Licensed under the MIT License. See License.txt in the project root for license information.
# ---------------------------------------------------------------------------------------------
if [[ -f $USER_ZDOTDIR/.zshenv ]]; then
	VSCODE_ZDOTDIR=$ZDOTDIR
	ZDOTDIR=$USER_ZDOTDIR

	. $USER_ZDOTDIR/.zshenv

	USER_ZDOTDIR=$ZDOTDIR
	ZDOTDIR=$VSCODE_ZDOTDIR
fi

This only happens when using an integrated terminal in VSCode. My external ZSH terminal works completely fine. Worth mentioning that I’m on ZSH 5.8.

Anyone know why I’m getting this error, and more importantly, how I can go about resolving it? Thanks!

VS Code version: Code 1.72.1 (129500ee4c8ab7263461ffe327268ba56b9f210d, 2022-10-10T17:23:00.760Z) OS version: Linux x64 5.15.0-50-generic Modes: Sandboxed: No

System Info
Item Value
CPUs 11th Gen Intel® Core™ i7-1165G7 @ 2.80GHz (8 x 2800)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.42GB (4.94GB free)
Process Argv –unity-launch --crash-reporter-id ad7882f2-984b-450e-ae5e-1e0bdc951aa3
Screen Reader no
VM 0%
DESKTOP_SESSION zorin
XDG_CURRENT_DESKTOP zorin:GNOME
XDG_SESSION_DESKTOP zorin
XDG_SESSION_TYPE x11
Extensions (28)
Extension Author (truncated) Version
svgo 100 2.8.1
vscode-openapi 42C 4.14.1
theme-verdandi be5 2.0.1
vscode-icontheme-nomo-dark be5 1.3.6
vscode-uplift-code Car 0.2.3
path-intellisense chr 2.8.1
dart-code Dar 3.50.0
flutter Dar 3.50.0
vscode-markdownlint Dav 0.48.1
macos-modern-theme dav 2.3.16
prettier-vscode esb 9.9.0
vscode-firefox-debug fir 2.9.8
vscode-jest-runner fir 0.4.59
remotehub Git 0.44.0
todo-tree Gru 0.0.219
xd-theme jef 0.2.15
vscode-codemetrics kis 1.24.0
i18n-ally lok 2.8.1
gitless maa 11.7.2
csharp ms- 1.25.0
remote-repositories ms- 0.22.0
vsliveshare ms- 1.0.5735
vscode-jest Ort 5.0.0
prisma Pri 4.4.0
vscode-yaml red 1.10.1
glassit s-n 0.2.4
svg-preview Sim 2.8.3
ayu tea 1.0.5

(18 theme extensions excluded)

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdc:30486549
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
2144e591:30553903
vsccc:30566497
pyindex848:30577860
nodejswelcome1:30587005
40g7c324:30573242

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 16 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I actually found it working when i just restarted vscode using my launcher. When starting vscode from a terminal the issue still occurs

While I no longer see the error message mentioned in the description,

Considering this verified as the fix was meant to prevent the recursion from happening, which worked based on the above. Will deal with the other issue separately

@meganrogge Correct, but for both code-insiders and code.

So to confirm, opening VSCode (insiders and normal) via CLI causes this issue. However opening VSCode (insiders and normal) via app launcher is OK.

Worth nothing that I’ve just updated to 1.72.2 following the message above, and still get the same error.

Also worth noting, this issue does not happen if I:

  • Open a new, empty VSCode window
  • Load a folder via File > Open Folder

However does happen when I:

  • Open a folder from VSCode integrated terminal, e.g. code ../my-other-folder -r (with or without the -r flag)

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.72.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!