vscode: Git Commit Ament caused "Git: connect ENOENT" error
Type: Bug
- Work with IDE some period of time.
- Try to make Git Commit Amend.
- Got “Git: connect ENOENT /var/folders/_x/pjn2dmxx0tl9dgnhgryk54n80000gp/T/vscode-git-299f631f9b.sock”.
VS Code version: Code 1.82.1 (6509174151d557a81c9d0b5f8a5a1e9274db5585, 2023-09-08T08:49:22.656Z) OS version: Darwin arm64 22.6.0 Modes:
System Info
Item | Value |
---|---|
CPUs | Apple M1 Pro (10 x 24) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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) | 3, 3, 3 |
Memory (System) | 32.00GB (0.79GB free) |
Process Argv | –crash-reporter-id 85479485-0e20-4bb1-8875-f05e0b4bf5e2 |
Screen Reader | no |
VM | 0% |
Extensions (31)
Extension | Author (truncated) | Version |
---|---|---|
markdown-mermaid | bie | 1.19.0 |
java-pmd | cra | 0.6.3 |
xml | Dot | 2.5.1 |
es7-react-js-snippets | dsz | 4.4.3 |
prettier-vscode | esb | 10.1.0 |
go | gol | 0.39.1 |
rest-client | hum | 0.25.1 |
Kotlin | mat | 1.7.1 |
git-graph | mhu | 1.30.0 |
vscode-docker | ms- | 1.26.0 |
black-formatter | ms- | 2023.4.1 |
python | ms- | 2023.16.0 |
remote-containers | ms- | 0.309.0 |
fabric8-analytics | red | 0.7.0 |
java | red | 1.22.1 |
vscode-yaml | red | 1.14.0 |
rust-analyzer | rus | 0.3.1657 |
vscode-checkstyle | she | 1.4.2 |
code-spell-checker | str | 3.0.1 |
code-spell-checker-russian | str | 2.1.0 |
even-better-toml | tam | 0.19.2 |
tom | 1.2.2 | |
intellicode-api-usage-examples | Vis | 0.2.8 |
vscodeintellicode | Vis | 1.2.30 |
vscode-gradle | vsc | 3.12.7 |
vscode-java-debug | vsc | 0.54.0 |
vscode-java-dependency | vsc | 0.23.1 |
vscode-java-pack | vsc | 0.25.14 |
vscode-java-test | vsc | 0.39.1 |
vscode-maven | vsc | 0.42.0 |
volar | Vue | 1.8.11 |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
2e4cg342:30602488
89544117:30613380
showlangstatbar:30737416
962ge761:30835153
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30829746
About this issue
- Original URL
- State: open
- Created 10 months ago
- Reactions: 14
- Comments: 17
I had the same issue and the problem on my side was that $XDG_RUNTIME_DIR did not exist. For some reason the WSL Ubuntu set it to a non-existent /run/user/1000. I fixed the error by creating the directory like this:
and issuing a
Reload Window
.I think there is some error in some clean-up logic that accidentally removes the folder instead of the socket, which would explain why it breaks intermittently. Just a theory, I didn’t have the time to investigate.
I’ve noticed, for me at least, the error only occurs if you leave the commit message blank. If you write a new commit message before pressing amend it works.
So maybe the error happens with the file that opens where it prompts you to edit the previous commit message?
Same here, It can only be restored to works by restarting vscode, and still occurs several times a day.
It seems no issue anymore in
Version: 1.83.0
according to tested myself and it looks goneJust encounter this again. And quitting VScode does not fix it.
even running
wsl --shutdown
does not fix it.@unional In my case quitting and relaunching VSCode helps.
Same problem in 1.82.2