Opencommit Version
3.2.10
Node Version
v18.19.1
NPM Version
9.2.0
What OS are you seeing the problem on?
Mac
What happened?
(main)> oco
┌ open-commit
│
◇ 5 staged files:
X.md
Y
Z
│
◇ ✖ Failed to generate the commit message
TypeError: Cannot read properties of undefined (reading 'length')
at passStringToWasm0 (/usr/local/lib/node_modules/opencommit/out/cli.cjs:24695:21)
at Tiktoken2.encode (/usr/local/lib/node_modules/opencommit/out/cli.cjs:24829:24)
at tokenCount (/usr/local/lib/node_modules/opencommit/out/cli.cjs:56994:27)
at getCommitMsgsPromisesFromFileDiffs (/usr/local/lib/node_modules/opencommit/out/cli.cjs:67441:9)
at generateCommitMessageByDiff (/usr/local/lib/node_modules/opencommit/out/cli.cjs:67355:43)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async generateCommitMessageFromGitDiff (/usr/local/lib/node_modules/opencommit/out/cli.cjs:67595:25)
at async trytm (/usr/local/lib/node_modules/opencommit/out/cli.cjs:67563:18)
at async commit (/usr/local/lib/node_modules/opencommit/out/cli.cjs:67768:35)
│
└ ✖ Cannot read properties of undefined (reading 'length')
Expected Behavior
Normal oco behavior.
Current Behavior
Cannot read properties of undefined (reading 'length')
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output
Opencommit Version
3.2.10
Node Version
v18.19.1
NPM Version
9.2.0
What OS are you seeing the problem on?
Mac
What happened?
Expected Behavior
Normal
ocobehavior.Current Behavior
Cannot read properties of undefined (reading 'length')Possible Solution
No response
Steps to Reproduce
No response
Relevant log output