Skip to content

Create environment command fails due to ENAMETOOLONG #21480

Closed
@luabud

Description

@luabud

Type: Bug

Behaviour

When trying ot install many requirements files, the create environment command fails because there are too many file names sent to the command

Steps to reproduce:

  1. Clone https://github.com/Azure/azure-sdk-for-python/
  2. Run the Create Environment command
  3. Select all dependencies

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda): 3.11.3
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Pylance
Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

2023-06-22 15:30:28.157 [error] Error: spawn ENAMETOOLONG
    at ChildProcess.spawn (node:internal/child_process:441:11)
    at spawn (node:child_process:752:9)
    at t.execObservable (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:242082)
    at REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:696988
    at REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:697877
    at E.d (REDACTED\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:43439)
    at E.withProgress (REDACTED\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:43302)
    at Object.withProgress (REDACTED\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:117:31103)
    at t.withProgress (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:345052)
    at t.VenvCreationProvider.createEnvironment (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:696422)
    at REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:683580
    at s.current (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:683498)
    at Function.run (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:346568)
    at t.handleCreateEnvironmentCommand (REDACTED\.vscode-insiders\extensions\ms-python.python-2023.11.11731012\out\client\extension.js:2:684138)
    at e.$pL.h (REDACTED\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:99:124229) {
  errno: -4064,
  code: 'ENAMETOOLONG',
  syscall: 'spawn'
}

User Settings

Multiroot scenario, following user settings may not apply:

languageServer: "Pylance"

Extension version: 2023.11.11731012
VS Code version: Code - Insiders 1.80.0-insider (636dbcf, 2023-06-21T08:26:26.328Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz (8 x 2995)
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.71GB (7.13GB free)
Process Argv --log trace --crash-reporter-id 11494669-52ca-4f2c-aa0e-29172189cc8e
Screen Reader yes
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythontb:30258533
vsc_aa:30263845
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30404738
py29gd2263:30773603
vsclangdf:30492506
c4g48928:30535728
dsvsc012cf:30540253
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
showlangstatbar:30737417
pythonms35:30671666
03d35959:30757351
7ij38806:30687742
pythonfmttext:30716741
pythoncmvfstr:30726892
fixshowwlkth:30771523
showindicator:30766888
pythongtdpath:30726887
gsof1:30771514
dh2dc718:30770000
pythonnosmt12:30773574
pythonidxpt:30768918
pythondjangots:30768917
pythonnoceb:30766855
copilotsettingt:30767686
e537b577:30772214

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions