microsoft / microsoft/vscode-black-formatter
No such file or directory: '/usr/local/bin/pyink'
- Dominant language
- Python
- Stars
- 196
- Forks
- 49
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 7
Description
Type: Bug
# Behaviour
When formatting a .py file:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/bin/pyink'
Installing pyint via pip and setting the Black's interpreter accordingly had no effect. Applies to the latest/pre-release versions of the extension.
## Steps to reproduce:
1. Create a .py file
2. Format it using Black
# Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
```
XXX
```
Extension version: 2025.3.11831009
VS Code version: Code 1.112.0 (Universal) (07ff9d6178ede9a1bd12ad3399074d726ebe6e43, 2026-03-17T18:09:23Z)
OS version: Darwin arm64 25.3.0
Modes:
Remote OS version: Linux x64 6.17.13-1rodete1-amd64
A/B Experiments
```
vsliv368:30146709
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsdeactivate2:31464701
cloudbuttont:31379625
aihoversummaries_f:31469309
3efgi100_wstrepl:31403338
use-responses-api:31390855
ec5jj548:31422691
cp_cls_c_966_ss:31454199
8hhj4413:31478653
cp_cls_c_1081:31454833
a43f0576c:31442824
e9c30283:31461165
test_treatment2:31471001
idci7584:31464702
edit_mode_hidden:31461530
864ei723_large_tool_results_to_disk:31460878
showingstats:31471631
534a6447:31478749
chat:31457767
t-some:31481341
cpptoolsoff-v2:31475362
editor1:31474144
db0gd219:31473911
23c7c724:31479695
ddid_t:31478206
getcmakediagnosticson:31480155
```
Contributor guide
Research direction
Start by reproducing formatting for a .py file in VS Code, then inspect the Python Output panel and the formatter configuration that resolves the Black executable. Done means formatting no longer raises FileNotFoundError for /usr/local/bin/pyink and works with the reported extension and remote Linux setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100