Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylance fails with a too many open files issue #939

Closed
jdwestbrook opened this issue Feb 11, 2021 · 2 comments
Closed

Pylance fails with a too many open files issue #939

jdwestbrook opened this issue Feb 11, 2021 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@jdwestbrook
Copy link

Issue Type: Bug

With the latest release of v2021.2.1 of Pylance and
Insiders build.

Version: 1.54.0-insider
Commit: 93f705ab40b37aade9d3b5165ed09114a8c87ac9
Date: 2021-02-11T05:43:26.672Z
Electron: 11.2.3
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 20.3.0

The following traceback is displayed in the Terminal Problems Tab when multiple vsode window are open. The open file
issue is not observed when editing a single simple repo.

{
"resource": "/Users/jwest/MY_FILES/Developing/RCSB/py-rcsb_utils_chemref/rcsb/utils/tests-chemref/testRcsbLigandScoreProvider.py",
"owner": "generated_diagnostic_collection_name#0",
"severity": 8,
"message": "An internal error occurred while parsing file "/Users/jwest/MY_FILES/Developing/RCSB/py-rcsb_utils_chemref/rcsb/utils/tests-chemref/testRcsbLigandScoreProvider.py": Error: EMFILE: too many open files, scandir '/Users/jwest/MY_FILES/Developing/RCSB/py-rcsb_utils_chemref'\n at Object.readdirSync (fs.js:959:3)\n at h.readdirEntriesSync (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:609711)\n at B._getFilesInDirectory (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:160020)\n at B.resolveAbsoluteImport (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:152915)\n at B._resolveBestAbsoluteImport (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:155203)\n at B.resolveImport (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:147689)\n at t.SourceFile._resolveImports (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:255546)\n at /Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:247540\n at i.timeOperation (/Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:631349)\n at /Users/jwest/.vscode-insiders/extensions/ms-python.vscode-pylance-2021.2.1/dist/pyright.bundle.js:1:247507",
"source": "Pylance",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}

Extension version: 2021.2.1
VS Code version: Code - Insiders 1.54.0-insider (93f705ab40b37aade9d3b5165ed09114a8c87ac9, 2021-02-11T05:43:26.672Z)
OS version: Darwin x64 20.3.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-8950HK CPU @ 2.90GHz (12 x 2900)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 32.00GB (7.30GB free)
Process Argv . --crash-reporter-id b92874fa-6087-44b6-a84a-b516454ef044
Screen Reader no
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspyt653:30253241
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvsdeb440:30224570
pythonvsded773:30223139
vstes627:30244334
pythonvspyt875:30251590
core-portspanelcf:30233468
coreuntitledfile:30249963

@jdwestbrook
Copy link
Author

As a follow up, I am seeing failure and the traceback even in simple repos with a few hundred files in a single vscode session.

@jakebailey
Copy link
Member

Duplicate of #936.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Feb 11, 2021
@github-actions github-actions bot removed the triage label Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants