chatgpt-vscode
chatgpt-vscode copied to clipboard
error when generate a commit message
Verify it's not a duplicate bug report
- [X] I searched for similar bugs reported on GitHub and nobody has reported a similar issue. Search all issuees.
- [X] I read Troubleshooting guide on Readme and there is not a guide on how to solve my problem.
Describe the Bug
When I use the command to generate a commit message the error "An error occurred. a.diff is not a function" is thrown
Please tell us if you have customized any of the extension settings or whether you are using the defaults.
I'm using model gpt-4-1106-preview
Additional context
No response
This bug seems to happen when the github copilot extension is installed.
I haven't installed the github copilot extension, but the same error occurs.
When I upgraded to the latest version of VS Code, this issue appeared. The current version of VS Code is 1.86.0.
I have the same issue
This is still an issue. Are there any further suggestions? My VS Code version is 1.86.1. This issue seemed to have happened when OpenAI released their new gpt-4-0125-preview model.
I've uninstalled and reinstalled and still get the error. I've also done the same, but between reinstalling, went to the %USERPROFILE%\.vscode\extensions
directory and deleted the GenieAI folder. Still the same error appears - and my API key was remembered so I think even then there are left over packages somewhere.
Looks like for the time being I'll have to write my own commit messages 😭😂
Same error here,
VScode Details - Version: 1.86.1 Node.js: 18.17.1 OS: Linux x64 6.5.0-15-generic snap
Same error here
Version: 1.86.1 Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Linux x64 6.7.4-arch1-1
I think this thread should contain the exact error message (with the misspelling), so people searching for the error actually get directed here: An error occured. a.diff is not a function
Bump, exact issue I'm getting. Additionally the Lightning Bolt in the commit message box is also missing. I did notice that there is another Generate Commit Message (Experimental) option in the menu which asks for my OpenAI api key which I don't remember being there before. I also did not install CoPilot.
Version: 1.86.2
Electron: 27.2.3
ElectronBuildId: 26908389
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Linux x64 6.5.0-18-generic
You can temporarily use the command Ctrl+Shift+P to input "Genie: Generate a commit message" to get the commit message, and wait for the updated version.
I think this thread should contain the exact error message (with the misspelling), so people searching for the error actually get directed here:
An error occured. a.diff is not a function
This should now be fixed in v0.0.11 Please update your extension.
Visual Studio Code has disabled access to quick action button in the textbox. Instead you could use:
-
ctrl+shift+p
and runGenie: Generate a commit message
command - Or use the menu item under the source control like this: