microsoft / vscode-black-formatter

Formatting support for Python using the Black formatter
https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter
MIT License
158 stars 36 forks source link

Memory leak python 3.8 #536

Open danmash opened 2 months ago

danmash commented 2 months ago

Type: Bug

I see high memory consumption. I created an issue in VScode repo https://github.com/microsoft/vscode/issues/228123 But after some investigation, I suppose the reason for the memory leak is the black formater. I'll add logs in the comment.

Screenshot 2024-09-10 at 16 29 34

launch.json

VS Code version: Code 1.93.0 (Universal) (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Darwin arm64 23.6.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 2400)| |GPU Status|2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: disabled_off| |Load (avg)|3, 4, 8| |Memory (System)|16.00GB (0.87GB free)| |Process Argv|--crash-reporter-id 2743951a-a45d-40d1-8392-760a1943701a| |Screen Reader|no| |VM|0%|
Extensions (36) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|18.2.0 vscode-django|bat|1.15.0 scratchpads|bue|1.0.0 vscode-pytest|Cam|0.1.1 circleci|Cir|2.8.4 vscode-postgres|cko|1.4.3 macos-modern-theme|dav|2.3.19 python-environment-manager|don|1.2.4 vscode-open-in-github|fab|2.3.0 vscode-pull-request-github|Git|0.96.0 cloudcode|goo|2.17.0 terraform|has|2.32.3 vsc-nvm|hen|0.0.3 rest-client|hum|0.25.1 prettier-sql-vscode|inf|1.6.0 intellij-idea-keybindings|k--|1.7.2 vsc-python-indent|Kev|1.18.0 MagicPython|mag|1.1.0 python-path|mge|0.0.14 git-graph|mhu|1.30.0 JetBrainsIcons|Mos|1.0.5 vscode-edge-devtools|ms-|2.1.5 black-formatter|ms-|2024.2.0 debugpy|ms-|2024.10.0 isort|ms-|2023.10.1 python|ms-|2024.14.0 vscode-pylance|ms-|2024.9.1 js-debug-nightly|ms-|2024.9.517 vscode-python-typehint|njq|1.5.1 markdown-preview-enhanced|shd|0.8.14 code-spell-checker|str|3.0.1 python-extended-snippets|tus|0.0.1 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 gitblame|wad|11.0.1 pretty-ts-errors|Yoa|0.6.0 (2 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 vscrpc:30673769 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 945dj816:31013170 a69g1124:31058053 dvdeprecation:31068756 dwnewjupyter:31046869 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flighttreat:31134774 wkspc-onlycs-t:31132770 nativeloc2:31134642 wkspc-ranged-c:31125598 cf971741:31134768 fje88620:31121564 ```
danmash commented 2 months ago
The most recent logs: ``` All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 12:46:17.666 [info] /Users/user/.pyenv/versions/projectdjango/bin/python -m black --line-ranges 106-106 --stdin-filename /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py - 2024-09-11 12:46:17.673 [info] CWD formatter: /Users/user/projects/zint/projectdjangoapp 2024-09-11 12:46:33.851 [info] reformatted /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 12:47:10.953 [info] /Users/user/.pyenv/versions/projectdjango/bin/python -m black --line-ranges 104-104 --stdin-filename /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py - 2024-09-11 12:47:10.965 [info] CWD formatter: /Users/user/projects/zint/projectdjangoapp 2024-09-11 12:47:17.406 [info] reformatted /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 12:47:40.675 [info] /Users/user/.pyenv/versions/projectdjango/bin/python -m black --line-ranges 105-105 --stdin-filename /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py - 2024-09-11 12:47:40.675 [info] CWD formatter: /Users/user/projects/zint/projectdjangoapp 2024-09-11 12:47:43.317 [info] reformatted /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 12:47:49.765 [info] /Users/user/.pyenv/versions/projectdjango/bin/python -m black --line-ranges 106-106 --stdin-filename /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py - 2024-09-11 12:47:49.765 [info] CWD formatter: /Users/user/projects/zint/projectdjangoapp 2024-09-11 12:47:51.183 [info] reformatted /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 12:48:22.962 [info] [Error - 12:48:22] Syntax error in code: Traceback (most recent call last): File "/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/bundled/tool/lsp_server.py", line 163, in is_python ast.parse(code, file_path) File "/Users/user/.pyenv/versions/3.8.17/lib/python3.8/ast.py", line 47, in parse return compile(source, filename, mode, flags, File "/Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py", line 54 from web_app.returning_company_data.bulk_company_information.annotated_attributes.annotation_methods import \ get_company_ids_to_age_dict, \ get_company_ids_to_primary_sic_code_number, get_company_ids_to_primary_sic_code_industry_string, \ get_company_ids_to_primary_sic_code_description, get_company_ids_to_sic_code_2_description, \ get_company_ids_to_sic_code_3_description, get_company_ids_to_sic_code_4_description, \ get_company_ids_to_incorporation_date_string, get_company_ids_to_anniversary_number, \ get_company_ids_to_web_technologies_string, get_company_ids_to_basic_imports_string, \ get_company_ids_to_basic_exports_string, get_company_ids_to_is_estimated_revenue, get_company_ids_to_debtors, \ get_company_ids_to_assets, get_company_ids_to_gross_profit, get_company_ids_to_quarter_statement, \ get_company_ids_to_financial_year_ends, get_company_ids_to_lat_long_string, get_company_ids_to_registered_address, \ get_company_ids_to_trading_address_countries, get_company_ids_to_previous_names_string, \ get_company_ids_to_has_parent_company, get_company_ids_to_has_child_company, get_company_ids_to_ubo_names_only, \ get_company_ids_to_associated_websites_string, get_company_ids_to_is_company_listed_on_g_cloud, \ get_company_ids_to_company_grant_funding_amount, get_company_ids_to_lei_number, \ get_company_ids_to_regular_tags_owned_by_user, get_company_ids_to_company_team_member_tags_for_user, \ get_company_ids_to_cross_sell_tags_owned_by_user, get_company_ids_to_shared_regular_tags, \ get_company_ids_to_company_alerts, get_company_ids_to_accountant, get_company_ids_to_banker, \ get_company_ids_to_latest_accounts, get_company_ids_to_csv_format_phone_numbers, get_company_ids_to_zint_link, \ get_company_ids_to_shared_cross_sell_reason, \ get_company_ids_to_propensity_score_components_owned_by_user, get_company_ids_to_fixed_assets, \ get_company_ids_to_url, get_company_ids_to_domain, get_company_ids_to_headcount, \ get_company_ids_to_is_headcount_estimated, get_company_ids_to_screenshot, \ get_company_ids_to_monthly_website_visitors, get_company_ids_to_does_respond, get_company_ids_to_revenue, \ get_company_ids_to_current_assets_growth, get_company_ids_to_revenue_growth, get_company_ids_to_gross_profit_growth, \ get_company_ids_to_ebitda, get_company_ids_to_fx_loss_gain, get_company_ids_to_corporation_tax\ get_company_ids_to_total_energy_usage, get_company_ids_to_total_emissions, get_company_ids_to_creditors, \ ^ SyntaxError: invalid syntax 2024-09-11 12:48:22.962 [info] [Warn - 12:48:22] Skipping non python code or code with syntax errors: /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py 2024-09-11 12:48:29.229 [info] [Error - 12:48:29] Syntax error in code: Traceback (most recent call last): File "/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/bundled/tool/lsp_server.py", line 163, in is_python ast.parse(code, file_path) File "/Users/user/.pyenv/versions/3.8.17/lib/python3.8/ast.py", line 47, in parse return compile(source, filename, mode, flags, File "/Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py", line 55 get_company_ids_to_total_energy_usage, get_company_ids_to_total_emissions, get_company_ids_to_creditors, \ ^ IndentationError: unexpected indent 2024-09-11 12:48:29.229 [info] [Warn - 12:48:29] Skipping non python code or code with syntax errors: /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py 2024-09-11 12:48:32.249 [info] [Error - 12:48:32] Syntax error in code: Traceback (most recent call last): File "/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/bundled/tool/lsp_server.py", line 163, in is_python ast.parse(code, file_path) File "/Users/user/.pyenv/versions/3.8.17/lib/python3.8/ast.py", line 47, in parse return compile(source, filename, mode, flags, File "/Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py", line 55 get_company_ids_to_total_energy_usage, get_company_ids_to_total_emissions, get_company_ids_to_creditors, \ ^ IndentationError: unexpected indent 2024-09-11 12:48:32.249 [info] [Warn - 12:48:32] Skipping non python code or code with syntax errors: /Users/user/projects/zint/projectdjangoapp/web_app/returning_company_data/bulk_company_information/company_data_point_methods.py 2024-09-11 12:53:57.378 [info] /Users/user/.pyenv/versions/projectdjango/bin/python -m black --line-ranges 228-228 --stdin-filename /Users/user/projects/zint/projectdjangoapp/web_app/views/dashboard_views/main_search/queryset_builder/main_search_queryset_builder.py - 2024-09-11 12:53:57.380 [info] CWD formatter: /Users/user/projects/zint/projectdjangoapp 2024-09-11 12:54:43.914 [info] reformatted /Users/user/projects/zint/projectdjangoapp/web_app/views/dashboard_views/main_search/queryset_builder/main_search_queryset_builder.py All done! ✨ 🍰 ✨ 1 file reformatted. 2024-09-11 13:00:52.833 [info] [Error - 13:00:52] Client Black Formatter: connection to server is erroring. write EPIPE Shutting down server. 2024-09-11 13:00:52.877 [info] [Error - 13:00:52] Sending document notification textDocument/didOpen failed. 2024-09-11 13:00:52.901 [info] Error: write EPIPE at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:95:16) 2024-09-11 13:00:52.905 [info] [Error - 13:00:52] Server process exited with signal SIGTERM. 2024-09-11 13:00:52.906 [info] [Error - 13:00:52] Client Black Formatter: connection to server is erroring. Cannot call write after a stream was destroyed 2024-09-11 13:00:52.907 [info] [Error - 13:00:52] Sending document notification textDocument/didClose failed. 2024-09-11 13:00:52.907 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:52.908 [info] [Error - 13:00:52] Connection to server got closed. Server will not be restarted. 2024-09-11 13:00:52.944 [info] [Error - 13:00:52] Sending document notification textDocument/didOpen failed. 2024-09-11 13:00:52.944 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:52.945 [info] [Error - 13:00:52] Sending document notification textDocument/didChange failed 2024-09-11 13:00:52.945 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:52.960 [info] [Error - 13:00:52] Request textDocument/rangesFormatting failed. 2024-09-11 13:00:52.960 [info] Message: Cannot call write after a stream was destroyed Code: -32099 2024-09-11 13:00:52.973 [info] [Error - 13:00:52] Sending document notification textDocument/didChange failed 2024-09-11 13:00:52.973 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.013 [info] [Error - 13:00:53] Request textDocument/rangesFormatting failed. 2024-09-11 13:00:53.036 [info] Message: Cannot call write after a stream was destroyed Code: -32099 2024-09-11 13:00:53.038 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.038 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.039 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.039 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.039 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.039 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.040 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.040 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.040 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.040 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.041 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.041 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.042 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.042 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.042 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.042 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.043 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.043 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.043 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.043 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.044 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.044 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.044 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.044 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.045 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.045 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.046 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.046 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.046 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.046 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.047 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.047 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.047 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.047 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.048 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.048 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.048 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.048 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.048 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.048 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.049 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.049 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.049 [info] [Error - 13:00:53] Request textDocument/rangesFormatting failed. 2024-09-11 13:00:53.049 [info] Message: Cannot call write after a stream was destroyed Code: -32099 2024-09-11 13:00:53.050 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.050 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.051 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.051 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.051 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.051 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.052 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.052 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.052 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.052 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.053 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.053 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.053 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.053 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.054 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.054 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.055 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.055 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.056 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.056 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.056 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.056 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.057 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.057 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.058 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.058 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.058 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.058 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.059 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.059 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.059 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.059 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.059 [info] [Error - 13:00:53] Request textDocument/rangesFormatting failed. 2024-09-11 13:00:53.059 [info] Message: Cannot call write after a stream was destroyed Code: -32099 2024-09-11 13:00:53.060 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.060 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.061 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.061 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.062 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.062 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.070 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.070 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.071 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.071 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.071 [info] [Error - 13:00:53] Sending document notification textDocument/didClose failed. 2024-09-11 13:00:53.071 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.072 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.072 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.072 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.072 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.073 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.073 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.073 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.073 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.074 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.074 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.074 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.074 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.074 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.074 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.075 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.075 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.075 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.075 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.076 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.076 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.076 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.076 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.092 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.092 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.093 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.093 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.093 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.094 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.094 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.094 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.094 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.094 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.095 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.095 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.123 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.123 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.123 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.123 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.123 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.123 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.124 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.124 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.124 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.124 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.125 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.125 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.125 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.125 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.126 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.126 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.126 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.126 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.127 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.127 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.127 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.127 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.128 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.128 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.128 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.128 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.128 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.129 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.131 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.131 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.131 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.137 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.137 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.137 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.138 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.138 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.138 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.138 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.139 [info] [Error - 13:00:53] Sending document notification textDocument/didChange failed 2024-09-11 13:00:53.139 [info] Error: Cannot call write after a stream was destroyed at _write (node:internal/streams/writable:483:11) at Socket.Writable.write (node:internal/streams/writable:502:10) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121940 at new Promise () at a.write (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:121858) at v.doWrite (/Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109476) at /Users/user/.vscode/extensions/ms-python.black-formatter-2024.2.0/dist/extension.js:1:109371 2024-09-11 13:00:53.139 [info] [Error - 13:00:53] Stopping server failed 2024-09-11 13:00:53.139 [info] Message: Cannot call write after a stream was destroyed Code: -32099 2024-09-11 13:00:53.139 [info] [Error - 13:00:53] Stopping server failed 2024-09-11 13:00:53.139 [info] Message: Cannot call write after a stream was destroyed Code: -32099 ```
karthiknadig commented 2 months ago

@danmash Can you provide the command line for the various processes? The logs don't indicate what is happening. Having the commandline for the process that leaked memory would be very helpful to start looking at the problem.

karthiknadig commented 1 month ago

Closing for now. We can reopen when more info is provided.

danmash commented 1 month ago

@karthiknadig There's no command; I just use the plugin for black formatting. The black server is running on its own without my interaction.

karthiknadig commented 1 month ago

@danmash For the process that is leaking memory. I need to know the command line. The black formatter extension starts a server. That server itself spawns sub-processes. It would be a good start to know which specific process is leaking. image

There are 3 processes there, typically each one has a specific purpose. The CLI column in resource monitor should be helpful. Like this: image

danmash commented 1 month ago

So, do you agree it's one of the extension processes, but you cannot start investigating until I track which one of these three?

On Tue, 1 Oct 2024 at 22:50, Karthik Nadig @.***> wrote:

@danmash https://github.com/danmash For the process that is leaking memory. I need to know the command line. The black formatter extension starts a server. That server itself spawns sub-processes. It would be a good start to know which specific process is leaking. image.png (view on web) https://github.com/user-attachments/assets/7f59a9f8-d5a4-4f8a-822d-143455f46212

There are 3 processes there, typically each one has a specific purpose. The CLI column in resource monitor should be helpful. Like this: image.png (view on web) https://github.com/user-attachments/assets/957021e3-4f06-4d8f-97d2-466860fd3a2c

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-black-formatter/issues/536#issuecomment-2387138441, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA27BUDUAT4U3GAVQNX6TGDZZMKI5AVCNFSM6AAAAABOA2VTYKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBXGEZTQNBUGE . You are receiving this because you were mentioned.Message ID: @.***>

karthiknadig commented 1 month ago

That is correct. I need to see which one of the processes it is to investigate. I have not seen any other report of this.