When I try to commit, git pre-commit hook runs, and I see this:
> git -c user.useConfigOnly=true commit --quiet --amend
> [email protected] format:check /home/me/myproject
> prettier --check .
Checking formatting...
All matched files use Prettier code style!
Error: Bad status code: 500
at ClientRequest.<anonymous> (/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor-main.js:1:1273)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at Socket.socketOnData (node:_http_client:544:22)
at Socket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
error: There was a problem with the editor '"/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.
Steps to Reproduce
DM me
Operating System
Linux
Current Cursor Version (Menu → About Cursor → Copy)
Does the error occur with regular commits (without --amend)?
Yes
Does it happen if you temporarily disable your pre-commit hook?
Yes, the same one
> git -c user.useConfigOnly=true commit --quiet
Error: Bad status code: 500
at ClientRequest.<anonymous> (/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor-main.js:1:1273)
at Object.onceWrapper (node:events:639:26)
at ClientRequest.emit (node:events:524:28)
at HTTPParser.parserOnIncomingClient (node:_http_client:702:27)
at HTTPParser.parserOnHeadersComplete (node:_http_common:118:17)
at Socket.socketOnData (node:_http_client:544:22)
at Socket.emit (node:events:524:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
error: There was a problem with the editor '"/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/extensions/git/dist/git-editor.sh"'.
Please supply the message using either -m or -F option.
Can you commit successfully from a terminal outside Cursor?
Yes
Could you open Help → Toggle Developer Tools, check the Console tab, and share any errors that appear when you try to commit?
When I try to commit, the console is silent. However, I had multiple copies of the same group of errors already logged by the time I opened the console:
```
workbench.desktop.main.js:47 [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):
check @ workbench.desktop.main.js:47
workbench.desktop.main.js:47 Error
at $uc.create (workbench.desktop.main.js:47:12844)
at Tcr._event (workbench.desktop.main.js:49:1650)
at vir (workbench.desktop.main.js:7249:14164)
at a (workbench.desktop.main.js:7249:11454)
at lEt.value (workbench.desktop.main.js:7249:11720)
at _e._deliver (workbench.desktop.main.js:49:2962)
at _e._deliverQueue (workbench.desktop.main.js:49:3053)
at _e.fire (workbench.desktop.main.js:49:3390)
at ycr.createModel (workbench.desktop.main.js:2946:1328)
at Rn (workbench.desktop.main.js:6697:27026)
at workbench.desktop.main.js:6697:27471
check @ workbench.desktop.main.js:47
workbench.desktop.main.js:55 ERR [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):: Error
at $uc.create (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:47:12844)
at Tcr._event (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:1650)
at vir (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:14164)
at a (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:11454)
at lEt.value (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:7249:11720)
at _e._deliver (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:2962)
at _e._deliverQueue (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3053)
at _e.fire (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:49:3390)
at ycr.createModel (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:2946:1328)
at Rn (vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6697:27026)
at vscode-file://vscode-app/tmp/.mount_Cursorum0fRn/usr/share/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:6697:27471 ListenerLeakError: [054] potential listener LEAK detected, having 431 listeners already. MOST frequent listener (32):
at $uc.create (workbench.desktop.main.js:47:12844)
at Tcr._event (workbench.desktop.main.js:49:1650)
at vir (workbench.desktop.main.js:7249:14164)
at a (workbench.desktop.main.js:7249:11454)
at lEt.value (workbench.desktop.main.js:7249:11720)
at _e._deliver (workbench.desktop.main.js:49:2962)
at _e._deliverQueue (workbench.desktop.main.js:49:3053)
at _e.fire (workbench.desktop.main.js:49:3390)
at ycr.createModel (workbench.desktop.main.js:2946:1328)
at Rn (workbench.desktop.main.js:6697:27026)
at workbench.desktop.main.js:6697:27471
```